List of usage examples for android.os Parcel writeParcelable
public final void writeParcelable(Parcelable p, int parcelableFlags)
From source file:io.bunnyblue.noticedog.app.notifications.Notification.java
public void writeToParcel(Parcel out, int flags) { out.writeString(this.packageName); out.writeInt(this.id); out.writeString(this.tag); out.writeString(this.key); out.writeLong(this.when); out.writeInt(this.smallIcon); out.writeParcelable(this.largeIcon, 0); out.writeString(this.tickerText); out.writeString(this.contentTitle); out.writeString(this.contentText); out.writeString(this.contentInfoText); out.writeParcelable(this.expandedLargeIconBig, 0); out.writeString(this.expandedContentTitle); out.writeString(this.expandedContentText); out.writeStringList(this.expandedInboxText); out.writeList(this.people); out.writeParcelable(this.picture, 0); out.writeInt(this.priority); out.writeParcelable(this.pendingLaunchIntent, 0); out.writeList(this.actions); logParcelSize(out);//from w w w. j ava2 s. c om }
From source file:com.scvngr.levelup.core.net.LevelUpResponse.java
@Override public void writeToParcel(final Parcel dest, final int flags) { super.writeToParcel(dest, flags); dest.writeString(mStatus.name());//from ww w. ja v a2 s. c om dest.writeTypedList(mServerErrors); dest.writeSerializable(mServerErrorReadError); dest.writeParcelable(mOriginalResponse, flags); }
From source file:de.mrapp.android.preference.activity.PreferenceHeader.java
@Override public final void writeToParcel(final Parcel dest, final int flags) { TextUtils.writeToParcel(getTitle(), dest, flags); TextUtils.writeToParcel(getSummary(), dest, flags); TextUtils.writeToParcel(getBreadCrumbTitle(), dest, flags); TextUtils.writeToParcel(getBreadCrumbShortTitle(), dest, flags); Bitmap bitmap = (getIcon() != null && getIcon() instanceof BitmapDrawable) ? ((BitmapDrawable) getIcon()).getBitmap() : null;/*from ww w . j a v a 2 s . c o m*/ dest.writeParcelable(bitmap, flags); dest.writeString(getFragment()); dest.writeBundle(getExtras()); if (getIntent() != null) { dest.writeInt(1); getIntent().writeToParcel(dest, flags); } else { dest.writeInt(0); } }
From source file:com.vk.sdk.api.model.VKApiVideo.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.id); dest.writeInt(this.owner_id); dest.writeInt(this.album_id); dest.writeString(this.title); dest.writeString(this.description); dest.writeInt(this.duration); dest.writeString(this.link); dest.writeLong(this.date); dest.writeInt(this.views); dest.writeString(this.player); dest.writeString(this.photo_130); dest.writeString(this.photo_320); dest.writeString(this.photo_640); dest.writeParcelable(this.photo, flags); dest.writeString(this.access_key); dest.writeInt(this.comments); dest.writeByte(can_comment ? (byte) 1 : (byte) 0); dest.writeByte(can_repost ? (byte) 1 : (byte) 0); dest.writeByte(user_likes ? (byte) 1 : (byte) 0); dest.writeByte(repeat ? (byte) 1 : (byte) 0); dest.writeInt(this.likes); dest.writeInt(this.privacy_view); dest.writeInt(this.privacy_comment); dest.writeString(this.mp4_240); dest.writeString(this.mp4_360); dest.writeString(this.mp4_480); dest.writeString(this.mp4_720); dest.writeString(this.external); }
From source file:com.rubengees.introduction.entity.Slide.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.position); dest.writeString(this.title); dest.writeValue(this.titleResource); dest.writeValue(this.titleSize); dest.writeString(this.description); dest.writeValue(this.descriptionResource); dest.writeValue(this.descriptionSize); dest.writeValue(this.imageResource); dest.writeValue(this.color); dest.writeValue(this.colorResource); dest.writeParcelable(this.option, flags); dest.writeSerializable(this.customViewBuilder); }
From source file:com.nestapi.lib.API.Structure.java
/** {@inheritDoc} */ @Override//from www. jav a 2s . c om public void writeToParcel(Parcel dest, int flags) { dest.writeString(mStructureID); dest.writeStringList(mThermostatIDs); dest.writeStringList(mSmokeCOAlarms); dest.writeString(mName); dest.writeString(mCountryCode); dest.writeString(mPeakPeriodStartTime); dest.writeString(mPeakPeriodEndTime); dest.writeString(mTimeZone); dest.writeSerializable(mAwayState); dest.writeParcelable(mETA, 0); }
From source file:com.tlongdev.bktf.model.Item.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(defindex);//from ww w.j a va2 s .c o m dest.writeString(name); dest.writeInt(quality); dest.writeByte((byte) (tradable ? 1 : 0)); dest.writeByte((byte) (craftable ? 1 : 0)); dest.writeByte((byte) (australium ? 1 : 0)); dest.writeInt(priceIndex); dest.writeInt(weaponWear); dest.writeParcelable(price, flags); }
From source file:org.jorge.lolin1.func.champs.models.Champion.java
@Override public void writeToParcel(Parcel dest, int flags) { Field[] declaredFields = Champion.class.getDeclaredFields(); try {//from w ww .j av a2 s.c o m for (Field x : declaredFields) { Class<?> thisType = x.getType(); if (thisType == String.class) { x.setAccessible(Boolean.TRUE); dest.writeString(x.get(this).toString()); x.setAccessible(Boolean.FALSE); } } } catch (IllegalAccessException e) { Crashlytics.logException(e); } dest.writeStringArray(tags); dest.writeStringArray(skins); dest.writeParcelable(this.passive, flags); dest.writeParcelableArray(this.spells, flags); }
From source file:com.tdispatch.passenger.model.BookingData.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeLong(getLocalId());//from www . j ava2s.co m out.writeString(getPk()); out.writeString(getBookingKey()); out.writeString(getDriverPk()); out.writeString(getPickupDateString()); out.writeParcelable(getPickupLocation(), 0); out.writeParcelable(getDropoffLocation(), 0); out.writeInt(getPassengerCount()); out.writeInt(getLuggageCount()); out.writeString(getFlightNumber()); out.writeDouble(getDistanceKm()); out.writeDouble(getDistanceMiles()); out.writeString(getCustomerName()); out.writeString(getCustomerPhone()); out.writeString(getExtraInfo()); out.writeString(getPaymentStatus()); out.writeInt(getPaymentMethod()); out.writeByte((byte) (isPrepaid() ? 1 : 0)); out.writeString(getCost()); out.writeString(getTotalCost()); out.writeString(getCabOfficeName()); out.writeString(getCabOfficeSlug()); out.writeInt(getType()); out.writeString(getReceiptUrl()); out.writeString(getJson().toString()); out.writeInt(mWayPoints.size()); for (LocationData item : mWayPoints) { out.writeParcelable(item, 0); } }
From source file:com.eTilbudsavis.etasdk.model.Offer.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.mErn); dest.writeString(this.mHeading); dest.writeString(this.mDescription); dest.writeInt(this.mCatalogPage); dest.writeParcelable(this.mPricing, flags); dest.writeParcelable(this.mQuantity, flags); dest.writeParcelable(this.mImages, flags); dest.writeParcelable(this.mLinks, flags); dest.writeLong(mRunFrom != null ? mRunFrom.getTime() : -1); dest.writeLong(mRunTill != null ? mRunTill.getTime() : -1); dest.writeString(this.mDealerUrl); dest.writeString(this.mDealerId); dest.writeString(this.mStoreUrl); dest.writeString(this.mStoreId); dest.writeString(this.mCatalogUrl); dest.writeString(this.mCatalogId); dest.writeParcelable(this.mCatalog, flags); dest.writeParcelable(this.mDealer, flags); dest.writeParcelable(this.mStore, flags); }