refactor(PicToIdJsonBean.java): 使用 Kotlin 重写

This commit is contained in:
GoFly233 2020-08-13 20:19:25 +08:00 committed by HuanChengFly
parent d3ff5f38f0
commit bf3dc72ecf
2 changed files with 10 additions and 27 deletions

View File

@ -1,33 +1,16 @@
package com.huanchengfly.tieba.api.models; package com.huanchengfly.tieba.api.models
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName
import com.huanchengfly.tieba.post.models.ErrorBean; import com.huanchengfly.tieba.post.models.ErrorBean
import java.util.List; class PicToIdJsonBean : ErrorBean() {
val pics: List<PicBean>? = null
public class PicToIdJsonBean extends ErrorBean { class PicBean {
private List<PicBean> pics;
public List<PicBean> getPics() {
return pics;
}
public static class PicBean {
@SerializedName("pic_id") @SerializedName("pic_id")
private String picId; val picId: String? = null
private String width; val width: String? = null
private String height; val height: String? = null
public String getPicId() {
return picId;
}
public String getWidth() {
return width;
}
public String getHeight() {
return height;
}
} }
} }