Example usage for android.os Parcel readTypedList

List of usage examples for android.os Parcel readTypedList

Introduction

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

Prototype

public final <T> void readTypedList(List<T> list, Parcelable.Creator<T> c) 

Source Link

Document

Read into the given List items containing a particular object type that were written with #writeTypedList at the current dataPosition().

Usage

From source file:cx.ring.model.CallContact.java

private void readFromParcel(Parcel in) {
    id = in.readLong();//w w w .ja  va  2 s.  c  om
    key = in.readString();
    mDisplayName = in.readString();
    photo_id = in.readLong();
    phones.clear();
    in.readTypedList(phones, Phone.CREATOR);
    mEmail = in.readString();
    isUser = in.readByte() != 0;
    stared = in.readByte() != 0;
}

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

private Module(Parcel in) {
    this.id = in.readInt();
    this.url = in.readString();
    this.name = in.readString();
    this.description = in.readString();
    this.visible = in.readInt();
    this.modicon = in.readString();
    this.modname = in.readString();
    this.modplural = in.readString();
    this.availablefrom = in.readInt();
    this.availableuntil = in.readInt();
    this.indent = in.readInt();
    in.readTypedList(this.contents, Content.CREATOR);
}

From source file:com.scvngr.levelup.core.net.LevelUpResponse.java

/**
 * Constructor for parceling./*from  w w  w.  j  a  v  a  2  s.c o  m*/
 *
 * @param in the parcel to read from.
 */
public LevelUpResponse(@NonNull final Parcel in) {
    super(in);
    mStatus = LevelUpStatus.valueOf(in.readString());

    mServerErrors = new ArrayList<>();
    in.readTypedList(mServerErrors, Error.CREATOR);
    mServerErrorReadError = (Exception) in.readSerializable();
    mOriginalResponse = in.readParcelable(LevelUpResponse.class.getClassLoader());

    checkRep();
}

From source file:com.nestlabs.sdk.Camera.java

protected Camera(Parcel in) {
    super(in);/*www  .  j  a  va2 s .  co  m*/
    mActivityZones = new ArrayList<>();
    mIsStreaming = Utils.readBoolean(in);
    mIsAudioInputEnabled = Utils.readBoolean(in);
    mLastIsOnlineChange = in.readString();
    mIsVideoHistoryEnabled = Utils.readBoolean(in);
    mWebUrl = in.readString();
    mAppUrl = in.readString();
    mIsPublicShareEnabled = Utils.readBoolean(in);
    in.readTypedList(mActivityZones, ActivityZone.CREATOR);
    mPublicShareUrl = in.readString();
    mSnapshotUrl = in.readString();
    mLastEvent = LastEvent.CREATOR.createFromParcel(in);
}

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

private Catalog(Parcel in) {
    this.mErn = in.readString();
    this.mLabel = in.readString();
    this.mBackground = (Integer) in.readValue(Integer.class.getClassLoader());
    long tmpMRunFrom = in.readLong();
    this.mRunFrom = tmpMRunFrom == -1 ? null : new Date(tmpMRunFrom);
    long tmpMRunTill = in.readLong();
    this.mRunTill = tmpMRunTill == -1 ? null : new Date(tmpMRunTill);
    this.mPageCount = in.readInt();
    this.mOfferCount = in.readInt();
    this.mBranding = in.readParcelable(Branding.class.getClassLoader());
    this.mDealerId = in.readString();
    this.mDealerUrl = in.readString();
    this.mStoreId = in.readString();
    this.mStoreUrl = in.readString();
    this.mDimension = in.readParcelable(Dimension.class.getClassLoader());
    this.mImages = in.readParcelable(Images.class.getClassLoader());
    this.mCatrgoryIds = (HashSet<String>) in.readSerializable();
    this.mPdfUrl = in.readString();
    this.mPages = new ArrayList<Images>();
    in.readTypedList(mPages, Images.CREATOR);
    this.mDealer = in.readParcelable(Dealer.class.getClassLoader());
    this.mStore = in.readParcelable(Store.class.getClassLoader());
    this.mHotspots = in.readParcelable(HotspotMap.class.getClassLoader());
}