List of usage examples for android.os Parcel readParcelable
@SuppressWarnings("unchecked") public final <T extends Parcelable> T readParcelable(ClassLoader loader)
From source file:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java
public JourneyQuery(Parcel parcel) { origin = parcel.readParcelable(Location.class.getClassLoader()); destination = parcel.readParcelable(Location.class.getClassLoader()); via = parcel.readParcelable(Location.class.getClassLoader()); time = new Time(); time.parse(parcel.readString());/*from w w w .j av a 2s . co m*/ isTimeDeparture = (parcel.readInt() == 1) ? true : false; alternativeStops = (parcel.readInt() == 1) ? true : false; transportModes = new ArrayList<String>(); parcel.readStringList(transportModes); ident = parcel.readString(); seqnr = parcel.readString(); }
From source file:org.alfresco.mobile.android.api.services.impl.publicapi.PublicAPIDocumentFolderServiceImpl.java
public PublicAPIDocumentFolderServiceImpl(Parcel o) { super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader())); }
From source file:org.alfresco.mobile.android.api.services.impl.onpremise.OnPremiseDocumentFolderServiceImpl.java
public OnPremiseDocumentFolderServiceImpl(Parcel o) { super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader())); }
From source file:com.facebook.notifications.internal.content.TextContent.java
private TextContent(Parcel source) { text = source.readString();/*from www .j ava2 s .c o m*/ textColor = source.readInt(); typeface = source.readString(); typefaceSize = source.readFloat(); textAlignment = source.readParcelable(getClass().getClassLoader()); }
From source file:org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.java
@SuppressWarnings("unchecked") public RepositorySessionImpl(Parcel o) { this.baseUrl = o.readString(); this.userIdentifier = o.readString(); this.password = o.readString(); this.rootNode = o.readParcelable(FolderImpl.class.getClassLoader()); this.repositoryInfo = (RepositoryInfo) o.readSerializable(); this.cmisSession = (Session) o.readSerializable(); Bundle b = o.readBundle();/*from www . jav a 2s .c om*/ this.userParameters = (Map<String, Serializable>) b.getSerializable("userParameters"); initServices(); }
From source file:ir.aarani.bazaar.billing.TransactionDetails.java
protected TransactionDetails(Parcel in) { this.productId = in.readString(); this.orderId = in.readString(); this.purchaseToken = in.readString(); long tmpPurchaseTime = in.readLong(); this.purchaseTime = tmpPurchaseTime == -1 ? null : new Date(tmpPurchaseTime); this.purchaseInfo = in.readParcelable(PurchaseInfo.class.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();/* w w w. j a v a 2 s.c om*/ 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.eTilbudsavis.etasdk.model.Session.java
private Session(Parcel in) { this.mToken = in.readString(); long tmpMExpires = in.readLong(); this.mExpires = tmpMExpires == -1 ? null : new Date(tmpMExpires); this.mUser = in.readParcelable(User.class.getClassLoader()); this.mPermission = in.readParcelable(Permission.class.getClassLoader()); this.mProvider = in.readString(); this.mClientId = in.readString(); this.mReference = in.readString(); }
From source file:com.scvngr.levelup.core.net.LevelUpRequest.java
/** * Constructor for parceling.// w ww. j av a 2 s .c o m * * @param in the parcel to read from. */ public LevelUpRequest(@NonNull final Parcel in) { super(in); mAccessTokenRetriever = in.readParcelable(LevelUpRequest.class.getClassLoader()); mBody = in.readParcelable(LevelUpRequest.class.getClassLoader()); }
From source file:com.getchute.android.photopickerplus.models.MediaResponseModel.java
public MediaResponseModel(Parcel in) { this();// w w w .j a v a2s .c om in.readTypedList(assetList, AssetModel.CREATOR); clientId = in.readString(); createdAt = in.readString(); storeId = in.readString(); updatedAt = in.readString(); parcel = in.readParcelable(ParcelModel.class.getClassLoader()); profile = in.readParcelable(ProfileModel.class.getClassLoader()); }