123 lines
1.7 KiB
Java
123 lines
1.7 KiB
Java
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;
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
class FetchInfo
|
|
{
|
|
public String bookname;
|
|
public String author;
|
|
public String context;
|
|
public String imageURL;
|
|
public String label;
|
|
public int ret;
|
|
}
|