List of usage examples for android.os Parcel writeTypedList
public final <T extends Parcelable> void writeTypedList(List<T> val)
From source file:com.paranoid.gerrit.objects.JSONCommit.java
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(mKind);//from w ww.ja v a2s . co m parcel.writeString(mId); parcel.writeString(mProject); parcel.writeString(mBranch); parcel.writeString(mChangeId); parcel.writeString(mSubject); parcel.writeString(mStatus.name()); parcel.writeString(mCreatedDate); parcel.writeString(mLastUpdatedDate); parcel.writeByte((byte) (mIsMergeable ? 1 : 0)); parcel.writeString(mSortKey); parcel.writeInt(mCommitNumber); parcel.writeString(mCurrentRevision); parcel.writeParcelable(mOwnerObject, 0); parcel.writeParcelable(mPatchSet, 0); parcel.writeParcelable(mFileInfos, 0); parcel.writeString(mWebAddress); parcel.writeParcelable(mReviewers, 0); parcel.writeInt(mPatchSetNumber); parcel.writeTypedList(mMessagesList); }
From source file:com.eTilbudsavis.etasdk.model.Catalog.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.mErn); dest.writeString(this.mLabel); dest.writeValue(this.mBackground); dest.writeLong(mRunFrom != null ? mRunFrom.getTime() : -1); dest.writeLong(mRunTill != null ? mRunTill.getTime() : -1); dest.writeInt(this.mPageCount); dest.writeInt(this.mOfferCount); dest.writeParcelable(this.mBranding, flags); dest.writeString(this.mDealerId); dest.writeString(this.mDealerUrl); dest.writeString(this.mStoreId); dest.writeString(this.mStoreUrl); dest.writeParcelable(this.mDimension, flags); dest.writeParcelable(this.mImages, flags); dest.writeSerializable(this.mCatrgoryIds); dest.writeString(this.mPdfUrl); dest.writeTypedList(mPages); dest.writeParcelable(this.mDealer, flags); dest.writeParcelable(this.mStore, flags); dest.writeParcelable(this.mHotspots, flags); }
From source file:com.frodo.github.bean.dto.response.Repo.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(fork ? (byte) 1 : (byte) 0); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeLong(created_at != null ? created_at.getTime() : -1); dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1); dest.writeLong(updated_at != null ? updated_at.getTime() : -1); dest.writeInt(this.forks_count); dest.writeLong(this.id); dest.writeParcelable(this.parent, 0); dest.writeParcelable(this.source, 0); dest.writeString(this.clone_url); dest.writeString(this.forks_url); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeString(this.git_url); dest.writeString(this.contents_url); dest.writeString(this.language); dest.writeString(this.default_branch); dest.writeString(this.mirror_url); dest.writeString(this.name); dest.writeString(this.full_name); dest.writeString(this.ssh_url); dest.writeString(this.svn_url); dest.writeParcelable(this.owner, 0); dest.writeInt(this.stargazers_count); dest.writeInt(this.subscribers_count); dest.writeInt(this.network_count); dest.writeInt(this.watchers_count); dest.writeInt(this.size); dest.writeInt(this.open_issues_count); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeParcelable(this.permissions, 0); dest.writeParcelable(this.license, 0); dest.writeTypedList(branches); dest.writeString(archive_url);//from w w w . ja v a 2 s .c om }