Example usage for android.os Parcel writeTypedList

List of usage examples for android.os Parcel writeTypedList

Introduction

In this page you can find the example usage for android.os Parcel writeTypedList.

Prototype

public final <T extends Parcelable> void writeTypedList(List<T> val) 

Source Link

Document

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed.

Usage

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.  j  ava 2  s  . c o  m*/
    dest.writeTypedList(legs);
    dest.writeString(mode);
    dest.writeParcelable(fare, flags);
}

From source file:com.getchute.android.photopickerplus.models.MediaModel.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(options, flags);
    dest.writeTypedList(media);

}

From source file:com.cuddlesoft.norilib.SearchResult.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(images);
    dest.writeInt(offset);//from www.  j a  v a 2s  .c  o  m
    dest.writeTypedArray(query, 0);
    dest.writeByte((byte) (hasNextPage ? 0x01 : 0x00));
}

From source file:com.github.capone.protocol.entities.Server.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(name);/*w  w w  .  j a va 2 s. c  o m*/
    dest.writeString(address);
    dest.writeParcelable(signatureKey, flags);
    dest.writeTypedList(services);
}

From source file:com.example.propertylist.handler.JsonPropertyHandler.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(propertyList);

}

From source file:com.getchute.android.photopickerplus.models.MediaResponseModel.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(assetList);
    dest.writeString(clientId);/* ww w  . ja  v a  2 s . c o m*/
    dest.writeString(createdAt);
    dest.writeString(storeId);
    dest.writeString(updatedAt);
    dest.writeParcelable(parcel, flags);
    dest.writeParcelable(profile, flags);

}

From source file:com.cas.model.CourseContent.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);//from   ww  w .  j  a  v a 2  s .c om
    dest.writeString(name);
    dest.writeInt(visible);
    dest.writeString(summary);
    dest.writeTypedList(modules);
}

From source file:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieGridViewModelOnlImpl.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);

    dest.writeTypedList(mMovies);
    dest.writeInt(mMoviePage);/*from   www .j a v a 2s  .co m*/
    dest.writeByte(mRefreshing ? (byte) 1 : (byte) 0);
    dest.writeByte(mLoadingMore ? (byte) 1 : (byte) 0);
    dest.writeByte(mLoadingNewSort ? (byte) 1 : (byte) 0);
    dest.writeParcelable(mSortSelected, 0);
    dest.writeInt(mMovieDbIdSelected);
}

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);// ww w .  jav  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.cas.model.Course.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);//from  w w w.  j  a  v  a 2s. co m
    dest.writeString(shortname);
    dest.writeString(fullname);
    dest.writeInt(enrolledusercount);
    dest.writeString(idnumber);
    dest.writeInt(visible);
    dest.writeTypedList(coursecontents);
}