Example usage for android.os Parcel readString

List of usage examples for android.os Parcel readString

Introduction

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

Prototype

public final String readString() 

Source Link

Document

Read a string value from the parcel at the current dataPosition().

Usage

From source file:com.playhaven.android.data.Purchase.java

/**
 * Deserialize this object from a Parcel
 *
 * @param in parcel to read from//from  ww  w. ja v a  2  s .co m
 */
protected void readFromParcel(Parcel in) {
    sku = in.readString();
    title = in.readString();
    quantity = in.readString();
    price = in.readString();
    store = in.readString();
    signature = in.readString();
    receipt = in.readString();
    cookie = in.readString();
    placementTag = in.readString();
    payload = in.readString();
    orderId = in.readString();
    result = Result.values()[in.readInt()];
}

From source file:com.sayar.requests.Response.java

private Response(final Parcel bundle) {
    this.parsedAs = bundle.readString();
    this.raw = bundle.readString();
    this.statusMessage = bundle.readString();
    this.code = bundle.readInt();
}

From source file:com.vk.sdk.api.model.VKApiComment.java

/**
 * Creates a Comment instance from Parcel.
 *///from ww w  .  j  av a  2  s .c  o m
public VKApiComment(Parcel in) {
    this.id = in.readInt();
    this.from_id = in.readInt();
    this.date = in.readLong();
    this.text = in.readString();
    this.reply_to_user = in.readInt();
    this.reply_to_comment = in.readInt();
    this.likes = in.readInt();
    this.user_likes = in.readByte() != 0;
    this.can_like = in.readByte() != 0;
    this.attachments = in.readParcelable(VKAttachments.class.getClassLoader());
}

From source file:android.database.DatabaseUtils.java

public static void readExceptionWithOperationApplicationExceptionFromParcel(Parcel reply)
        throws OperationApplicationException {
    int code = reply.readInt();
    if (code == 0)
        return;/* w ww  .  j a v a 2s . c  o m*/
    String msg = reply.readString();
    if (code == 10) {
        throw new OperationApplicationException(msg);
    } else {
        DatabaseUtils.readExceptionFromParcel(reply, msg, code);
    }
}

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

private Pricing(Parcel in) {
    this.mPrice = in.readDouble();
    this.mPrePrice = (Double) in.readValue(Double.class.getClassLoader());
    this.mCurrency = in.readString();
}

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

private SiteInfo(Parcel in) {
    this.sitename = in.readString();
    this.username = in.readString();
    this.firstname = in.readString();
    this.lastname = in.readString();
    this.fullname = in.readString();
    this.userid = in.readInt();
    this.siteurl = in.readString();
    this.userpictureurl = in.readString();
    this.downloadfiles = in.readByte() == 1;

    int count = in.readInt();
    for (int i = 0; i < count; i++) {
        this.addFunction(in.readString(), in.readString());
    }/*from   www.  j  a v a  2s. co m*/

}

From source file:com.lugia.timetable.Event.java

/**
 * Constructor for Parcelable.//from  w  w w .j a v  a 2 s .c  om
 *
 * @param parcel the parcel.
 */
private Event(Parcel parcel) {
    mId = parcel.readLong();

    mName = parcel.readString();
    mVenue = parcel.readString();
    mNote = parcel.readString();

    mType = parcel.readInt();
    mDate = parcel.readInt();
    mTimeStart = parcel.readInt();
    mTimeEnd = parcel.readInt();
}

From source file:com.vk.sdk.api.model.VKApiDocument.java

/**
 * Creates a Doc instance from Parcel.// ww w. jav a2s  .c om
 */
public VKApiDocument(Parcel in) {
    this.id = in.readInt();
    this.owner_id = in.readInt();
    this.title = in.readString();
    this.size = in.readLong();
    this.ext = in.readString();
    this.url = in.readString();
    this.photo_100 = in.readString();
    this.photo_130 = in.readString();
    this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.access_key = in.readString();
    this.mIsImage = in.readByte() != 0;
    this.mIsGif = in.readByte() != 0;
}

From source file:istat.android.telephony.sms.Sms.java

protected Sms(Parcel in) {
    _id = in.readString();
    thread_id = in.readString();/*from w  w  w  . ja  va  2 s .  c o  m*/
    address = in.readString();
    person = in.readString();
    date = in.readLong();
    protocol = in.readString();
    read = in.readString();
    status = in.readString();
    type = in.readString();
    reply_path_present = in.readString();
    subject = in.readString();
    body = in.readString();
    service_center = in.readString();
    locked = in.readString();
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.AffectedOrganization.java

/**
 * AffectedOrganization Parcelable Constructor.
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 *///from w  w  w. jav  a 2  s  .co m
private AffectedOrganization(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setDescription(in.readString());
    setLevelString(in.readString());
    setStatusString(in.readString());
}