Example usage for android.os Parcel readSerializable

List of usage examples for android.os Parcel readSerializable

Introduction

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

Prototype

public final Serializable readSerializable() 

Source Link

Document

Read and return a new Serializable object from the parcel.

Usage

From source file:io.nuclei.cyto.share.PackageTargetManager.java

protected PackageTargetManager(Parcel in) {
    mFacebookId = in.readString();//w ww.  j a  va  2s. co  m
    mText = in.readString();
    mUrl = in.readString();
    mEmail = in.readString();
    mSubject = in.readString();
    mFile = (File) in.readSerializable();
    mUri = in.readParcelable(getClass().getClassLoader());
}

From source file:de.schildbach.wallet.data.PaymentIntent.java

private PaymentIntent(final Parcel in) {
    standard = (Standard) in.readSerializable();

    payeeName = in.readString();/*from  w ww .j  a va  2s.  com*/
    payeeVerifiedBy = in.readString();

    final int outputsLength = in.readInt();
    if (outputsLength > 0) {
        outputs = new Output[outputsLength];
        in.readTypedArray(outputs, Output.CREATOR);
    } else {
        outputs = null;
    }

    memo = in.readString();

    paymentUrl = in.readString();

    final int payeeDataLength = in.readInt();
    if (payeeDataLength > 0) {
        payeeData = new byte[payeeDataLength];
        in.readByteArray(payeeData);
    } else {
        payeeData = null;
    }

    paymentRequestUrl = in.readString();

    final int paymentRequestHashLength = in.readInt();
    if (paymentRequestHashLength > 0) {
        paymentRequestHash = new byte[paymentRequestHashLength];
        in.readByteArray(paymentRequestHash);
    } else {
        paymentRequestHash = null;
    }
}

From source file:com.richtodd.android.quiltdesign.block.PaperPiecedBlockPiece.java

private PaperPiecedBlockPiece(Parcel in) {
    m_id = (UUID) in.readSerializable();
    m_from = in.readParcelable(PointF.class.getClassLoader());
    m_to = in.readParcelable(PointF.class.getClassLoader());
    m_color = in.readInt();/*from w w  w .j ava2 s  .c  o  m*/

    m_cachedPoints = null;
    m_cachedPath = null;
    m_cachedDrawable = null;
    m_cachedBlackWhiteDrawable = null;
    m_cachedShadowPaint = null;
}

From source file:nuclei.ui.share.PackageTargetManager.java

protected PackageTargetManager(Parcel in) {
    mFacebookId = in.readString();// www  .  j a v a  2 s.  c  o  m
    mText = in.readString();
    mUrl = in.readString();
    mSms = in.readString();
    mEmail = in.readString();
    mSubject = in.readString();
    mFile = (File) in.readSerializable();
    mUri = in.readParcelable(getClass().getClassLoader());
}

From source file:com.tigerpenguin.places.model.PlaceDetail.java

@SuppressWarnings("unchecked")
public PlaceDetail(Parcel in) {
    addressComponents = in.readArrayList(AddressComponent.class.getClassLoader());
    formattedAddress = in.readString();/*  www.  j a va  2s  . c  o m*/
    localPhone = in.readString();
    geometry = in.readParcelable(Geometry.class.getClassLoader());
    iconUrl = in.readString();
    placeId = in.readString();
    internationalPhone = in.readString();
    name = in.readString();
    openingHours = in.readParcelable(OpeningHours.class.getClassLoader());
    photos = in.readArrayList(Photo.class.getClassLoader());
    priceLevel = (PriceLevel) in.readSerializable();
    rating = in.readDouble();
    reviews = in.readArrayList(Review.class.getClassLoader());
    types = in.readArrayList(PlaceType.class.getClassLoader());
    googlePlacePageUrl = in.readString();
    utcOffset = in.readInt();
    vicinity = in.readString();
    businessWebsite = in.readString();
}

From source file:com.scvngr.levelup.core.net.LevelUpResponse.java

/**
 * Constructor for parceling.//  w ww. jav  a2 s. c om
 *
 * @param in the parcel to read from.
 */
public LevelUpResponse(@NonNull final Parcel in) {
    super(in);
    mStatus = LevelUpStatus.valueOf(in.readString());

    mServerErrors = new ArrayList<>();
    in.readTypedList(mServerErrors, Error.CREATOR);
    mServerErrorReadError = (Exception) in.readSerializable();
    mOriginalResponse = in.readParcelable(LevelUpResponse.class.getClassLoader());

    checkRep();
}

From source file:fr.free.nrw.commons.Media.java

@SuppressWarnings("unchecked")
public Media(Parcel in) {
    localUri = in.readParcelable(Uri.class.getClassLoader());
    thumbUrl = in.readString();//from w  ww .j  av  a2s. c  o  m
    imageUrl = in.readString();
    filename = in.readString();
    description = in.readString();
    dataLength = in.readLong();
    dateCreated = (Date) in.readSerializable();
    dateUploaded = (Date) in.readSerializable();
    creator = in.readString();
    tags = (HashMap<String, Object>) in.readSerializable();
    width = in.readInt();
    height = in.readInt();
    license = in.readString();
    if (categories != null) {
        in.readStringList(categories);
    }
    descriptions = in.readHashMap(ClassLoader.getSystemClassLoader());
}

From source file:it_minds.dk.eindberetningmobil_android.models.DrivingReport.java

protected DrivingReport(Parcel in) {
    this.Uuid = in.readString();
    this.purpose = in.readString();
    this.orgLocation = in.readString();
    this.Rate = in.readString();
    this.extraDescription = in.readString();
    this.haveEditedDistance = in.readByte() != 0;
    this.startedAtHome = in.readByte() != 0;
    this.endedAtHome = in.readByte() != 0;
    this.fourKMRule = in.readByte() != 0;
    this.startTime = (DateTime) in.readSerializable();
    this.endTime = (DateTime) in.readSerializable();
    this.distanceInMeters = in.readDouble();
    this.gpsPoints = in.createTypedArrayList(GPSCoordinateModel.CREATOR);
    this.homeToBorderDistance = in.readDouble();
}

From source file:com.nestapi.lib.API.Structure.java

private Structure(Parcel in) {
    mStructureID = in.readString();//from   w  w w  .j  a v  a2 s.  c o m
    in.readStringList(mThermostatIDs = new ArrayList<>());
    in.readStringList(mSmokeCOAlarms = new ArrayList<>());
    mName = in.readString();
    mCountryCode = in.readString();
    mPeakPeriodStartTime = in.readString();
    mPeakPeriodEndTime = in.readString();
    mTimeZone = in.readString();
    mAwayState = (AwayState) in.readSerializable();
    mETA = in.readParcelable(ETA.class.getClassLoader());
}

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

private Shoppinglist(Parcel in) {
    this.mErn = in.readString();
    this.mName = in.readString();
    this.mAccess = in.readString();
    long tmpMModified = in.readLong();
    this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified);
    this.mPrevId = in.readString();
    this.mType = in.readString();
    this.mMeta = in.readString();
    this.mShares = (HashMap<String, Share>) in.readSerializable();
    this.mUserId = in.readInt();
    this.mSyncState = in.readInt();
}