Back to project page jive-android-core-sdk-example.
The source code is released under:
Apache License
If you think the Android project jive-android-core-sdk-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jivesoftware.example.github.dao; //from w w w . ja v a 2 s . c o m import android.os.Parcel; import android.os.Parcelable; /** * Created by mark.schisler on 9/3/14. */ public class Repository implements Parcelable { public int id; public String name; public String fullName; public String description; public String url; public Owner owner; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeString(name); dest.writeString(fullName); dest.writeString(description); dest.writeString(url); dest.writeParcelable(owner, flags); } public static final Parcelable.Creator<Repository> CREATOR = new Parcelable.Creator<Repository>() { @Override public Repository createFromParcel(Parcel source) { Repository repository = new Repository(); repository.id = source.readInt(); repository.name = source.readString(); repository.fullName = source.readString(); repository.description = source.readString(); repository.url = source.readString(); repository.owner = source.readParcelable(Owner.class.getClassLoader()); return repository; } @Override public Repository[] newArray(int size) { return new Repository[size]; } }; }