com.belerweb.social.qq.connect.bean.FanList Maven / Gradle / Ivy
package com.belerweb.social.qq.connect.bean;
import java.util.Date;
import java.util.List;
import org.json.JSONObject;
import com.belerweb.social.bean.JsonBean;
import com.belerweb.social.bean.Result;
public class FanList extends JsonBean {
public FanList() {}
private FanList(JSONObject jsonObject) {
super(jsonObject);
}
private Date timestamp;
private Boolean hasNext;
private List fans;
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public Boolean getHasNext() {
return hasNext;
}
public void setHasNext(Boolean hasNext) {
this.hasNext = hasNext;
}
public List getFans() {
return fans;
}
public void setFans(List fans) {
this.fans = fans;
}
public static FanList parse(JSONObject jsonObject) {
if (jsonObject == null) {
return null;
}
FanList obj = new FanList(jsonObject);
obj.timestamp = Result.parseTimeSeconds(jsonObject.get("timestamp"));
obj.hasNext = Result.parseBoolean(jsonObject.get("hasnext"));
obj.fans = Result.parse(jsonObject.optJSONArray("info"), WeiboUser.class);
return obj;
}
}