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:org.dmfs.android.microfragments.demo.microfragments.MicroFragment2.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mParams.name());/*from   ww w  . j ava2s  .c o  m*/
    dest.writeSerializable(mParams.uri());
    dest.writeParcelable(mParams.next().boxed(), flags);
}

From source file:ir.aarani.bazaar.billing.TransactionDetails.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.productId);
    dest.writeString(this.orderId);
    dest.writeString(this.purchaseToken);
    dest.writeLong(purchaseTime != null ? purchaseTime.getTime() : -1);
    dest.writeParcelable(this.purchaseInfo, flags);
}

From source file:com.smoothsync.smoothsetup.microfragments.ChooseProviderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelableArray(mProviders, flags);
    dest.writeString(mAccount.value(null));
    dest.writeParcelable(mNext.boxed(), flags);
}

From source file:com.danlvse.weebo.model.Comment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.created_at);
    dest.writeString(this.id);
    dest.writeString(this.text);
    dest.writeString(this.source);
    dest.writeParcelable(this.user, flags);
    dest.writeString(this.mid);
    dest.writeString(this.idstr);
    dest.writeParcelable(this.status, flags);
    dest.writeParcelable(this.reply_comment, flags);
}

From source file:com.facebook.notifications.internal.content.TextContent.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(text);/*from ww  w  . ja  va 2  s  . c  o  m*/
    dest.writeInt(textColor);

    dest.writeString(typeface);
    dest.writeFloat(typefaceSize);

    dest.writeParcelable(textAlignment, flags);
}

From source file:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(origin, 0);
    dest.writeParcelable(destination, 0);
    dest.writeParcelable(via, 0);//from  ww w  .  j  a  v  a2  s .c  o m
    dest.writeString(time.format2445());
    dest.writeInt(isTimeDeparture ? 1 : 0);
    dest.writeInt(alternativeStops ? 1 : 0);
    dest.writeStringList(transportModes);
    dest.writeString(ident);
    dest.writeString(seqnr);
}

From source file:fr.free.nrw.commons.contributions.Contribution.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    super.writeToParcel(parcel, flags);
    parcel.writeParcelable(contentUri, flags);
    parcel.writeString(source);//from w  ww. j  a  v a2 s  .c  o  m
    parcel.writeInt(state);
    parcel.writeLong(transferred);
    parcel.writeInt(isMultiple ? 1 : 0);
}

From source file:org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.java

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeString(baseUrl);//ww  w  .jav  a 2 s. com
    dest.writeString(userIdentifier);
    dest.writeString(password);
    dest.writeParcelable(rootNode, PARCELABLE_WRITE_RETURN_VALUE);
    dest.writeSerializable(repositoryInfo);
    dest.writeSerializable(cmisSession);
    Bundle b = new Bundle();
    b.putSerializable("userParameters", (Serializable) userParameters);
    dest.writeBundle(b);
}

From source file:com.tigerpenguin.places.model.PlaceDetail.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(addressComponents);//from  w  ww  .  ja v  a  2s.  co m
    dest.writeString(formattedAddress);
    dest.writeString(localPhone);
    dest.writeParcelable(geometry, flags);
    dest.writeString(iconUrl);
    dest.writeString(placeId);
    dest.writeString(internationalPhone);
    dest.writeString(name);
    dest.writeParcelable(openingHours, flags);
    dest.writeList(photos);
    dest.writeSerializable(priceLevel);
    dest.writeDouble(rating);
    dest.writeList(reviews);
    dest.writeList(types);
    dest.writeString(googlePlacePageUrl);
    dest.writeInt(utcOffset);
    dest.writeString(vicinity);
    dest.writeString(businessWebsite);
}

From source file:org.alfresco.mobile.android.api.services.impl.AlfrescoService.java

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeParcelable(session, PARCELABLE_WRITE_RETURN_VALUE);
}