0
我已經創建了具有評論列表和評論者的模型類。需要在API中調用列表
我收到錯誤:com.square.http調用沒有任何類型參數。
請幫我:)
感謝
@GET("/movie/{id}/reviews")
Call<List<Reviews>> getReviews(@Path("id") String id);
型號clases沒有getter和setter方法:
public class Reviews {
@SerializedName("id_review")
private int id;
@SerializedName("author_review")
private String author;
@SerializedName("content_review")
private String content;
@SerializedName("url_review")
private String url;
public class ReviewWraper {
@SerializedName("id")
private int id;
@SerializedName("page")
private int page;
@SerializedName("results")
private List<Reviews> results;
您能否給我導入改造2的名稱?謝謝 –
導入retrofit2.Call; – Blackbelt