List of usage examples for android.os Parcel writeLong
public final void writeLong(long val)
From source file:com.nestapi.lib.API.Thermostat.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); writeBoolean(dest, mCanCool);/*from www . j a v a 2 s . c om*/ writeBoolean(dest, mCanHeat); writeBoolean(dest, mIsUsingEmergencyHeat); writeBoolean(dest, mHasFan); dest.writeString(mFanTimerTimeout); writeBoolean(dest, mHasLeaf); dest.writeString(mTemperatureScale); dest.writeLong(mAwayTemperatureHighF); dest.writeDouble(mAwayTemperatureHighC); dest.writeLong(mAwayTemperatureLowF); dest.writeDouble(mAwayTemperatureLowC); dest.writeLong(mAmbientTemperatureF); dest.writeDouble(mAmbientTemperatureC); writeBoolean(dest, mFanTimerActive); dest.writeLong(mTargetTemperatureF); dest.writeDouble(mTargetTemperatureC); dest.writeLong(mTargetTemperatureHighF); dest.writeDouble(mTargetTemperatureHighC); dest.writeLong(mTargetTemperatureLowF); dest.writeDouble(mTargetTemperatureLowC); dest.writeSerializable(mHVACmode); }
From source file:at.diamonddogs.data.adapter.parcelable.ParcelableAdapterWebRequest.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(dataObject.getProcessorId()); dest.writeSerializable(dataObject.getRequestType()); dest.writeSerializable(dataObject.getUrl()); dest.writeInt(dataObject.getReadTimeout()); dest.writeInt(dataObject.getConnectionTimeout()); // Parcel.writeBoolean is missing m( // workaround: http://code.google.com/p/android/issues/detail?id=5973 dest.writeInt(dataObject.isFollowRedirects() ? 1 : 0); dest.writeInt(dataObject.getTmpFile().first ? 1 : 0); if (dataObject.getTmpFile().first) { dest.writeParcelable(new ParcelableAdapterTempFile(dataObject.getTmpFile().second), 0); }//w w w .j a v a 2 s . c o m writeStringMap(dest, dataObject.getHeader()); dest.writeLong(dataObject.getCacheTime()); dest.writeInt(dataObject.getNumberOfRetries()); dest.writeInt(dataObject.getRetryInterval()); dest.writeInt(dataObject.isCancelled() ? 1 : 0); dest.writeInt(dataObject.isCheckConnectivity() ? 1 : 0); dest.writeInt(dataObject.isCheckConnectivityPing() ? 1 : 0); dest.writeInt(dataObject.isUseOfflineCache() ? 1 : 0); }
From source file:com.wellsandwhistles.android.redditsp.reddit.things.RedditComment.java
public void writeToParcel(final Parcel parcel, final int flags) { parcel.writeString(body);/*from ww w . ja va2 s. c om*/ parcel.writeString(body_html); parcel.writeString(author); parcel.writeString(subreddit); parcel.writeString(author_flair_text); parcel.writeInt(archived ? 1 : 0); if (likes == null) { parcel.writeInt(0); } else { parcel.writeInt(likes ? 1 : -1); } parcel.writeString(id); parcel.writeString(subreddit_id); parcel.writeString(link_id); parcel.writeString(parent_id); parcel.writeString(name); parcel.writeString(context); parcel.writeInt(ups); parcel.writeInt(downs); if (edited instanceof Long) { parcel.writeLong((Long) edited); } else { parcel.writeLong(-1); } parcel.writeLong(created); parcel.writeLong(created_utc); parcel.writeInt(saved ? 1 : 0); parcel.writeInt(gilded); parcel.writeString(distinguished); }
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);//from w w w .ja v a 2 s . c om dest.writeParcelable(this.mDealer, flags); dest.writeParcelable(this.mStore, flags); dest.writeParcelable(this.mHotspots, flags); }
From source file:com.vk.sdk.api.model.VKApiCommunityFull.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeParcelable(this.city, flags); dest.writeParcelable(this.country, flags); dest.writeParcelable(this.status_audio, flags); dest.writeParcelable(this.place, flags); dest.writeString(this.description); dest.writeString(this.wiki_page); dest.writeInt(this.members_count); dest.writeParcelable(this.counters, flags); dest.writeLong(this.start_date); dest.writeLong(this.end_date); dest.writeByte(can_post ? (byte) 1 : (byte) 0); dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0); dest.writeString(this.status); dest.writeParcelable(this.contacts, flags); dest.writeParcelable(this.links, flags); dest.writeInt(this.fixed_post); dest.writeByte(verified ? (byte) 1 : (byte) 0); dest.writeString(this.site); dest.writeByte(blacklisted ? (byte) 1 : (byte) 0); }
From source file:com.nestlabs.sdk.Thermostat.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); Utils.writeBoolean(dest, mCanCool);/*from w ww. ja va 2s. c o m*/ Utils.writeBoolean(dest, mCanHeat); Utils.writeBoolean(dest, mIsUsingEmergencyHeat); Utils.writeBoolean(dest, mHasFan); Utils.writeBoolean(dest, mFanTimerActive); dest.writeString(mFanTimerTimeout); Utils.writeBoolean(dest, mHasLeaf); dest.writeString(mTemperatureScale); dest.writeLong(mTargetTemperatureF); dest.writeDouble(mTargetTemperatureC); dest.writeLong(mTargetTemperatureHighF); dest.writeDouble(mTargetTemperatureHighC); dest.writeLong(mTargetTemperatureLowF); dest.writeDouble(mTargetTemperatureLowC); dest.writeLong(mAwayTemperatureHighF); dest.writeDouble(mAwayTemperatureHighC); dest.writeLong(mAwayTemperatureLowF); dest.writeDouble(mAwayTemperatureLowC); dest.writeString(mHvacMode); dest.writeLong(mAmbientTemperatureF); dest.writeDouble(mAmbientTemperatureC); dest.writeLong(mHumidity); dest.writeString(mHvacState); Utils.writeBoolean(dest, mIsLocked); dest.writeString(mLockedTempMinF); dest.writeString(mLockedTempMaxF); dest.writeString(mLockedTempMinC); dest.writeString(mLockedTempMaxC); dest.writeString(mLabel); }
From source file:com.android.emailcommon.provider.Account.java
/** * Supports Parcelable/*from www . j a v a 2s .co m*/ */ @Override public void writeToParcel(Parcel dest, int flags) { // mBaseUri is not parceled dest.writeLong(mId); dest.writeString(mDisplayName); dest.writeString(mEmailAddress); dest.writeString(mSyncKey); dest.writeInt(mSyncLookback); dest.writeInt(mSyncInterval); dest.writeLong(mHostAuthKeyRecv); dest.writeLong(mHostAuthKeySend); dest.writeInt(mFlags); dest.writeString("" /* mCompatibilityUuid */); dest.writeString(mSenderName); dest.writeString(mRingtoneUri); dest.writeString(mProtocolVersion); dest.writeInt(0 /* mNewMessageCount */); dest.writeString(mSecuritySyncKey); dest.writeString(mSignature); dest.writeLong(mPolicyKey); if (mHostAuthRecv != null) { dest.writeByte((byte) 1); mHostAuthRecv.writeToParcel(dest, flags); } else { dest.writeByte((byte) 0); } if (mHostAuthSend != null) { dest.writeByte((byte) 1); mHostAuthSend.writeToParcel(dest, flags); } else { dest.writeByte((byte) 0); } }
From source file:de.azapps.mirakel.model.list.ListMirakel.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(this.sortBy.ordinal()); dest.writeString(this.createdAt); dest.writeString(this.updatedAt); dest.writeInt(this.syncState.ordinal()); dest.writeInt(this.lft); dest.writeInt(this.rgt); dest.writeInt(this.color); dest.writeLong(this.accountID); dest.writeByte(isSpecial ? (byte) 1 : (byte) 0); dest.writeLong(this.getId()); dest.writeString(this.getName()); }
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.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); }