List of usage examples for android.os Parcel readInt
public final int readInt()
From source file:io.github.data4all.model.data.TransformationParamBean.java
/** * Constructor to create a TransformationParamBean from a parcel. * /*www.j a va 2s.c o m*/ * @param in * The parcel to read from */ private TransformationParamBean(Parcel in) { height = in.readDouble(); verticalViewAngle = in.readDouble(); horizontalViewAngle = in.readDouble(); photoWidth = in.readInt(); photoHeight = in.readInt(); if (in.readInt() != 0) { location = new Location(in.readString()); location.setLatitude(in.readDouble()); location.setLongitude(in.readDouble()); } }
From source file:jp.alessandro.android.iab.Purchase.java
protected Purchase(Parcel in) { mOriginalJson = in.readString();//from ww w. j a v a 2s.c o m mOrderId = in.readString(); mPackageName = in.readString(); mSku = in.readString(); mPurchaseTime = in.readLong(); mPurchaseState = in.readInt(); mDeveloperPayload = in.readString(); mToken = in.readString(); mAutoRenewing = in.readByte() != 0; mSignature = in.readString(); }
From source file:com.putlocker.upload.concurrency.PutlockerDownloadJob.java
private PutlockerDownloadJob(Parcel in) { super(PutlockerUpDownloadJob.DOWNLOAD_JOB); _id = in.readInt(); _fileName = in.readString();//from ww w .j a v a 2 s . c o m url = in.readString(); _fileSize = in.readLong(); type = in.readInt() == PutlockerDownloadJob.DownloadType.DownloadTypeFile.ordinal() ? PutlockerDownloadJob.DownloadType.DownloadTypeFile : PutlockerDownloadJob.DownloadType.DownloadTypeStream; int numberOfCookies = in.readInt(); cookies = new Vector<Cookie>(); for (int i = 0; i < numberOfCookies; i++) { BasicClientCookie cookie = new BasicClientCookie(in.readString(), in.readString()); cookie.setDomain(in.readString()); cookies.add(cookie); } _fileLocation = in.readString(); _originalFileLocation = in.readString(); }
From source file:com.artemchep.horario.models.SubjectStudent.java
public SubjectStudent(Parcel source) { key = source.readString();/*from ww w . j a v a 2s . co m*/ title = source.readString(); description = source.readString(); descriptionHtml = source.readString(); author = source.readString(); type = source.readInt(); due = source.readLong(); timestamp = source.readLong(); isEdited = source.readInt() != 0; }
From source file:com.artemchep.horario.models.SubjectTask.java
public SubjectTask(Parcel source) { key = source.readString();//from w w w .j av a 2 s . c o m title = source.readString(); description = source.readString(); descriptionHtml = source.readString(); author = source.readString(); type = source.readInt(); due = source.readLong(); timestamp = source.readLong(); isEdited = source.readInt() != 0; }
From source file:com.vk.sdk.api.model.VKApiCommunity.java
/** * Creates a community object from Parcel *//* w ww. jav a2s .c o m*/ public VKApiCommunity(Parcel in) { super(in); this.name = in.readString(); this.screen_name = in.readString(); this.is_closed = in.readInt(); this.is_admin = in.readByte() != 0; this.admin_level = in.readInt(); this.is_member = in.readByte() != 0; this.type = in.readInt(); this.photo_50 = in.readString(); this.photo_100 = in.readString(); this.photo_200 = in.readString(); this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader()); }
From source file:com.llc.bumpr.sdk.models.Driver.java
/** * A constructor for implementing the Driver as a Parcelable. * @param source The source Parcel//from w ww . j a va 2s .com */ public Driver(Parcel source) { id = source.readInt(); fee = source.readDouble(); licenseId = source.readString(); insuranceId = source.readString(); balance = source.readDouble(); active = source.readByte() != 0; source.readList(requests, Request.class.getClassLoader()); }
From source file:net.soulwolf.structure.core.FragmentParameter.java
public FragmentParameter(Parcel in) { mFragmentClass = (Class) in.readSerializable(); mParams = in.readBundle();//w w w . ja v a 2 s. c o m 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:org.opendatakit.common.android.data.Row.java
public Row(UserTable userTable, Parcel in) { this.mUserTable = userTable; this.mRowId = in.readString(); int count;/*from ww w . ja v a2 s . c o m*/ count = in.readInt(); this.mRowData = new String[count]; in.readStringArray(mRowData); }
From source file:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieGridViewModelOnlImpl.java
protected MovieGridViewModelOnlImpl(Parcel in) { super(in);// ww w. ja va2 s .c o m mMovies = in.createTypedArrayList(Movie.CREATOR); mMoviePage = in.readInt(); mRefreshing = in.readByte() != 0; mLoadingMore = in.readByte() != 0; mLoadingNewSort = in.readByte() != 0; mSortSelected = in.readParcelable(Sort.class.getClassLoader()); mMovieDbIdSelected = in.readInt(); }