Example usage for android.os Parcel readList

List of usage examples for android.os Parcel readList

Introduction

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

Prototype

public final void readList(List outVal, ClassLoader loader) 

Source Link

Document

Read into an existing List object from the parcel at the current dataPosition(), using the given class loader to load any enclosed Parcelables.

Usage

From source file:com.llc.bumpr.sdk.models.Driver.java

/**
 * A constructor for implementing the Driver as a Parcelable.
 * @param source The source Parcel/*  w w w.ja  va2s . c om*/
 */
public Driver(Parcel source) {
    id = source.readInt();
    fee = source.readDouble();
    licenseId = source.readString();
    insuranceId = source.readString();
    balance = source.readDouble();
    active = source.readByte() != 0;
    source.readList(requests, Request.class.getClassLoader());
}

From source file:fiskinfoo.no.sintef.fiskinfoo.Baseclasses.ToolEntry.java

protected ToolEntry(Parcel in) {
    id = in.readString();//  w w  w  .  jav a 2  s.c o  m
    coordinates = new ArrayList<>();
    in.readList(coordinates, Point.class.getClassLoader());
    geometry = GeometryType.createFromValue(in.readString());
    IMO = in.readString();
    IRCS = in.readString();
    MMSI = in.readString();
    RegNum = in.readString();
    VesselName = in.readString();
    VesselPhone = in.readString();
    VesselEmail = in.readString();
    ContactPersonEmail = in.readString();
    ContactPersonPhone = in.readString();
    ContactPersonName = in.readString();
    ToolTypeCode = ToolType.createFromValue(in.readString());
    Source = in.readString();
    Comment = in.readString();
    ShortComment = in.readString();
    RemovedTime = in.readString();
    SetupDateTime = in.readString();
    ToolId = in.readString();
    LastChangedDateTime = in.readString();
    LastChangedBySource = in.readString();
    toolStatus = ToolEntryStatus.createFromValue(in.readString());
    toolLogId = in.readInt();
}

From source file:io.bunnyblue.noticedog.app.notifications.Notification.java

public Notification(Parcel in) {
    this.expandedInboxText = new ArrayList();
    this.people = new ArrayList();
    this.actions = new ArrayList();
    this.packageName = in.readString();
    this.id = in.readInt();
    this.tag = in.readString();
    this.key = in.readString();
    this.when = in.readLong();
    this.smallIcon = in.readInt();
    this.largeIcon = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.tickerText = in.readString();
    this.contentTitle = in.readString();
    this.contentText = in.readString();
    this.contentInfoText = in.readString();
    this.expandedLargeIconBig = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.expandedContentTitle = in.readString();
    this.expandedContentText = in.readString();
    in.readStringList(this.expandedInboxText);
    in.readList(this.people, Uri.class.getClassLoader());
    this.picture = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.priority = in.readInt();
    this.pendingLaunchIntent = (PendingIntent) in.readParcelable(PendingIntent.class.getClassLoader());
    in.readList(this.actions, Action.class.getClassLoader());
}

From source file:com.dwg.weibo.entity.Status.java

protected Status(Parcel in) {
    this.created_at = in.readString();
    this.id = in.readString();
    this.mid = in.readString();
    this.idstr = in.readString();
    this.textLength = in.readInt();
    this.text = in.readString();
    this.isLongText = in.readByte() != 0;
    this.source_type = in.readInt();
    this.source = in.readString();
    this.favorited = in.readByte() != 0;
    this.truncated = in.readByte() != 0;
    this.in_reply_to_status_id = in.readString();
    this.in_reply_to_user_id = in.readString();
    this.in_reply_to_screen_name = in.readString();
    this.thumbnail_pic = in.readString();
    this.bmiddle_pic = in.readString();
    this.original_pic = in.readString();
    this.geo = in.readParcelable(Geo.class.getClassLoader());
    this.user = in.readParcelable(User.class.getClassLoader());
    this.retweeted_status = in.readParcelable(Status.class.getClassLoader());
    this.reposts_count = in.readInt();
    this.comments_count = in.readInt();
    this.attitudes_count = in.readInt();
    this.mlevel = in.readInt();
    this.visible = in.readParcelable(Visible.class.getClassLoader());
    this.source_allowclick = in.readInt();
    this.pic_urls = new ArrayList<PicUrlsBean>();
    in.readList(this.pic_urls, PicUrlsBean.class.getClassLoader());
    this.thumbnail_pic_urls = in.createStringArrayList();
    this.bmiddle_pic_urls = in.createStringArrayList();
    this.origin_pic_urls = in.createStringArrayList();
    this.singleImgSizeType = in.readString();
}