List of usage examples for android.os Parcel readSerializable
public final Serializable readSerializable()
From source file:com.mindmeapp.extensions.ExtensionData.java
private ExtensionData(Parcel in) { int parcelableVersion = in.readInt(); this.mVisible = (in.readInt() != 0); this.mIcon = in.readInt(); String iconUriString = in.readString(); this.mIconUri = TextUtils.isEmpty(iconUriString) ? null : Uri.parse(iconUriString); this.mStatusToDisplay = in.readString(); if (TextUtils.isEmpty(this.mStatusToDisplay)) { this.mStatusToDisplay = null; }/*from w w w . j a v a2s . c om*/ this.mStatusToSpeak = in.readString(); if (TextUtils.isEmpty(this.mStatusToSpeak)) { this.mStatusToSpeak = null; } this.mLanguageToSpeak = (Locale) in.readSerializable(); this.mViewsToDisplay = in.readParcelable(RemoteViews.class.getClassLoader()); this.mContentDescription = in.readString(); if (TextUtils.isEmpty(this.mContentDescription)) { this.mContentDescription = null; } this.mBackground = in.readInt(); String backgroundUriString = in.readString(); this.mBackgroundUri = TextUtils.isEmpty(backgroundUriString) ? null : Uri.parse(backgroundUriString); }
From source file:com.rubengees.introduction.entity.Slide.java
protected Slide(Parcel in) { this.position = in.readInt(); this.title = in.readString(); this.titleResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.titleSize = (Float) in.readValue(Float.class.getClassLoader()); this.description = in.readString(); this.descriptionResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.descriptionSize = (Float) in.readValue(Float.class.getClassLoader()); this.imageResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.color = (Integer) in.readValue(Integer.class.getClassLoader()); this.colorResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.option = in.readParcelable(Option.class.getClassLoader()); this.customViewBuilder = (CustomViewBuilder) in.readSerializable(); }
From source file:com.marianhello.cordova.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt());//from w ww. j a va 2 s .c o m setDesiredAccuracy(in.readInt()); setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setServiceProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setUrl(in.readString()); setMethod(in.readString()); setHeaders((HashMap<String, String>) in.readSerializable()); setParams((HashMap<String, String>) in.readSerializable()); }
From source file:com.nestapi.lib.API.Thermostat.java
private Thermostat(Parcel in) { super(in);//from ww w . ja va 2 s .c o m mCanCool = readBoolean(in); mCanHeat = readBoolean(in); mIsUsingEmergencyHeat = readBoolean(in); mHasFan = readBoolean(in); mFanTimerTimeout = in.readString(); mHasLeaf = readBoolean(in); mTemperatureScale = in.readString(); mAwayTemperatureHighF = in.readLong(); mAwayTemperatureHighC = in.readDouble(); mAwayTemperatureLowF = in.readLong(); mAwayTemperatureLowC = in.readDouble(); mAmbientTemperatureF = in.readLong(); mAmbientTemperatureC = in.readDouble(); mFanTimerActive = readBoolean(in); mTargetTemperatureF = in.readLong(); mTargetTemperatureC = in.readDouble(); mTargetTemperatureHighF = in.readLong(); mTargetTemperatureHighC = in.readDouble(); mTargetTemperatureLowF = in.readLong(); mTargetTemperatureLowC = in.readDouble(); mHVACmode = (HVACMode) in.readSerializable(); }
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.eTilbudsavis.etasdk.model.Catalog.java
private Catalog(Parcel in) { this.mErn = in.readString(); this.mLabel = in.readString(); this.mBackground = (Integer) in.readValue(Integer.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.mPageCount = in.readInt(); this.mOfferCount = in.readInt(); this.mBranding = in.readParcelable(Branding.class.getClassLoader()); this.mDealerId = in.readString(); this.mDealerUrl = in.readString(); this.mStoreId = in.readString(); this.mStoreUrl = in.readString(); this.mDimension = in.readParcelable(Dimension.class.getClassLoader()); this.mImages = in.readParcelable(Images.class.getClassLoader()); this.mCatrgoryIds = (HashSet<String>) in.readSerializable(); this.mPdfUrl = in.readString(); this.mPages = new ArrayList<Images>(); in.readTypedList(mPages, Images.CREATOR); this.mDealer = in.readParcelable(Dealer.class.getClassLoader()); this.mStore = in.readParcelable(Store.class.getClassLoader()); this.mHotspots = in.readParcelable(HotspotMap.class.getClassLoader()); }