refactor(PicToIdJsonBean.java): 使用 Kotlin 重写
This commit is contained in:
parent
d3ff5f38f0
commit
bf3dc72ecf
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue