Example usage for android.os Parcel readLong

List of usage examples for android.os Parcel readLong

Introduction

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

Prototype

public final long readLong() 

Source Link

Document

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

Usage

From source file:com.nestlabs.sdk.Metadata.java

public Metadata(Parcel in) {
    mAccessToken = in.readString();
    mClientVersion = in.readLong();
}

From source file:vandy.mooc.model.provider.Video.java

public Video(Parcel in) {
    id = in.readLong();
    title = in.readString();//w ww .  j  a va  2 s .  c om
    duration = in.readLong();
    location = in.readString();
    subject = in.readString();
    contentType = in.readString();
    rating = in.readDouble();
    count = in.readInt();
}

From source file:com.fanfou.app.opensource.api.bean.Photo.java

public Photo(final Parcel in) {
    this.id = in.readString();
    this.createdAt = new Date(in.readLong());
    this.imageUrl = in.readString();
    this.largeUrl = in.readString();
    this.thumbUrl = in.readString();
}

From source file:com.aokyu.dev.pocket.content.Image.java

private Image(Parcel in) {
    super(in.readString());
    setId(in.readLong());
    setSource(in.readString());// w  ww. j  a  v a2 s  .  co m
    setWidth(in.readInt());
    setHeight(in.readInt());
    mCredit = in.readString();
    mCaption = in.readString();
}

From source file:com.aokyu.dev.pocket.content.Video.java

private Video(Parcel in) {
    super(in.readString());
    setId(in.readLong());
    setSource(in.readString());//from   ww  w .j a  v  a2s  . com
    setWidth(in.readInt());
    setHeight(in.readInt());
    mType = in.readString();
    mVid = in.readString();
}

From source file:vandy.mooc.model.provider.VideoClient.java

public VideoClient(Parcel in) {
    id = in.readLong();
    title = in.readString();//from w  w  w  . j ava2 s . c om
    duration = in.readLong();
    location = in.readString();
    subject = in.readString();
    contentType = in.readString();
    rating = in.readDouble();
    count = in.readInt();
    filepath = in.readString();
}

From source file:com.liferay.alerts.model.Alert.java

private Alert(Parcel parcel) {
    _id = parcel.readLong();
    _user = parcel.readParcelable(User.class.getClassLoader());
    _userId = _user.getId();// w  w  w.  j av a  2s .  c  o  m

    try {
        _payload = new JSONObject(parcel.readString());
    } catch (JSONException je) {
    }

    _read = (parcel.readInt() == 1);
    _timestamp = parcel.readLong();
}

From source file:ir.aarani.bazaar.billing.TransactionDetails.java

protected TransactionDetails(Parcel in) {
    this.productId = in.readString();
    this.orderId = in.readString();
    this.purchaseToken = in.readString();
    long tmpPurchaseTime = in.readLong();
    this.purchaseTime = tmpPurchaseTime == -1 ? null : new Date(tmpPurchaseTime);
    this.purchaseInfo = in.readParcelable(PurchaseInfo.class.getClassLoader());
}

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

/**
 * Creates a Comment instance from Parcel.
 *//*from  www.j  ava 2 s.com*/
public VKApiComment(Parcel in) {
    this.id = in.readInt();
    this.from_id = in.readInt();
    this.date = in.readLong();
    this.text = in.readString();
    this.reply_to_user = in.readInt();
    this.reply_to_comment = in.readInt();
    this.likes = in.readInt();
    this.user_likes = in.readByte() != 0;
    this.can_like = in.readByte() != 0;
    this.attachments = in.readParcelable(VKAttachments.class.getClassLoader());
}

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

/**
 * Constructor for Parcelable.//  w  w  w .  j  av  a  2s .  c  o  m
 *
 * @param parcel the parcel.
 */
private Event(Parcel parcel) {
    mId = parcel.readLong();

    mName = parcel.readString();
    mVenue = parcel.readString();
    mNote = parcel.readString();

    mType = parcel.readInt();
    mDate = parcel.readInt();
    mTimeStart = parcel.readInt();
    mTimeEnd = parcel.readInt();
}