@linux1s1s
2016-11-18T16:26:02.000000Z
字数 2965
阅读 1625
Tools
Studio安装完成GsonFormat 以后按照以下截图操作即可
在一个新建的类中右键--->> Generate(或者直接Alt+Insert)调出如下界面
选择GsonFormat即可
将需要自动生成JsonBean的json内容复制到这个对话框内,点击确定即可
public class StoreInfo {
/**
* address : 北京市西城区西单横二条2号华恒大厦二层
* area : 1
* business : 中成药、化学药制剂、抗生素、生化药品
* charge : 王承德
* count : 39
* createdate : 1338393600000
* fcount : 0
* id : 79448
* img : /store/081108/f0870383d818fe032ffb3368289aa5a3.jpg
* leader : 张玉超
* legal : 王承德
* message :
* name : 北京广安医药联合中心
* number : 京AA0100174
* rcount : 0
* supervise : 37
* tel : 010-82272120;010-68024691
* type : 批发
* url :
* waddress : 北京市丰台区白盆窑村南京良路北555号
* x : 116.377
* y : 39.912
* zipcode : 100000
*/
private String address;
private int area;
private String business;
private String charge;
private int count;
private long createdate;
private int fcount;
private int id;
private String img;
private String leader;
private String legal;
private String message;
private String name;
private String number;
private int rcount;
private int supervise;
private String tel;
private String type;
private String url;
private String waddress;
private double x;
private double y;
private String zipcode;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public int getArea() {
return area;
}
public void setArea(int area) {
this.area = area;
}
public String getBusiness() {
return business;
}
public void setBusiness(String business) {
this.business = business;
}
public String getCharge() {
return charge;
}
public void setCharge(String charge) {
this.charge = charge;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public long getCreatedate() {
return createdate;
}
public void setCreatedate(long createdate) {
this.createdate = createdate;
}
public int getFcount() {
return fcount;
}
public void setFcount(int fcount) {
this.fcount = fcount;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getLeader() {
return leader;
}
public void setLeader(String leader) {
this.leader = leader;
}
public String getLegal() {
return legal;
}
public void setLegal(String legal) {
this.legal = legal;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public int getRcount() {
return rcount;
}
public void setRcount(int rcount) {
this.rcount = rcount;
}
public int getSupervise() {
return supervise;
}
public void setSupervise(int supervise) {
this.supervise = supervise;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getWaddress() {
return waddress;
}
public void setWaddress(String waddress) {
this.waddress = waddress;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}