Example usage for android.os Parcel readValue

List of usage examples for android.os Parcel readValue

Introduction

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

Prototype

public final Object readValue(ClassLoader loader) 

Source Link

Document

Read a typed object from a parcel.

Usage

From source file:com.eTilbudsavis.etasdk.model.Dealer.java

private Dealer(Parcel in) {
    this.mErn = in.readString();
    this.mName = in.readString();
    this.mUrlName = in.readString();
    this.mWebsite = in.readString();
    this.mLogo = in.readString();
    this.mColor = (Integer) in.readValue(Integer.class.getClassLoader());
    this.mPageflip = in.readParcelable(Pageflip.class.getClassLoader());
}

From source file:com.wootric.androidsdk.objects.Settings.java

private Settings(Parcel in) {
    this.firstSurvey = (Long) in.readValue(Long.class.getClassLoader());
    this.userID = (Long) in.readValue(Long.class.getClassLoader());
    this.accountID = (Long) in.readValue(Long.class.getClassLoader());
    this.adminPanelTimeDelay = in.readInt();
    this.localizedTexts = in.readParcelable(LocalizedTexts.class.getClassLoader());
    this.adminPanelCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.localCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.timeDelay = in.readInt();
    this.surveyImmediately = in.readByte() != 0;
    this.dailyResponseCap = (Integer) in.readValue(Integer.class.getClassLoader());
    this.registeredPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.visitorPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.resurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.declineResurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.languageCode = in.readString();
    this.productName = in.readString();
    this.recommendTarget = in.readString();
    this.facebookPageId = in.readString();
    this.twitterPage = in.readString();
    this.customThankYou = in.readParcelable(WootricCustomThankYou.class.getClassLoader());
}

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.bgloc.Config.java

private Config(Parcel in) {
    setStationaryRadius(in.readFloat());
    setDistanceFilter(in.readInt());//from  www  .jav a 2s . c  om
    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));
    setLocationProvider(in.readInt());
    setInterval(in.readInt());
    setFastestInterval(in.readInt());
    setActivitiesInterval(in.readInt());
    setStopOnStillActivity((Boolean) in.readValue(null));
    setUrl(in.readString());
    setSyncUrl(in.readString());
    setSyncThreshold(in.readInt());
    setMaxLocations(in.readInt());
    Bundle bundle = in.readBundle();
    setHttpHeaders((HashMap<String, String>) bundle.getSerializable("httpHeaders"));
}

From source file:com.marianhello.cordova.bgloc.Config.java

private Config(Parcel in) {
    setStationaryRadius(in.readFloat());
    setDistanceFilter(in.readInt());//ww w . j a v a2s. 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:info.icefilms.icestream.browse.Location.java

protected Location(Parcel in) {
    mIceFilmsURL = (URL) in.readValue(null);
    mURL = (URL) in.readValue(null);
}

From source file:com.nextgis.firereporter.ScanexSubscriptionItem.java

private ScanexSubscriptionItem(Parcel in) {
    nID = in.readLong();//from ww  w.j  a v  a 2s.  c  om
    sTitle = in.readString();
    sLayerName = in.readString();
    sWKT = in.readString();
    bSMSEnable = in.readInt() == 1 ? true : false;
    bHasNews = in.readInt() == 1 ? true : false;

    mmoItems = new HashMap<Long, ScanexNotificationItem>();
    int nSize = in.readInt();
    for (int i = 0; i < nSize; i++) {
        ScanexNotificationItem it = (ScanexNotificationItem) in
                .readValue(ScanexNotificationItem.class.getClassLoader());
        mmoItems.put(it.GetId(), it);
    }
}

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());
}