Example usage for android.os Parcel writeLong

List of usage examples for android.os Parcel writeLong

Introduction

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

Prototype

public final void writeLong(long val) 

Source Link

Document

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

Usage

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.owner_id);
    dest.writeLong(this.created);
    dest.writeString(this.question);
    dest.writeInt(this.votes);
    dest.writeInt(this.answer_id);
    dest.writeParcelable(this.answers, flags);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.user_id);
    dest.writeString(this.title);
    dest.writeString(this.text);
    dest.writeLong(this.date);
    dest.writeInt(this.comments);
    dest.writeInt(this.read_comments);
}

From source file:jp.alessandro.android.iab.Purchase.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mOriginalJson);//from  w  ww .  jav  a 2 s.c  om
    dest.writeString(mOrderId);
    dest.writeString(mPackageName);
    dest.writeString(mSku);
    dest.writeLong(mPurchaseTime);
    dest.writeInt(mPurchaseState);
    dest.writeString(mDeveloperPayload);
    dest.writeString(mToken);
    dest.writeByte(mAutoRenewing ? (byte) 1 : (byte) 0);
    dest.writeString(mSignature);
}

From source file:com.nextgis.firereporter.ScanexSubscriptionItem.java

public void writeToParcel(Parcel out, int flags) {
    out.writeLong(nID);
    out.writeString(sTitle);// w  w  w.j  a v a  2 s  .c o m
    out.writeString(sLayerName);
    out.writeString(sWKT);
    out.writeInt(bSMSEnable == true ? 1 : 0);
    out.writeInt(bHasNews == true ? 1 : 0);
    //
    out.writeInt(mmoItems.size());
    for (ScanexNotificationItem it : mmoItems.values()) {
        out.writeValue(it);
    }
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.owner_id);
    dest.writeString(this.title);
    dest.writeLong(this.size);
    dest.writeString(this.ext);
    dest.writeString(this.url);
    dest.writeString(this.photo_100);
    dest.writeString(this.photo_130);
    dest.writeParcelable(this.photo, flags);
    dest.writeString(this.access_key);
    dest.writeByte(mIsImage ? (byte) 1 : (byte) 0);
    dest.writeByte(mIsGif ? (byte) 1 : (byte) 0);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
    dest.writeLong(this.created);
    dest.writeInt(this.checkins);
    dest.writeLong(this.updated);
    dest.writeInt(this.country_id);
    dest.writeInt(this.city_id);
    dest.writeString(address);//from  ww w  .j  ava 2  s .c om
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(aspectRatings);/*w w w  .j  ava 2s .c o m*/
    dest.writeString(authorName);
    dest.writeString(authorUrl);
    dest.writeSerializable(language);
    dest.writeInt(rating);
    dest.writeString(text);
    dest.writeLong(submitTime);
}

From source file:ru.rzn.myasoedov.vktest.dto.VKChat.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.preview);
    dest.writeString(this.photoUrl);
    dest.writeString(this.customPhotoUrl);
    dest.writeLong(this.date);
}

From source file:com.nextgis.maplib.datasource.ngw.LayerWithStyles.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    super.writeToParcel(parcel, i);
    if (null == mStyles)
        parcel.writeInt(0);/*  w w  w  .j a v a2  s . c om*/
    else {
        parcel.writeInt(mStyles.size());
        for (Long style : mStyles) {
            parcel.writeLong(style);
        }
    }
}

From source file:com.nextgis.maplib.datasource.ngw.Resource.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(mName);/*from   w w w  .  j  av  a  2s  .  com*/
    parcel.writeByte(mHasChildren ? (byte) 1 : (byte) 0);
    parcel.writeString(mDescription);
    parcel.writeString(mKeyName);
    parcel.writeLong(mOwnerId);
    boolean hasPermissions = null != mPermissions;
    parcel.writeByte(hasPermissions ? (byte) 1 : (byte) 0);
    if (hasPermissions) {
        parcel.writeString(mPermissions.toString());
    }
    parcel.writeInt(mType);
    parcel.writeInt(mId);
}