Example usage for android.os Parcel readInt

List of usage examples for android.os Parcel readInt

Introduction

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

Prototype

public final int readInt() 

Source Link

Document

Read an integer value from the parcel at the current dataPosition().

Usage

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

/**
 * Commander Parcelable Constructor.//ww w .ja v a2s  .  c  om
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Commander(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

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

/**
 * Medical Parcelable Constructor./*from w ww .j a v a2s. c  o  m*/
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Medical(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

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

/**
 * Responder Parcelable Constructor./*  ww  w  . j a va  2  s.  c om*/
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Responder(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

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

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

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

/**
 * Creates a Doc instance from Parcel./*w  ww  . ja  v  a2 s . c o  m*/
 */
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:ca.frozen.rpicameraviewer.classes.Settings.java

private void readFromParcel(Parcel in) {
    cameraName = in.readString();/*ww w  .j a va2  s .  c  o  m*/
    showAllCameras = in.readInt() != 0;
    rawTcpIpSource = in.readParcelable(Source.class.getClassLoader());
    rawHttpSource = in.readParcelable(Source.class.getClassLoader());
    rawMulticastSource = in.readParcelable(Source.class.getClassLoader());
}

From source file:com.facebook.notifications.internal.content.TextContent.java

private TextContent(Parcel source) {
    text = source.readString();//from  w  w  w.jav  a  2 s. co m
    textColor = source.readInt();

    typeface = source.readString();
    typefaceSize = source.readFloat();

    textAlignment = source.readParcelable(getClass().getClassLoader());
}

From source file:com.codebutler.farebot.transit.orca.OrcaTransitData.java

private OrcaTransitData(Parcel parcel) {
    mSerialNumber = parcel.readInt();
    mBalance = parcel.readDouble();/*w  ww.j  av a 2  s. c  o  m*/

    parcel.readInt();
    mTrips = (Trip[]) parcel.readParcelableArray(Trip.class.getClassLoader());
}

From source file:pl.poznan.put.cs.ify.api.params.YParam.java

/**
 * Creates YParam from parcel./*from   w  w  w  .  j  a  v a 2s  .co m*/
 */
public YParam(Parcel in) {
    int type = in.readInt();
    mType = YParamType.getByOrdinal(type);
    switch (mType) {
    case Boolean:
        mValue = in.readByte() != 0;
        break;
    case Integer:
        mValue = in.readInt();
        break;
    case String:
        mValue = in.readString();
        break;
    case Position:
        mValue = in.readParcelable(YPosition.class.getClassLoader());
        break;
    case Group:
        mValue = in.readString();
        break;
    default:
        mValue = in.readString();
    }
}

From source file:com.datastore_android_sdk.rxvolley.http.URLHttpResponse.java

protected URLHttpResponse(Parcel in) {
    this.headers = (HashMap<String, String>) in.readSerializable();
    this.responseCode = in.readInt();
    this.responseMessage = in.readString();
    this.contentEncoding = in.readString();
    this.contentType = in.readString();
    this.contentLength = in.readLong();
}