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.huanchengfly.tieba.post.models.ErrorBean;
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import com.huanchengfly.tieba.post.models.ErrorBean
|
||||
|
||||
import java.util.List;
|
||||
class PicToIdJsonBean : ErrorBean() {
|
||||
val pics: List<PicBean>? = null
|
||||
|
||||
public class PicToIdJsonBean extends ErrorBean {
|
||||
private List<PicBean> pics;
|
||||
|
||||
public List<PicBean> getPics() {
|
||||
return pics;
|
||||
}
|
||||
|
||||
public static class PicBean {
|
||||
class PicBean {
|
||||
@SerializedName("pic_id")
|
||||
private String picId;
|
||||
private String width;
|
||||
private String height;
|
||||
val picId: String? = null
|
||||
val width: String? = null
|
||||
val height: String? = null
|
||||
|
||||
public String getPicId() {
|
||||
return picId;
|
||||
}
|
||||
|
||||
public String getWidth() {
|
||||
return width;
|
||||
}
|
||||
|
||||
public String getHeight() {
|
||||
return height;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue