List of usage examples for android.os Parcel writeByte
public final void writeByte(byte val)
From source file:com.citrus.sdk.TransactionResponse.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(this.balanceAmount, 0); dest.writeParcelable(this.transactionAmount, 0); dest.writeString(this.message); dest.writeString(this.responseCode); dest.writeInt(this.transactionStatus == null ? -1 : this.transactionStatus.ordinal()); dest.writeParcelable(this.transactionDetails, 0); dest.writeParcelable(this.citrusUser, 0); dest.writeInt(this.paymentMode == null ? -1 : this.paymentMode.ordinal()); dest.writeString(this.issuerCode); dest.writeString(this.impsMobileNumber); dest.writeString(this.impsMmid); dest.writeString(this.authIdCode); dest.writeString(this.signature); dest.writeString(this.maskedCardNumber); dest.writeByte(COD ? (byte) 1 : (byte) 0); dest.writeMap(this.customParamsMap); dest.writeString(this.jsonResponse); }
From source file:com.tdispatch.passenger.model.BookingData.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeLong(getLocalId());/*from www. ja v a 2 s .c o 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.orbar.pxdemo.Model.FiveZeroZeroImageBean.java
@Override public void writeToParcel(Parcel dest, int flags) { Log.v(TAG, "writeToParcel..." + flags); dest.writeInt(id);//from w ww . jav a2s. c o m dest.writeInt(userId); dest.writeString(name); dest.writeString(description); dest.writeString(camera); dest.writeString(lens); dest.writeString(focalLength); dest.writeString(iso); dest.writeString(shutterSpeed); dest.writeString(aperture); dest.writeInt(timesViewed); dest.writeFloat(rating); dest.writeString(createdAt); dest.writeInt(status); dest.writeString(createdAt); dest.writeInt(category); dest.writeString(location); dest.writeByte((byte) (privacy ? 1 : 0)); // Boolean dest.writeString(latitude); dest.writeString(longitude); dest.writeString(takenAt); dest.writeInt(hiResUploaded); dest.writeByte((byte) (forSale ? 1 : 0)); // Boolean dest.writeInt(width); dest.writeInt(height); dest.writeInt(votesCount); dest.writeInt(favoritesCount); dest.writeInt(commentsCount); dest.writeByte((byte) (nsfw ? 1 : 0)); // Boolean dest.writeInt(salesCount); dest.writeFloat(highestRating); dest.writeString(highestRatingDate); dest.writeInt(licenseType); dest.writeString(imageUrl); dest.writeByte((byte) (storeDownload ? 1 : 0)); // Boolean dest.writeByte((byte) (storePrint ? 1 : 0)); // Boolean dest.writeByte((byte) (voted ? 1 : 0)); // Boolean dest.writeByte((byte) (favorited ? 1 : 0)); // Boolean dest.writeByte((byte) (purchased ? 1 : 0)); // Boolean dest.writeParcelable(userBean, flags); }
From source file:com.android.emailcommon.provider.Account.java
/** * Supports Parcelable// w ww . j a v a2 s . c o 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:com.mobilyzer.measurements.RRCTask.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte((byte) (stopFlag ? 1 : 0)); dest.writeLong(duration);//from w ww .jav a 2 s . co m }
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.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); }