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:ca.frozen.rpicameraviewer.classes.Camera.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(network);//from   w  w w.j  ava 2s  .c o  m
    dest.writeString(name);
    dest.writeParcelable(source, flags);
}

From source file:com.citrus.sdk.payment.PaymentBill.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(this.amount, 0);
    dest.writeString(this.requestSignature);
    dest.writeString(this.merchantTransactionId);
    dest.writeString(this.merchantAccessKey);
    dest.writeString(this.returnUrl);
    dest.writeString(this.notifyUrl);
    dest.writeMap(this.customParametersMap);
}

From source file:com.schedjoules.eventdiscovery.framework.microfragments.eventdetails.EventDetailLoaderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(new EventBox(mEvent), flags);
}

From source file:com.markupartist.sthlmtraveling.data.models.Route.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(duration);//from  w  w w.  jav  a2 s. co  m
    dest.writeTypedList(legs);
    dest.writeString(mode);
    dest.writeParcelable(fare, flags);
}

From source file:ca.frozen.rpicameraviewer.classes.Settings.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(cameraName);//from  w  ww  .j  a v a 2 s .  co  m
    dest.writeInt(showAllCameras ? 1 : 0);
    dest.writeParcelable(rawTcpIpSource, flags);
    dest.writeParcelable(rawHttpSource, flags);
    dest.writeParcelable(rawMulticastSource, flags);
}

From source file:com.paymaya.sdk.android.checkout.models.Checkout.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(totalAmount, flags);
    dest.writeParcelable(buyer, flags);/* w  w  w  .  j  a  v  a  2  s .c om*/
    dest.writeTypedList(itemList);
    dest.writeParcelable(redirectUrl, flags);
    dest.writeString(requestReferenceNumber);
    dest.writeByte((byte) (isAutoRedirect ? 1 : 0));
    if (metadata != null) {
        dest.writeString(metadata.toString());
    }
}

From source file:com.liferay.alerts.model.Alert.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeLong(_id);/*from w  ww  .j  av a 2  s  . c  o  m*/
    parcel.writeParcelable(_user, 0);
    parcel.writeString(_payload.toString());
    parcel.writeInt((_read ? 1 : 0));
    parcel.writeLong(_timestamp);
}

From source file:org.onepf.opfmaps.osmdroid.model.BitmapDescriptor.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(source.name());/*from   w ww  .  j a v  a 2 s.co  m*/
    dest.writeParcelable(image, flags);
    dest.writeString(path);
    dest.writeFloat(hue);
    dest.writeInt(resourceId);
}

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

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

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(mLoginRequest.boxed(), flags);
    dest.writeParcelable(mNext.boxed(), flags);
}