package com.example.gitnb.model;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Parcel;
import android.os.Parcelable;
public class User extends TModel implements Parcelable{
private static final long serialVersionUID = 1L;
public static final Creator<User> CREATOR = new Creator<User>() {
@Override
public User createFromParcel(Parcel in) {
return new User(in);
}
@Override
public User[] newArray(int size) {
return new User[size];
}
};
private String login;
private int id;
private String avatar_url;
private String gravatar_id;
private String url;
private String html_url;
private String followers_url;
private String following_url;
private String gists_url;
private String starred_url;
private String subscriptions_url;
private String organizations_url;
private String repos_url;
private String events_url;
private String received_events_url;
private String type;
private Boolean site_admin;
private String name;
private String company;
private String blog;
private String location;
private String email;
private int public_repos;
private int public_gists;
private int followers;
private int following;
private String created_at;
private String updated_at;
public User() {}
protected User(Parcel in) {
login = in.readString();
id = in.readInt();
avatar_url = in.readString();
gravatar_id = in.readString();
url = in.readString();
html_url = in.readString();
followers_url = in.readString();
following_url = in.readString();
gists_url = in.readString();
starred_url = in.readString();
subscriptions_url = in.readString();
organizations_url = in.readString();
repos_url = in.readString();
events_url = in.readString();
received_events_url = in.readString();
type = in.readString();
name = in.readString();
company = in.readString();
blog = in.readString();
location = in.readString();
email = in.readString();
public_repos = in.readInt();
public_gists = in.readInt();
followers = in.readInt();
following = in.readInt();
created_at = in.readString();
updated_at = in.readString();
}
public String getLogin() {
return login;
}
public void setLogin(String login) {
this.login = login;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getAvatar_url() {
return avatar_url;
}
public void setAvatar_url(String avatar_url) {
this.avatar_url = avatar_url;
}
public String getGravatar_id() {
return gravatar_id;
}
public void setGravatar_id(String gravatar_id) {
this.gravatar_id = gravatar_id;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getHtml_url() {
return html_url;
}
public void setHtml_url(String html_url) {
this.html_url = html_url;
}
public String getFollowers_url() {
return followers_url;
}
public void setFollowers_url(String followers_url) {
this.followers_url = followers_url;
}
public String getFollowing_url() {
return following_url;
}
public void setFollowing_url(String followering_url) {
this.following_url = followering_url;
}
public String getGists_url() {
return gists_url;
}
public void setGists_url(String gists_url) {
this.gists_url = gists_url;
}
public String getStarred_url() {
return starred_url;
}
public void setStarred_url(String statted_url) {
this.starred_url = statted_url;
}
public String getSubscriptions_url() {
return subscriptions_url;
}
public void setSubscriptions_url(String subscriptions_url) {
this.subscriptions_url = subscriptions_url;
}
public String getOrganizations_url() {
return organizations_url;
}
public void setOrganizations_url(String organizations_url) {
this.organizations_url = organizations_url;
}
public String getRepos_url() {
return repos_url;
}
public void setRepos_url(String repos_url) {
this.repos_url = repos_url;
}
public String getEvents_url() {
return events_url;
}
public void setEvents_url(String events_url) {
this.events_url = events_url;
}
public String getReceived_events_url() {
return received_events_url;
}
public void setReceived_events_url(String received_events_url) {
this.received_events_url = received_events_url;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Boolean getSite_admin() {
return site_admin;
}
public void setSite_admin(Boolean site_admin) {
this.site_admin = site_admin;
}
public String getName(){
return name;
}
public void setName(String name){
this.name = name;
}
public String getCompany(){
return company;
}
public void setCompany(String company){
this.company = company;
}
public String getBlog(){
return blog;
}
public void setBlog(String blog){
this.blog = blog;
}
public String getLocation(){
return location;
}
public void setLocation(String location){
this.location = location;
}
public String getEmail(){
return email;
}
public void setEmail(String email){
this.email = email;
}
public int getPublic_repos(){
return public_repos;
}
public void setPublic_repos(int public_repos){
this.public_repos = public_repos;
}
public int getPublic_gists(){
return public_gists;
}
public void setPublic_gists(int public_gists){
this.public_repos = public_gists;
}
public int getFollowers(){
return followers;
}
public void setFollowers(int followers){
this.followers = followers;
}
public int getFollowing(){
return following;
}
public void setFollowing(int following){
this.following = following;
}
public String getCreated_at(){
return created_at;
}
public void setCreated_at(String created_at){
this.created_at = created_at;
}
public String getUpdated_at(){
return updated_at;
}
public void setUpdated_at(String updated_at){
this.updated_at = updated_at;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(login);
dest.writeInt(id);
dest.writeString(avatar_url);
dest.writeString(gravatar_id);
dest.writeString(url);
dest.writeString(html_url);
dest.writeString(followers_url);
dest.writeString(following_url);
dest.writeString(gists_url);
dest.writeString(starred_url);
dest.writeString(subscriptions_url);
dest.writeString(organizations_url);
dest.writeString(repos_url);
dest.writeString(events_url);
dest.writeString(received_events_url);
dest.writeString(type);
dest.writeString(name);
dest.writeString(company);
dest.writeString(blog);
dest.writeString(location);
dest.writeString(email);
dest.writeInt(public_repos);
dest.writeInt(public_gists);
dest.writeInt(followers);
dest.writeInt(following);
dest.writeString(created_at);
dest.writeString(updated_at);
}
@Override
public void parse(JSONObject jsonObject) throws JSONException {
}
}