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.sdk.api.model.VKApiComment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_to_user);
    dest.writeInt(this.reply_to_comment);
    dest.writeInt(this.likes);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeParcelable(this.attachments, flags);
}

From source file:com.baasbox.android.BaasUser.java

private static void writeOptJson(Parcel p, JsonObject o) {
    if (o == null) {
        p.writeByte((byte) 0);
    } else {/*from   w ww  .j  av a 2s .  c  om*/
        p.writeByte((byte) 1);
        p.writeParcelable(o, 0);
    }
}

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mErn);
    dest.writeString(this.mStreet);
    dest.writeString(this.mCity);
    dest.writeString(this.mZipcode);
    dest.writeParcelable(this.mCountry, flags);
    dest.writeDouble(this.mLatitude);
    dest.writeDouble(this.mLongitude);
    dest.writeString(this.mDealerUrl);
    dest.writeString(this.mDealerId);
    dest.writeParcelable(this.mBranding, flags);
    dest.writeString(this.mContact);
    dest.writeParcelable(this.mDealer, flags);
}

From source file:com.yanzhenjie.album.api.widget.Widget.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mUiStyle);/*from ww w .  j a  va 2 s .  com*/
    dest.writeInt(mStatusBarColor);
    dest.writeInt(mToolBarColor);
    dest.writeInt(mNavigationBarColor);
    dest.writeString(mTitle);
    dest.writeParcelable(mMediaItemCheckSelector, flags);
    dest.writeParcelable(mBucketItemCheckSelector, flags);
    dest.writeParcelable(mButtonStyle, flags);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.album_id);
    dest.writeInt(this.owner_id);
    dest.writeInt(this.width);
    dest.writeInt(this.height);
    dest.writeString(this.text);
    dest.writeLong(this.date);
    dest.writeParcelable(this.src, flags);
    dest.writeString(this.photo_75);
    dest.writeString(this.photo_130);
    dest.writeString(this.photo_604);
    dest.writeString(this.photo_807);
    dest.writeString(this.photo_1280);
    dest.writeString(this.photo_2560);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes);
    dest.writeInt(this.comments);
    dest.writeInt(this.tags);
    dest.writeString(this.access_key);
}

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:io.nuclei.cyto.share.PackageTargetManager.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mFacebookId);//  www .ja va2 s .co  m
    dest.writeString(mText);
    dest.writeString(mUrl);
    dest.writeString(mEmail);
    dest.writeString(mSubject);
    dest.writeSerializable(mFile);
    dest.writeParcelable(mUri, 0);
}

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mErn);
    dest.writeString(this.mGender);
    dest.writeInt(this.mBirthYear);
    dest.writeString(this.mName);
    dest.writeString(this.mEmail);
    dest.writeParcelable(this.mPermissions, flags);
}

From source file:net.exclaimindustries.geohashdroid.util.KnownLocation.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    // Nice how this is easily parcelable.
    dest.writeString(mName);//from  w w w.j  av  a2s .  c  o m
    dest.writeParcelable(mLocation, 0);
    dest.writeDouble(mRange);
    dest.writeByte((byte) (mRestrictGraticule ? 0 : 1));
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.first_name);
    dest.writeString(this.last_name);
    dest.writeByte(online ? (byte) 1 : (byte) 0);
    dest.writeByte(online_mobile ? (byte) 1 : (byte) 0);
    dest.writeString(this.photo_50);
    dest.writeString(this.photo_100);
    dest.writeString(this.photo_200);
    dest.writeParcelable(this.photo, flags);
    dest.writeString(this.full_name);
}