This repository has been archived on 2021-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
BookFloatingServer/DataFormat.java

123 lines
1.7 KiB
Java
Raw Normal View History

2017-03-08 20:41:52 +08:00
class AppJsonData
{
private String type;
public String getType()
{
return type;
}
public void setType(String Type)
{
type=Type;
}
}
class LoginData extends AppJsonData
{
private String email;
private String pwass;
public String getEmail()
{
return email;
}
public void setEmail(String Email)
{
email=Email;
}
public String getPass()
{
return pwass;
}
public void setPass(String Pwass)
{
pwass=Pwass;
}
}
class RegisterData extends LoginData
{
private String nickname;
private String school;
public String getNickname()
{
return nickname;
}
public void setNickname(String Nickname)
{
nickname=Nickname;
}
public String getSchool()
{
return school;
}
public void setSchool(String School)
{
school=School;
}
}
2017-03-08 20:41:52 +08:00
class UploadData extends AppJsonData
{
private String bookname;
private String author;
private String context;
private String imageURL;
public String getBookname()
{
return bookname;
}
public void setBookname(String Bookname)
{
bookname=Bookname;
}
public String getAuthor()
{
return author;
}
public void setAuthor(String Author)
{
author=Author;
}
public String getContext()
{
return context;
}
public void setContext(String Context)
{
context=Context;
}
public String getImageURL()
{
return imageURL;
}
public void setImageURL(String ImageURL)
{
imageURL=ImageURL;
}
}
class FetchData extends UploadData
{
private String label;
public String getLabel()
{
return label;
}
public void setLabel(String Label)
{
label=Label;
}
}
2017-03-08 20:41:52 +08:00
2017-03-09 12:45:22 +08:00
class FetchInfo
2017-03-08 20:41:52 +08:00
{
2017-03-09 12:45:22 +08:00
public String bookname;
public String author;
public String context;
public String imageURL;
public String label;
public int ret;
2017-03-08 20:41:52 +08:00
}