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: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 ww  .j  av a2 s.c  om*/
    if (in.readInt() == 1) {
        //Profile present
        this.profile = in.readString();
    }
}

From source file:com.tigerpenguin.places.model.Photo.java

public Photo(Parcel in) {
    photoReference = in.readString();//from   www  . j  a  v a 2 s.  co  m
    height = in.readInt();
    width = in.readInt();
    htmlAttributions = new ArrayList<String>();
    in.readStringList(htmlAttributions);
}

From source file:org.imaginationforpeople.android2.model.Picture.java

private Picture(Parcel in) {
    id = in.readInt();
    String[] stringData = new String[7];
    in.readStringArray(stringData);/*  ww  w.java 2s. c  om*/
    author = stringData[0];
    created = stringData[1];
    desc = stringData[2];
    license = stringData[3];
    source = stringData[4];
    thumbUrl = stringData[5];
    imageUrl = stringData[6];
}

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.nextgis.maplib.datasource.ngw.LayerWithStyles.java

protected LayerWithStyles(Parcel in) {
    super(in);//from  w  ww.  ja va  2 s . co m
    mStyles = new ArrayList<>();
    int count = in.readInt();
    for (int i = 0; i < count; i++) {
        mStyles.add(in.readLong());
    }
}

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

/**
 * Creates a School instance from Parcel.
 *///from   www  .j  a va 2s . c o m
public VKApiSchool(Parcel in) {
    this.id = in.readInt();
    this.country_id = in.readInt();
    this.city_id = in.readInt();
    this.name = in.readString();
    this.year_from = in.readInt();
    this.year_to = in.readInt();
    this.year_graduated = in.readInt();
    this.clazz = in.readString();
    this.speciality = in.readString();
}

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

/**
 * Location Parcelable Constructor.//  w w w  . ja v a  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 Location(Parcel in) {
    setId(in.readInt());
    setStatusString(in.readString());
    setTimeStampString(in.readString());
    setInterval(in.readInt());
}

From source file:com.facebook.notifications.internal.configuration.ActionConfiguration.java

private ActionConfiguration(Parcel source) {
    ClassLoader classLoader = getClass().getClassLoader();

    backgroundColor = source.readInt();
    borderColor = source.readInt();/*from w w  w  . ja va  2s .c  o m*/

    borderWidth = source.readFloat();
    content = source.readParcelable(classLoader);

    actionUri = source.readParcelable(classLoader);
}

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

/**
 * Constructor for Parcelable.//  w w  w .j  a  v  a2 s. c om
 *
 * @param parcel the parcel.
 */
private Schedule(Parcel parcel) {
    mSection = parcel.readInt();
    mDay = parcel.readInt();
    mTime = parcel.readInt();
    mLength = parcel.readInt();

    mRoom = parcel.readString();
}

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

/**
 * Contact Parcelable Constructor./*from w w  w  . ja  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 Contact(Parcel in) {
    setId(in.readInt());
    setPhone(in.readString());
    setEmail(in.readString());
    setRadio(in.readString());
    setLanguageString(in.readString());
}