Example usage for android.os Parcel writeInt

List of usage examples for android.os Parcel writeInt

Introduction

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

Prototype

public final void writeInt(int val) 

Source Link

Document

Write an integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);// ww w .  ja v  a 2s.c om
    dest.writeString(name);
    dest.writeString(email);
    dest.writeString(phone);
    dest.writeString(info);
    dest.writeInt(color);
}

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

/**
 * Write Emergency data to Parcelable. //from   www  .j a v  a  2s  .  c o m
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(getId());
    dest.writeString(getName());
    dest.writeInt(getActivatedInt());
    dest.writeString(getLevelString());
    dest.writeString(getStartDateString());
    dest.writeString(getEndDateString());
    dest.writeString(getTypeString());
}

From source file:ch.gianulli.trelloapi.Board.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mId);/*from w  w  w  . j  a v  a2  s  .c  o  m*/
    dest.writeString(mName);
    dest.writeInt(mColor);
}

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

/**
 * Write Plan data to Parcelable. //  w  ww.  j a  va 2  s . c om
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(getId());
    dest.writeString(getCreationDateString());
    dest.writeString(getLastModificationDateString());
    dest.writeString(getPriorityString());
    dest.writeString(getDescription());
    dest.writeString(getObservation());
    dest.writeString(getObjective());
    dest.writeString(getRisk());
    dest.writeString(getCheckList());
}

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

/**
 * Write Mission data to Parcelable. /*  ww  w.j a va 2s.  c o  m*/
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(getId());
    dest.writeString(getTitle());
    dest.writeString(getDescription());
    dest.writeString(getStatusString());
    dest.writeString(getStartDateString());
    dest.writeString(getEndDateString());
    dest.writeString(getPriorityString());
}

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeString(url);//from   w w w.j  a  v a 2s.c o m
    dest.writeString(name);
    dest.writeString(description);
    dest.writeInt(visible);
    dest.writeString(modicon);
    dest.writeString(modname);
    dest.writeString(modplural);
    dest.writeInt(availablefrom);
    dest.writeInt(availableuntil);
    dest.writeInt(indent);
    dest.writeTypedList(contents);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.mOriginalWidth);
    dest.writeInt(this.mOriginalHeight);
    dest.writeString(this.mWidthThumb);
    dest.writeInt(this.mLastWidth);
}

From source file:com.artemchep.horario.database.models.Subject.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);//from  w  w w  .  j av  a 2  s.  c  o m
    dest.writeString(data);
    dest.writeString(group);
    dest.writeString(name);
    dest.writeString(abbreviation);
    dest.writeInt(color);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.to_id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_owner_id);
    dest.writeInt(this.reply_post_id);
    dest.writeByte(friends_only ? (byte) 1 : (byte) 0);
    dest.writeInt(this.comments_count);
    dest.writeByte(can_post_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes_count);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeByte(can_publish ? (byte) 1 : (byte) 0);
    dest.writeInt(this.reposts_count);
    dest.writeByte(user_reposted ? (byte) 1 : (byte) 0);
    dest.writeString(this.post_type);
    dest.writeParcelable(attachments, flags);
    dest.writeParcelable(this.geo, flags);
    dest.writeInt(this.signer_id);
}

From source file:org.opendatakit.common.android.data.RawRow.java

@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeString(mRowId);/*  w  w  w.j  av  a 2s  . com*/
    if (mRowData == null) {
        out.writeInt(0);
        String[] emptyString = {};
        out.writeStringArray(emptyString);
    } else {
        out.writeInt(mRowData.length);
        out.writeStringArray(mRowData);
    }
}