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:net.issarlk.androbunny.inkbunny.User.java

public User(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    if (in.readInt() == 1) {
        //Full info
        icon_file_name = in.readString();
        icons = new Icon[3];
        icons[0] = Icon.CREATOR.createFromParcel(in);
        icons[1] = Icon.CREATOR.createFromParcel(in);
        icons[2] = Icon.CREATOR.createFromParcel(in);
    }// w  w w .ja  v a  2s .co  m
    if (in.readInt() == 1) {
        //Profile present
        this.profile = in.readString();
    }
}

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

/**
 * Deserialize this object from a Parcel
 *
 * @param in parcel to read from//from w ww .j a  v a2 s.co m
 */
protected void readFromParcel(Parcel in) {
    quantity = in.readDouble();
    receipt = in.readDouble();
    tag = in.readString();
    signature = in.readString();
}

From source file:com.nestapi.lib.API.BaseDevice.java

protected BaseDevice(Parcel in) {
    mDeviceID = in.readString();
    mLocale = in.readString();/*w  w w . ja  v  a 2s .  c o m*/
    mSoftwareVersion = in.readString();
    mStructureID = in.readString();
    mName = in.readString();
    mNameLong = in.readString();
    mLastConnection = in.readString();
    mIsOnline = ParcelUtils.readBoolean(in);
}

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

protected Device(Parcel in) {
    mDeviceId = in.readString();
    mLocale = in.readString();/*  w  w w  .j  a v  a2s . co m*/
    mSoftwareVersion = in.readString();
    mStructureId = in.readString();
    mName = in.readString();
    mNameLong = in.readString();
    mLastConnection = in.readString();
    mIsOnline = Utils.readBoolean(in);
    mWhereId = in.readString();
}

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

private Course(Parcel in) {
    this.id = in.readInt();
    this.shortname = in.readString();
    this.fullname = in.readString();
    this.enrolledusercount = in.readInt();
    this.idnumber = in.readString();
    this.visible = in.readInt();
    in.readTypedList(this.coursecontents, CourseContent.CREATOR);
}

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

/**
 * Creates a Note instance from Parcel./*from w w w  .j ava  2 s  .c o  m*/
 */
public VKApiNote(Parcel in) {
    this.id = in.readInt();
    this.user_id = in.readInt();
    this.title = in.readString();
    this.text = in.readString();
    this.date = in.readLong();
    this.comments = in.readInt();
    this.read_comments = in.readInt();
}

From source file:com.wellsandwhistles.android.redditsp.reddit.things.RedditComment.java

private RedditComment(final Parcel in) {

    body = in.readString();
    body_html = in.readString();/*from   w  w w  . j  ava2  s.c  o m*/
    author = in.readString();
    subreddit = in.readString();
    author_flair_text = in.readString();

    archived = in.readInt() == 1;
    switch (in.readInt()) {
    case -1:
        likes = false;
        break;
    case 0:
        likes = null;
        break;
    case 1:
        likes = true;
        break;
    }

    replies = null;

    id = in.readString();
    subreddit_id = in.readString();
    link_id = in.readString();
    parent_id = in.readString();
    name = in.readString();
    context = in.readString();

    ups = in.readInt();
    downs = in.readInt();

    final long in_edited = in.readLong();
    if (in_edited == -1) {
        edited = false;
    } else {
        edited = in_edited;
    }

    created = in.readLong();
    created_utc = in.readLong();

    saved = in.readInt() != 0;
    gilded = in.readInt();

    distinguished = in.readString();
}

From source file:com.wootric.androidsdk.objects.WootricCustomMessage.java

private WootricCustomMessage(Parcel in) {
    this.followupQuestion = in.readString();
    this.followupQuestionsList = (HashMap<String, String>) in.readSerializable();
    this.placeholderText = in.readString();
    this.placeholderTextsList = (HashMap<String, String>) in.readSerializable();
}

From source file:android.database.DatabaseUtils.java

/**
 * Special function for reading an exception result from the header of
 * a parcel, to be used after receiving the result of a transaction.  This
 * will throw the exception for you if it had been written to the Parcel,
 * otherwise return and let you read the normal result data from the Parcel.
 * @param reply Parcel to read from/*  w  ww  .  j  a v  a2  s.c o m*/
 * @see Parcel#writeNoException
 * @see Parcel#readException
 */
public static final void readExceptionFromParcel(Parcel reply) {
    int code = reply.readInt();
    if (code == 0)
        return;
    String msg = reply.readString();
    DatabaseUtils.readExceptionFromParcel(reply, msg, code);
}

From source file:com.owncloud.android.ui.helpers.FilesUploadHelper.java

protected FilesUploadHelper(Parcel in) {
    this.capturedPhotoPath = in.readString();
    this.image = (File) in.readSerializable();
}