List of usage examples for android.os Parcel readParcelable
@SuppressWarnings("unchecked") public final <T extends Parcelable> T readParcelable(ClassLoader loader)
From source file:com.nextgis.maplib.datasource.ngw.ResourceGroup.java
protected ResourceGroup(Parcel in) { super(in);//from w ww . j a v a2 s.c o m mChildrenLoaded = in.readByte() == 1; int count = in.readInt(); mChildren = new ArrayList<>(); for (int i = 0; i < count; i++) { int type = in.readInt(); switch (type) { case Connection.NGWResourceTypeResourceGroup: ResourceGroup resourceGroup = in.readParcelable(ResourceGroup.class.getClassLoader()); resourceGroup.setParent(this); mChildren.add(resourceGroup); break; case Connection.NGWResourceTypePostgisLayer: case Connection.NGWResourceTypeRasterLayer: case Connection.NGWResourceTypeVectorLayer: LayerWithStyles layer = in.readParcelable(LayerWithStyles.class.getClassLoader()); layer.setParent(this); mChildren.add(layer); break; } } }
From source file:com.vk.sdk.api.model.VKApiUser.java
/** * Creates an User instance from Parcel. *///from w w w . jav a2s . c om public VKApiUser(Parcel in) { super(in); this.first_name = in.readString(); this.last_name = in.readString(); this.online = in.readByte() != 0; this.online_mobile = in.readByte() != 0; this.photo_50 = in.readString(); this.photo_100 = in.readString(); this.photo_200 = in.readString(); this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader()); this.full_name = in.readString(); }
From source file:com.vk.sdk.api.model.VKApiComment.java
/** * Creates a Comment instance from Parcel. *//* ww w . j a v a 2 s .c o m*/ public VKApiComment(Parcel in) { this.id = in.readInt(); this.from_id = in.readInt(); this.date = in.readLong(); this.text = in.readString(); this.reply_to_user = in.readInt(); this.reply_to_comment = in.readInt(); this.likes = in.readInt(); this.user_likes = in.readByte() != 0; this.can_like = in.readByte() != 0; this.attachments = in.readParcelable(VKAttachments.class.getClassLoader()); }
From source file:com.vk.sdk.api.model.VKApiCommunityFull.java
public VKApiCommunityFull(Parcel in) { super(in);/*from w w w.j a v a 2 s . c o m*/ this.city = in.readParcelable(VKApiCity.class.getClassLoader()); this.country = in.readParcelable(VKApiCountry.class.getClassLoader()); this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader()); this.place = in.readParcelable(VKApiPlace.class.getClassLoader()); this.description = in.readString(); this.wiki_page = in.readString(); this.members_count = in.readInt(); this.counters = in.readParcelable(Counters.class.getClassLoader()); this.start_date = in.readLong(); this.end_date = in.readLong(); this.can_post = in.readByte() != 0; this.can_see_all_posts = in.readByte() != 0; this.status = in.readString(); this.contacts = in.readParcelable(VKList.class.getClassLoader()); this.links = in.readParcelable(VKList.class.getClassLoader()); this.fixed_post = in.readInt(); this.verified = in.readByte() != 0; this.site = in.readString(); this.blacklisted = in.readByte() != 0; }
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. ja v a2s . co 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:net.soulwolf.structure.core.FragmentParameter.java
public FragmentParameter(Parcel in) { mFragmentClass = (Class) in.readSerializable(); mParams = in.readBundle();/*w ww . jav a 2 s .c om*/ mTag = in.readString(); mRequestCode = in.readInt(); mResultCode = in.readInt(); int size = in.readInt(); mAnimationRes = new int[size]; in.readIntArray(mAnimationRes); mResultParams = in.readParcelable(getClass().getClassLoader()); }
From source file:com.vk.sdk.api.model.VKList.java
/** * Creates list from Parcel/*www .ja v a 2 s.c o m*/ */ public VKList(Parcel in) { int size = in.readInt(); for (int i = 0; i < size; i++) { items.add(((T) in.readParcelable(((Object) this).getClass().getClassLoader()))); } this.count = in.readInt(); }
From source file:com.citrus.sdk.TransactionResponse.java
private TransactionResponse(Parcel in) { this.balanceAmount = in.readParcelable(Amount.class.getClassLoader()); this.transactionAmount = in.readParcelable(Amount.class.getClassLoader()); this.message = in.readString(); this.responseCode = in.readString(); int tmpTransactionStatus = in.readInt(); this.transactionStatus = tmpTransactionStatus == -1 ? null : TransactionStatus.values()[tmpTransactionStatus]; this.transactionDetails = in.readParcelable(TransactionDetails.class.getClassLoader()); this.citrusUser = in.readParcelable(CitrusUser.class.getClassLoader()); int tmpPaymentMode = in.readInt(); this.paymentMode = tmpPaymentMode == -1 ? null : PaymentMode.values()[tmpPaymentMode]; this.issuerCode = in.readString(); this.impsMobileNumber = in.readString(); this.impsMmid = in.readString(); this.authIdCode = in.readString(); this.signature = in.readString(); this.maskedCardNumber = in.readString(); this.COD = in.readByte() != 0; this.customParamsMap = in.readHashMap(String.class.getClassLoader()); this.jsonResponse = in.readString(); }
From source file:net.exclaimindustries.geohashdroid.util.KnownLocation.java
public void readFromParcel(Parcel in) { // Same way it went out. mName = in.readString();/*from w w w. jav a 2 s .c o m*/ mLocation = in.readParcelable(KnownLocation.class.getClassLoader()); mRange = in.readDouble(); mRestrictGraticule = in.readByte() != 0; }
From source file:com.eTilbudsavis.etasdk.model.Store.java
private Store(Parcel in) { this.mErn = in.readString(); this.mStreet = in.readString(); this.mCity = in.readString(); this.mZipcode = in.readString(); this.mCountry = in.readParcelable(Country.class.getClassLoader()); this.mLatitude = in.readDouble(); this.mLongitude = in.readDouble(); this.mDealerUrl = in.readString(); this.mDealerId = in.readString(); this.mBranding = in.readParcelable(Branding.class.getClassLoader()); this.mContact = in.readString(); this.mDealer = in.readParcelable(Dealer.class.getClassLoader()); }