List of usage examples for android.os Parcel readLong
public final long readLong()
From source file:com.artemchep.horario.models.SubjectTask.java
public SubjectTask(Parcel source) { key = source.readString();//from w ww .j av a 2 s . c o m title = source.readString(); description = source.readString(); descriptionHtml = source.readString(); author = source.readString(); type = source.readInt(); due = source.readLong(); timestamp = source.readLong(); isEdited = source.readInt() != 0; }
From source file:net.issarlk.androbunny.inkbunny.Submission.java
public Submission(Parcel in) { if (in.readLong() != Submission.serialVersionUID) { throw new RuntimeException("Wrong UID"); }//from w ww .j av a2 s .c o m this.id = in.readInt(); this.hidden = in.readInt(); this.user = User.CREATOR.createFromParcel(in); this.create_datetime = in.readString(); this.create_datetime_usertime = in.readString(); this.file_name = in.readString(); this.thumbnails = new Thumbnail[in.readInt()]; for (int i = this.thumbnails.length - 1; i >= 0; i--) { if (in.readInt() == 1) { this.thumbnails[i] = Thumbnail.CREATOR.createFromParcel(in); } } this.title = in.readString(); this.deleted = in.readInt(); this.s_public = in.readInt(); this.mimetype = in.readString(); this.rating = Rating.CREATOR.createFromParcel(in); this.submission_type = SubmissionType.CREATOR.createFromParcel(in); this.digitalsales = in.readInt(); this.printsales = in.readInt(); this.guest_block = in.readInt(); // Full info if (in.readInt() == 1) { this.keywords = new Keyword[in.readInt()]; for (int i = this.keywords.length - 1; i >= 0; i--) { this.keywords[i] = Keyword.CREATOR.createFromParcel(in); } this.scraps = in.readInt(); this.favorite = in.readInt(); this.favorites_count = in.readInt(); this.comments_count = in.readInt(); this.files = new File[in.readInt()]; for (int i = this.files.length - 1; i >= 0; i--) { this.files[i] = File.CREATOR.createFromParcel(in); } this.file_urls = new URI[3]; for (int i = 0; i < 3; i++) { String tmp = in.readString(); if (tmp != null) { try { this.file_urls[FULL] = new URI(tmp); } catch (URISyntaxException e) { Log.e(TAG, e.toString()); } } } } //Description if (in.readInt() == 1) { this.description = in.readString(); } //Writing if (in.readInt() == 1) { this.writing = in.readString(); } }
From source file:ir.aarani.bazaar.billing.SkuDetails.java
protected SkuDetails(Parcel in) { this.productId = in.readString(); this.title = in.readString(); this.description = in.readString(); this.isSubscription = in.readByte() != 0; this.currency = in.readString(); this.priceValue = in.readDouble(); this.priceLong = in.readLong(); this.priceText = in.readString(); }
From source file:com.vk.sdk.api.model.VKApiPost.java
/** * Creates a Post instance from Parcel./*w w w . ja va2s . c o m*/ */ public VKApiPost(Parcel in) { this.id = in.readInt(); this.to_id = in.readInt(); this.from_id = in.readInt(); this.date = in.readLong(); this.text = in.readString(); this.reply_owner_id = in.readInt(); this.reply_post_id = in.readInt(); this.friends_only = in.readByte() != 0; this.comments_count = in.readInt(); this.can_post_comment = in.readByte() != 0; this.likes_count = in.readInt(); this.user_likes = in.readByte() != 0; this.can_like = in.readByte() != 0; this.can_publish = in.readByte() != 0; this.reposts_count = in.readInt(); this.user_reposted = in.readByte() != 0; this.post_type = in.readString(); this.attachments = in.readParcelable(VKAttachments.class.getClassLoader()); this.geo = in.readParcelable(VKApiPlace.class.getClassLoader()); this.signer_id = in.readInt(); }
From source file:com.mobiperf_library.measurements.HttpTask.java
protected HttpTask(Parcel in) { super(in); duration = in.readLong(); }
From source file:com.datastore_android_sdk.rxvolley.http.URLHttpResponse.java
protected URLHttpResponse(Parcel in) { this.headers = (HashMap<String, String>) in.readSerializable(); this.responseCode = in.readInt(); this.responseMessage = in.readString(); this.contentEncoding = in.readString(); this.contentType = in.readString(); this.contentLength = in.readLong(); }
From source file:id.satusatudua.sigap.data.model.ImportantContact.java
protected ImportantContact(Parcel in) { contactId = in.readString();/* www .j av a 2 s . com*/ name = in.readString(); phoneNumber = in.readString(); userId = in.readString(); address = in.readString(); createdAt = new Date(in.readLong()); avgRate = in.readDouble(); totalRate = in.readDouble(); totalUserRate = in.readLong(); myRate = in.readInt(); bookmarked = in.readByte() != 0; user = in.readParcelable(User.class.getClassLoader()); }
From source file:com.oasisfeng.nevo.StatusBarNotificationEvo.java
private StatusBarNotificationEvo(final Parcel in) { super(in.readString(), null, in.readInt(), in.readInt() != 0 ? in.readString() : null, in.readInt(), 0, 0, NULL_NOTIFICATION, UserHandle.readFromParcel(in), in.readLong()); holder = INotification.Stub.asInterface(in.readStrongBinder()); }
From source file:edu.vuum.mocca.orm.StoryData.java
/** * Used for writing a copy of this object to a Parcel, do not manually call. *//*from w w w .ja va 2 s .co m*/ private StoryData(Parcel in) { KEY_ID = in.readLong(); loginId = in.readLong(); storyId = in.readLong(); title = in.readString(); body = in.readString(); audioLink = in.readString(); videoLink = in.readString(); imageName = in.readString(); imageLink = in.readString(); tags = in.readString(); creationTime = in.readLong(); storyTime = in.readLong(); latitude = in.readDouble(); longitude = in.readDouble(); key = in.readString(); href = in.readString(); }
From source file:com.guavabot.alarmpreference.Alarm.java
private Alarm(Parcel in) { mAlarmOn = in.readByte() != 0;/* w ww . j a v a 2 s . c o m*/ String time = in.readString(); mTime = TIME_FMT.parseLocalTime(time); mWeeklyAlarms = in.readInt(); mId = in.readLong(); }