List of usage examples for android.os Parcel readLong
public final long readLong()
From source file:com.vk.sdk.api.model.VKApiMessage.java
/** * Creates a Message instance from Parcel. *///from w ww . ja va 2 s .com public VKApiMessage(Parcel in) { this.id = in.readInt(); this.user_id = in.readInt(); this.date = in.readLong(); this.read_state = in.readByte() != 0; this.out = in.readByte() != 0; this.title = in.readString(); this.body = in.readString(); this.attachments = in.readParcelable(VKAttachments.class.getClassLoader()); this.fwd_messages = in.readParcelable(VKList.class.getClassLoader()); this.emoji = in.readByte() != 0; this.deleted = in.readByte() != 0; }
From source file:com.gmail.taneza.ronald.carbs.common.FoodItem.java
private FoodItem(Parcel parcel) { mTableName = parcel.readString(); mId = parcel.readInt(); mQuantity = parcel.readInt(); mTimeAddedMsec = parcel.readLong(); }
From source file:com.nextgis.maplib.datasource.ngw.LayerWithStyles.java
protected LayerWithStyles(Parcel in) { super(in);//from w w w.j av a2 s . c om mStyles = new ArrayList<>(); int count = in.readInt(); for (int i = 0; i < count; i++) { mStyles.add(in.readLong()); } }
From source file:io.github.data4all.model.DeviceOrientation.java
/** * Constructor to create a node from a parcel. * //from ww w. j av a2s . co m * @param in * The Parcel to read from */ private DeviceOrientation(Parcel in) { azimuth = in.readFloat(); pitch = in.readFloat(); roll = in.readFloat(); timestamp = in.readLong(); }
From source file:org.ale.scanner.zotero.data.BibItem.java
public BibItem(Parcel p) throws JSONException { this(p.readInt(), // _ID p.readLong(), // Creation Date p.readInt(), // Type new JSONObject(p.readString()), //JSON String p.readInt()); // Account ID mSelected = p.readInt();//from w ww . j a v a 2 s.c om }
From source file:com.kevinquan.google.activityrecoginition.model.Motion.java
public Motion(Parcel in) { mType = MotionType.fromGoogleId(in.readInt()); mConfidence = in.readInt(); mTimestamp = in.readLong(); mMillisSinceBoot = in.readLong(); }
From source file:com.eTilbudsavis.etasdk.model.Session.java
private Session(Parcel in) { this.mToken = in.readString(); long tmpMExpires = in.readLong(); this.mExpires = tmpMExpires == -1 ? null : new Date(tmpMExpires); this.mUser = in.readParcelable(User.class.getClassLoader()); this.mPermission = in.readParcelable(Permission.class.getClassLoader()); this.mProvider = in.readString(); this.mClientId = in.readString(); this.mReference = in.readString(); }
From source file:com.vk.sdk.api.model.VKApiNote.java
/** * Creates a Note instance from Parcel./*from ww w . j a v a2s . c o m*/ */ public VKApiNote(Parcel in) { this.id = in.readInt(); this.user_id = in.readInt(); this.title = in.readString(); this.text = in.readString(); this.date = in.readLong(); this.comments = in.readInt(); this.read_comments = in.readInt(); }
From source file:com.vk.sdk.api.model.VKApiPoll.java
/** * Creates a Poll instance from Parcel.//from w w w. j av a 2s . co m */ public VKApiPoll(Parcel in) { this.id = in.readInt(); this.owner_id = in.readInt(); this.created = in.readLong(); this.question = in.readString(); this.votes = in.readInt(); this.answer_id = in.readInt(); this.answers = in.readParcelable(VKList.class.getClassLoader()); }
From source file:jp.alessandro.android.iab.Purchase.java
protected Purchase(Parcel in) { mOriginalJson = in.readString();//from w ww . j a v a 2 s . c o m mOrderId = in.readString(); mPackageName = in.readString(); mSku = in.readString(); mPurchaseTime = in.readLong(); mPurchaseState = in.readInt(); mDeveloperPayload = in.readString(); mToken = in.readString(); mAutoRenewing = in.readByte() != 0; mSignature = in.readString(); }