添加了FetchInfo

This commit is contained in:
Kirigaya Kazuto 2017-03-09 12:45:22 +08:00
parent 1013b1de70
commit 18c74e335f

View File

@ -1,5 +1,3 @@
import com.google.gson.Gson;
class AppJsonData
{
private String type;
@ -113,16 +111,12 @@ class FetchData extends UploadData
}
}
/*
public class JsonStudy
class FetchInfo
{
public static void main(String[] args)
{
String jsonData="{'type':'register','email':'test@163.com','nickname':'Kirito','school':'QUST','pwass':'dvaLovesU'}";
Gson gson=new Gson();
RegisterData data=gson.fromJson(jsonData, RegisterData.class);
System.out.println("Email:"+data.getEmail()+" NickName:"+data.getNickname()+" School:"+data.getSchool()+" Password:"+data.getPass());
}
public String bookname;
public String author;
public String context;
public String imageURL;
public String label;
public int ret;
}
*/