List of usage examples for android.os Parcel readInt
public final int readInt()
From source file:com.eTilbudsavis.etasdk.model.Pieces.java
private Pieces(Parcel in) { this.mFrom = in.readInt(); this.mTo = in.readInt(); }
From source file:com.vk.sdk.api.model.VKApiChat.java
/** * Creates a Chat instance from Parcel./*from w ww. j av a2 s . c o m*/ */ public VKApiChat(Parcel in) { this.id = in.readInt(); this.type = in.readString(); this.title = in.readString(); this.admin_id = in.readInt(); this.users = in.createIntArray(); }
From source file:com.nttec.everychan.ui.gallery.GalleryInitResult.java
public GalleryInitResult(Parcel parcel) { initPosition = parcel.readInt(); shouldWaitForPageLoaded = parcel.readInt() == 1; int n = parcel.readInt(); attachments = new ArrayList<>(n); for (int i = 0; i < n; ++i) { AttachmentModel attachment = new AttachmentModel(); attachment.type = parcel.readInt(); attachment.size = parcel.readInt(); attachment.thumbnail = parcel.readString(); attachment.path = parcel.readString(); attachment.width = parcel.readInt(); attachment.height = parcel.readInt(); attachment.originalName = parcel.readString(); attachment.isSpoiler = parcel.readInt() == 1; String hash = parcel.readString(); String post = parcel.readString(); attachments.add(Triple.of(attachment, hash, post)); }//from w ww. j a v a 2 s . com }
From source file:com.github.capone.protocol.entities.Service.java
private Service(Parcel in) { name = in.readString(); category = in.readString(); port = in.readInt(); }
From source file:edu.umich.flowfence.common.ParamInfo.java
public ParamInfo(Parcel source) { this.typeName = source.readString(); this.paramIndex = source.readInt(); this.direction = Direction.CREATOR.createFromParcel(source); }
From source file:android.database.DatabaseUtils.java
/** * Special function for reading an exception result from the header of * a parcel, to be used after receiving the result of a transaction. This * will throw the exception for you if it had been written to the Parcel, * otherwise return and let you read the normal result data from the Parcel. * @param reply Parcel to read from/* w w w.j a v a2 s . c o m*/ * @see Parcel#writeNoException * @see Parcel#readException */ public static final void readExceptionFromParcel(Parcel reply) { int code = reply.readInt(); if (code == 0) return; String msg = reply.readString(); DatabaseUtils.readExceptionFromParcel(reply, msg, code); }
From source file:com.example.android.directboot.alarms.Alarm.java
protected Alarm(Parcel in) { id = in.readInt(); month = in.readInt(); date = in.readInt(); hour = in.readInt(); minute = in.readInt(); }
From source file:com.patloew.navigationviewfragmentadapters.StateMap.java
public StateMap(Parcel in) { ClassLoader classLoader = getClass().getClassLoader(); int size = in.readInt(); map = new HashMap<>(size); for (int i = 0; i < size; i++) { map.put(in.readString(), (Fragment.SavedState) in.readParcelable(classLoader)); }/* ww w .j a va 2s . com*/ }
From source file:com.vk.sdk.api.model.VKApiNote.java
/** * Creates a Note instance from Parcel./* w ww . ja v a2 s . c o m*/ */ public VKApiNote(Parcel in) { this.id = in.readInt(); this.user_id = in.readInt(); this.title = in.readString(); this.text = in.readString(); this.date = in.readLong(); this.comments = in.readInt(); this.read_comments = in.readInt(); }
From source file:com.markupartist.sthlmtraveling.data.models.Route.java
protected Route(Parcel in) { duration = in.readInt(); legs = new ArrayList<>(); in.readTypedList(legs, Leg.CREATOR); mode = in.readString();//from ww w . j a v a 2 s. com fare = in.readParcelable(Fare.class.getClassLoader()); }