Example usage for android.os Parcel writeParcelable

List of usage examples for android.os Parcel writeParcelable

Introduction

In this page you can find the example usage for android.os Parcel writeParcelable.

Prototype

public final void writeParcelable(Parcelable p, int parcelableFlags) 

Source Link

Document

Flatten the name of the class of the Parcelable and its contents into the parcel.

Usage

From source file:com.vk.sdkweb.api.model.VKApiUserFull.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

From source file:com.nestlabs.sdk.Structure.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mStructureId);//from  www  .j a va2s  . co m
    dest.writeStringList(mThermostats);
    dest.writeStringList(mSmokeCoAlarms);
    dest.writeStringList(mCameras);
    dest.writeMap(mDevices);
    dest.writeString(mAway);
    dest.writeString(mName);
    dest.writeString(mCountryCode);
    dest.writeString(mPostalCode);
    dest.writeString(mPeakPeriodStartTime);
    dest.writeString(mPeakPeriodEndTime);
    dest.writeString(mTimeZone);
    dest.writeParcelable(mEta, flags);
    Utils.writeBoolean(dest, mRhrEnrollment);
    dest.writeMap(mWheres);
}

From source file:com.paranoid.gerrit.objects.JSONCommit.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(mKind);/*from   w  ww  .  j a va 2 s .c  om*/
    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.vk.sdk.api.model.VKApiUserFull.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeParcelable(this.occupation, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

From source file:com.vk.sdk.api.model.VKApiPost.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.to_id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_owner_id);
    dest.writeInt(this.reply_post_id);
    dest.writeByte(friends_only ? (byte) 1 : (byte) 0);
    dest.writeInt(this.comments_count);
    dest.writeByte(can_post_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes_count);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeByte(can_publish ? (byte) 1 : (byte) 0);
    dest.writeInt(this.reposts_count);
    dest.writeByte(user_reposted ? (byte) 1 : (byte) 0);
    dest.writeString(this.post_type);
    dest.writeParcelable(attachments, flags);
    dest.writeParcelable(this.geo, flags);
    dest.writeInt(this.signer_id);
}

From source file:com.tct.mail.providers.Attachment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(name);/*from   ww w  .j  a  va 2  s  .c  o m*/
    dest.writeInt(size);
    dest.writeParcelable(uri, flags);
    dest.writeString(contentType);
    dest.writeInt(state);
    dest.writeInt(destination);
    dest.writeInt(downloadedSize);
    dest.writeParcelable(contentUri, flags);
    dest.writeParcelable(thumbnailUri, flags);
    dest.writeParcelable(previewIntentUri, flags);
    dest.writeString(providerData);
    dest.writeInt(supportsDownloadAgain ? 1 : 0);
    dest.writeInt(type);
    dest.writeInt(flags);
    //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_S
    dest.writeString(contentId);
    //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_E
    //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_S
    dest.writeParcelable(realUri, flags);
    //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_E
    // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_S
    dest.writeInt(isInline);
    // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_E
}

From source file:com.eTilbudsavis.etasdk.model.ShoppinglistItem.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mId);
    dest.writeString(this.mErn);
    dest.writeByte(mTick ? (byte) 1 : (byte) 0);
    dest.writeString(this.mOfferId);
    dest.writeInt(this.mCount);
    dest.writeString(this.mDescription);
    dest.writeString(this.mCreator);
    dest.writeLong(mModified != null ? mModified.getTime() : -1);
    dest.writeParcelable(this.mOffer, flags);
    dest.writeString(this.mShoppinglistId);
    dest.writeString(this.mPrevId);
    dest.writeString(this.mMeta);
    dest.writeInt(this.mUserId);
    dest.writeInt(this.mSyncState);
}

From source file:com.mindmeapp.extensions.ExtensionData.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    /**// w w w . j a va2s .c  om
     * NOTE: When adding fields in the process of updating this API, make sure to bump
     * {@link #PARCELABLE_VERSION}.
     */
    parcel.writeInt(PARCELABLE_VERSION);
    // Version 1 below
    parcel.writeInt(mVisible ? 1 : 0);
    parcel.writeInt(mIcon);
    parcel.writeString(mIconUri == null ? "" : mIconUri.toString());
    parcel.writeString(TextUtils.isEmpty(mStatusToDisplay) ? "" : mStatusToDisplay);
    parcel.writeString(TextUtils.isEmpty(mStatusToSpeak) ? "" : mStatusToSpeak);
    parcel.writeSerializable(mLanguageToSpeak);
    parcel.writeParcelable(mViewsToDisplay, i);
    parcel.writeString(TextUtils.isEmpty(mContentDescription) ? "" : mContentDescription);
    parcel.writeInt(mBackground);
    parcel.writeString(mBackgroundUri == null ? "" : mBackgroundUri.toString());
}

From source file:com.codebutler.farebot.transit.suica.SuicaTrip.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeLong(mBalance);//  w  w w  . j a va  2 s  .  c o  m

    parcel.writeInt(mConsoleType);
    parcel.writeInt(mProcessType);

    parcel.writeInt(mIsProductSale ? 1 : 0);
    parcel.writeInt(mIsBus ? 1 : 0);

    parcel.writeInt(mIsCharge ? 1 : 0);

    parcel.writeLong(mFare);
    parcel.writeLong(mTimestamp.getTime());
    parcel.writeInt(mRegionCode);

    parcel.writeInt(mRailEntranceLineCode);
    parcel.writeInt(mRailEntranceStationCode);
    parcel.writeInt(mRailExitLineCode);
    parcel.writeInt(mRailExitStationCode);

    parcel.writeInt(mBusLineCode);
    parcel.writeInt(mBusStopCode);

    if (mStartStation != null) {
        parcel.writeInt(1);
        parcel.writeParcelable(mStartStation, flags);
    } else {
        parcel.writeInt(0);
    }

    if (mEndStation != null) {
        parcel.writeInt(1);
        parcel.writeParcelable(mEndStation, flags);
    } else {
        parcel.writeInt(0);
    }
}

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);//  w  w  w.  j a va2  s  . c o  m
    dest.writeParcelable(this.mDealer, flags);
    dest.writeParcelable(this.mStore, flags);
    dest.writeParcelable(this.mHotspots, flags);
}