This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| annotationProcessor 'com.ryanharter.auto.value:auto-value-gson:0.3.1' | |
| compile 'com.google.code.gson:gson:2.6.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static final Parcelable.Creator<AutoValue_PersonData> CREATOR = new Parcelable.Creator<AutoValue_PersonData>() { | |
| @Override | |
| public AutoValue_PersonData createFromParcel(Parcel in) { | |
| return new AutoValue_PersonData( | |
| in.readLong(), | |
| in.readString(), | |
| in.readInt(), | |
| in.readString(), | |
| in.readString(), | |
| in.readInt() == 0 ? in.readString() : null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @AutoValue | |
| public abstract class PersonData implements Parcelable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| annotationProcessor 'com.ryanharter.auto.value:auto-value-parcel:0.2.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean hasProfilePicure() { | |
| return this.profileUrl() != null; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Nullable | |
| abstract String pictureImageUrl(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (pictureImageUrl == null) { | |
| throw new NullPointerException("Null pictureImageUrl"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static Builder builder() { | |
| return new AutoValue_PersonData.Builder(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @AutoValue.Builder | |
| abstract static class Builder { | |
| abstract Builder id(long value); | |
| abstract Builder name(String value); | |
| abstract Builder status(int value); | |
| abstract Builder eMail(String value); | |
| abstract Builder profileUrl(String value); | |
| abstract Builder pictureImageUrl(String value); | |
| abstract PersonData build(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static PersonData create(long id, String name, int status, String eMail,String profileUrl, String pictureImageUrl) { | |
| return new AutoValue_PersonData(id, name, status, eMail, profileUrl, pictureImageUrl); | |
| } |