List of usage examples for android.os Parcel readLong
public final long readLong()
From source file:com.eTilbudsavis.etasdk.model.Offer.java
private Offer(Parcel in) { this.mErn = in.readString(); this.mHeading = in.readString(); this.mDescription = in.readString(); this.mCatalogPage = in.readInt(); this.mPricing = in.readParcelable(Pricing.class.getClassLoader()); this.mQuantity = in.readParcelable(Quantity.class.getClassLoader()); this.mImages = in.readParcelable(Images.class.getClassLoader()); this.mLinks = in.readParcelable(Links.class.getClassLoader()); long tmpMRunFrom = in.readLong(); this.mRunFrom = tmpMRunFrom == -1 ? null : new Date(tmpMRunFrom); long tmpMRunTill = in.readLong(); this.mRunTill = tmpMRunTill == -1 ? null : new Date(tmpMRunTill); this.mDealerUrl = in.readString(); this.mDealerId = in.readString(); this.mStoreUrl = in.readString(); this.mStoreId = in.readString(); this.mCatalogUrl = in.readString(); this.mCatalogId = in.readString(); this.mCatalog = in.readParcelable(Catalog.class.getClassLoader()); this.mDealer = in.readParcelable(Dealer.class.getClassLoader()); this.mStore = in.readParcelable(Store.class.getClassLoader()); }
From source file:com.vk.sdk.api.model.VKApiUserFull.java
public VKApiUserFull(Parcel in) { super(in);/*from www .j av a 2 s .c o m*/ this.activity = in.readString(); this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader()); this.bdate = in.readString(); this.city = in.readParcelable(VKApiCity.class.getClassLoader()); this.country = in.readParcelable(VKApiCountry.class.getClassLoader()); this.last_seen = in.readLong(); this.universities = in.readParcelable(VKList.class.getClassLoader()); this.schools = in.readParcelable(VKList.class.getClassLoader()); this.smoking = in.readInt(); this.alcohol = in.readInt(); this.political = in.readInt(); this.life_main = in.readInt(); this.people_main = in.readInt(); this.inspired_by = in.readString(); this.langs = in.createStringArray(); this.religion = in.readString(); this.facebook = in.readString(); this.facebook_name = in.readString(); this.livejournal = in.readString(); this.skype = in.readString(); this.site = in.readString(); this.twitter = in.readString(); this.instagram = in.readString(); this.mobile_phone = in.readString(); this.home_phone = in.readString(); this.screen_name = in.readString(); this.activities = in.readString(); this.interests = in.readString(); this.movies = in.readString(); this.tv = in.readString(); this.books = in.readString(); this.games = in.readString(); this.about = in.readString(); this.quotes = in.readString(); this.can_post = in.readByte() != 0; this.can_see_all_posts = in.readByte() != 0; this.can_write_private_message = in.readByte() != 0; this.wall_comments = in.readByte() != 0; this.is_banned = in.readByte() != 0; this.is_deleted = in.readByte() != 0; this.wall_default_owner = in.readByte() != 0; this.verified = in.readByte() != 0; this.sex = in.readInt(); this.counters = in.readParcelable(Counters.class.getClassLoader()); this.occupation = in.readParcelable(Occupation.class.getClassLoader()); this.relation = in.readInt(); this.relatives = in.readParcelable(VKList.class.getClassLoader()); this.blacklisted_by_me = in.readByte() != 0; }
From source file:com.baasbox.android.BaasFile.java
private BaasFile(Parcel source) { name = Util.readOptString(source); id = Util.readOptString(source); creationDate = Util.readOptString(source); author = Util.readOptString(source); mimeType = Util.readOptString(source); attachedData = source.readParcelable(BaasFile.class.getClassLoader()); metaData = source.readParcelable(BaasFile.class.getClassLoader()); contentLength = source.readLong(); version = source.readLong();//from w w w .ja v a 2 s .c o m isBound.set(Util.readBoolean(source)); data.set(Util.readOptBytes(source)); }
From source file:org.y20k.transistor.core.Station.java
protected Station(Parcel in) { TITLE = in.readString();//from w w w . j av a 2 s .c o m StreamURI = in.readString(); mStationFetchResults = in.readBundle(Bundle.class.getClassLoader()); mPlayback = in.readByte() != 0; // true if byte != 0 _ID = in.readLong(); UNIQUE_ID = in.readString(); SUBTITLE = in.readString(); IMAGE_PATH = in.readString(); IMAGE_FILE_NAME = in.readString(); SMALL_IMAGE_FILE_NAME = in.readString(); CONTENT_TYPE = in.readString(); DESCRIPTION = in.readString(); RATING = in.readInt(); COMMA_SEPARATED_TAGS = in.readString(); CATEGORY = in.readString(); MarkdownDescription = in.readString(); SMALL_IMAGE_PATH = in.readString(); IS_FAVOURITE = in.readInt(); THUMP_UP_STATUS = in.readString(); LogHelper.v(LOG_TAG, "Station re-created from parcel. State of playback is: " + mPlayback); }
From source file:com.baasbox.android.BaasDocument.java
BaasDocument(Parcel source) { this.collection = source.readString(); this.id = Util.readOptString(source); this.version = source.readLong(); this.author = Util.readOptString(source); this.creation_date = Util.readOptString(source); this.rid = Util.readOptString(source); this.data = source.readParcelable(JsonWrapper.class.getClassLoader()); }
From source file:net.phase.wallet.Currency.java
public Transaction(Parcel in) { this.date = (Date) in.readSerializable(); this.amount = in.readLong(); this.from = in.readString(); this.to = in.readString(); this.amountin = in.readLong(); this.amountout = in.readLong(); }
From source file:com.mobilyzer.measurements.RRCTask.java
protected RRCTask(Parcel in) { super(in); stopFlag = in.readByte() != 0; duration = in.readLong(); }
From source file:android.app.Notification.java
/** * Unflatten the notification from a parcel. *//*from w w w . jav a2 s . c o m*/ public Notification(Parcel parcel) { int version = parcel.readInt(); when = parcel.readLong(); icon = parcel.readInt(); number = parcel.readInt(); if (parcel.readInt() != 0) { contentIntent = PendingIntent.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { deleteIntent = PendingIntent.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { tickerText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { tickerView = RemoteViews.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { contentView = RemoteViews.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { largeIcon = Bitmap.CREATOR.createFromParcel(parcel); } defaults = parcel.readInt(); flags = parcel.readInt(); if (parcel.readInt() != 0) { sound = Uri.CREATOR.createFromParcel(parcel); } audioStreamType = parcel.readInt(); vibrate = parcel.createLongArray(); ledARGB = parcel.readInt(); ledOnMS = parcel.readInt(); ledOffMS = parcel.readInt(); iconLevel = parcel.readInt(); if (parcel.readInt() != 0) { fullScreenIntent = PendingIntent.CREATOR.createFromParcel(parcel); } priority = parcel.readInt(); kind = parcel.createStringArray(); // may set kind to null if (parcel.readInt() != 0) { extras = parcel.readBundle(); } actions = parcel.createTypedArray(Action.CREATOR); if (parcel.readInt() != 0) { bigContentView = RemoteViews.CREATOR.createFromParcel(parcel); } }