package pl.mbaleczny.instalike.domain.model;


public class User {

    private long id;

    private String firstName;
    private String lastName;
    private String email;
    private String username;
    private String role;
    private String active;
    private Object phoneNumber;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Object getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(Object phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getActive() {
        return active;
    }

    public boolean isActive() {
        return active != null;
    }

    public void setActive(String active) {
        this.active = active;
    }
}
@@ -44,28 +44,432 @@
 ;%0A%0A%0A
-public class User %7B%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0Apublic class User implements Parcelable %7B%0A%0A    public static final Parcelable.Creator%3CUser%3E CREATOR = new Parcelable.Creator%3CUser%3E() %7B%0A        @Override%0A        public User createFromParcel(Parcel source) %7B%0A            return new User(source);%0A        %7D%0A%0A        @Override%0A        public User%5B%5D newArray(int size) %7B%0A            return new User%5Bsize%5D;%0A        %7D%0A    %7D;
 %0A   
@@ -486,17 +486,16 @@
 ong id;%0A
-%0A
     priv
@@ -668,27 +668,584 @@
 ate 
-Object phoneNumber;
+String phoneNumber;%0A    private String printForm;%0A%0A    public User() %7B%0A    %7D%0A%0A    protected User(Parcel in) %7B%0A        this.id = in.readLong();%0A        this.firstName = in.readString();%0A        this.lastName = in.readString();%0A        this.email = in.readString();%0A        this.username = in.readString();%0A        this.role = in.readString();%0A        this.active = in.readString();%0A        this.phoneNumber = in.readParcelable(Object.class.getClassLoader());%0A        this.printForm = username;%0A    %7D%0A%0A    public static Creator%3CUser%3E getCREATOR() %7B%0A        return CREATOR;%0A    %7D
 %0A%0A  
@@ -1975,160 +1975,220 @@
 lic 
-Object getPhoneNumber() %7B%0A        return phoneNumber;%0A    %7D%0A%0A    public void setPhoneNumber(Object phoneNumber) %7B%0A        this.phoneNumber = phoneNumber
+String getPrintForm() %7B%0A        if (printForm == null) %7B%0A            return username;%0A        %7D%0A        return printForm;%0A    %7D%0A%0A    public void setPrintForm(String printForm) %7B%0A        this.printForm = printForm
 ;%0A  
@@ -2532,10 +2532,732 @@
 e;%0A    %7D
+%0A%0A    public String getPhoneNumber() %7B%0A        return phoneNumber;%0A    %7D%0A%0A    public void setPhoneNumber(String phoneNumber) %7B%0A        this.phoneNumber = phoneNumber;%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeLong(this.id);%0A        dest.writeString(this.firstName);%0A        dest.writeString(this.lastName);%0A        dest.writeString(this.email);%0A        dest.writeString(this.username);%0A        dest.writeString(this.role);%0A        dest.writeString(this.active);%0A        dest.writeString(this.phoneNumber);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return getPrintForm();%0A    %7D
 %0A%7D

Make User class Parcelable