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.Emergency.java

/**
 * Emergency Parcelable Constructor./*  w ww  .  jav a 2 s  .  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 Emergency(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setActivatedInt(in.readInt());
    setLevelString(in.readString());
    setStartDateString(in.readString());
    setEndDateString(in.readString());
    setTypeString(in.readString());
}

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

private VKPhotoSizes(Parcel in) {
    super(in);// w  w  w . j a  v a 2  s  . c o m
    this.mOriginalWidth = in.readInt();
    this.mOriginalHeight = in.readInt();
    this.mWidthThumb = in.readString();
    this.mLastWidth = in.readInt();
}

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

/**
 * Plan Parcelable Constructor.//w w w.ja  v a2  s . com
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Plan(Parcel in) {
    setId(in.readInt());
    setCreationDateString(in.readString());
    setLastModificationDateString(in.readString());
    setPriorityString(in.readString());
    setDescription(in.readString());
    setObservation(in.readString());
    setObjective(in.readString());
    setRisk(in.readString());
    setCheckList(in.readString());
}

From source file:at.diamonddogs.data.adapter.parcelable.ParcelableAdapterWebRequest.java

/**
 * Required by Parcelable mechanism/*from ww w . j  a  va  2s  . co  m*/
 * 
 * @param in
 *            the input parcel
 */
public ParcelableAdapterWebRequest(Parcel in) {
    super(in);
    if (dataObject == null) {
        dataObject = new WebRequest();
    }
    dataObject.setProcessorId(in.readInt());
    dataObject.setRequestType((Type) in.readSerializable());
    dataObject.setUrl((URL) in.readSerializable());
    dataObject.setReadTimeout(in.readInt());
    dataObject.setConnectionTimeout(in.readInt());
    dataObject.setFollowRedirects(in.readInt() == 1);

    boolean first = (in.readInt() == 1);
    if (first) {
        ParcelableAdapterTempFile tmp = in.readParcelable(ClassLoader.getSystemClassLoader());
        dataObject.setTmpFile(new Pair<Boolean, TempFile>(first, tmp.getDataObject()));
    }

    dataObject.setHeader(readStringMap(in));
    dataObject.setCacheTime(in.readLong());
    dataObject.setNumberOfRetries(in.readInt());
    dataObject.setRetryInterval(in.readInt());

    dataObject.setCancelled(in.readInt() == 1);
    dataObject.setCheckConnectivity(in.readInt() == 1);
    dataObject.setCheckConnectivityPing(in.readInt() == 1);
    dataObject.setUseOfflineCache(in.readInt() == 1);

}

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

/**
 * Mission Parcelable Constructor.//from   ww  w  .  j a va  2 s.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 Mission(Parcel in) {
    setId(in.readInt());
    setTitle(in.readString());
    setDescription(in.readString());
    setStatusString(in.readString());
    setStartDateString(in.readString());
    setEndDateString(in.readString());
    setPriorityString(in.readString());
}

From source file:com.artemchep.horario.models.Notification.java

public Notification(Parcel source) {
    key = source.readString();//w  w  w . ja  va 2 s .com
    title = source.readString();
    summary = source.readString();
    author = source.readString();
    priority = source.readInt();
    timestamp = source.readLong();
}

From source file:net.giovannicapuano.galax.controller.User.java

public User(Parcel parcel) {
    this.id = parcel.readInt();
    this.username = parcel.readString();
    this.email = parcel.readString();
    this.address = parcel.readString();
}

From source file:com.cuddlesoft.norilib.SearchResult.java

/**
 * Re-create a SearchResult by deserializing data from a {@link android.os.Parcel}.
 *
 * @param parcel {@link android.os.Parcel} used to deserialize the SearchResult.
 *//* w  ww .  j  av a2  s . c om*/
protected SearchResult(Parcel parcel) {
    this.images = parcel.createTypedArrayList(Image.CREATOR);
    this.offset = parcel.readInt();
    this.query = parcel.createTypedArray(Tag.CREATOR);
    this.hasNextPage = (parcel.readByte() == 0x01);
}

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:br.ufrj.ppgi.jemf.mobile.bean.HealthCareUnit.java

/**
 * HealthCareUnit 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 . j  a  v  a2s. c o  m
private HealthCareUnit(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setDescription(in.readString());
    setLevelString(in.readString());
    setCapacity(in.readInt());
}