List of usage examples for android.os Parcel readByte
public final byte readByte()
From source file:com.citrus.sdk.payment.PaymentOption.java
private PaymentOption(Parcel in) { this.name = in.readString(); this.token = in.readString(); this.savePaymentOption = in.readByte() != 0; }
From source file:it_minds.dk.eindberetningmobil_android.models.GPSCoordinateModel.java
protected GPSCoordinateModel(Parcel in) { this.Latitude = in.readDouble(); this.Longitude = in.readDouble(); this.IsViaPoint = in.readByte() != 0; }
From source file:ir.aarani.bazaar.billing.SkuDetails.java
protected SkuDetails(Parcel in) { this.productId = in.readString(); this.title = in.readString(); this.description = in.readString(); this.isSubscription = in.readByte() != 0; this.currency = in.readString(); this.priceValue = in.readDouble(); this.priceLong = in.readLong(); this.priceText = in.readString(); }
From source file:com.guavabot.alarmpreference.Alarm.java
private Alarm(Parcel in) { mAlarmOn = in.readByte() != 0; String time = in.readString(); mTime = TIME_FMT.parseLocalTime(time); mWeeklyAlarms = in.readInt();//from ww w . j av a2 s. co m mId = in.readLong(); }
From source file:com.frodo.github.bean.dto.response.Repo.java
protected Repo(Parcel in) { super(in);/* w ww . ja v a 2 s . c o m*/ this.fork = in.readByte() != 0; this.isPrivate = in.readByte() != 0; long tmpCreated_at = in.readLong(); this.created_at = tmpCreated_at == -1 ? null : new Date(tmpCreated_at); long tmpPushed_at = in.readLong(); this.pushed_at = tmpPushed_at == -1 ? null : new Date(tmpPushed_at); long tmpUpdated_at = in.readLong(); this.updated_at = tmpUpdated_at == -1 ? null : new Date(tmpUpdated_at); this.forks_count = in.readInt(); this.id = in.readLong(); this.parent = in.readParcelable(Repo.class.getClassLoader()); this.source = in.readParcelable(Repo.class.getClassLoader()); this.clone_url = in.readString(); this.description = in.readString(); this.homepage = in.readString(); this.forks_url = in.readString(); this.git_url = in.readString(); this.contents_url = in.readString(); this.language = in.readString(); this.default_branch = in.readString(); this.mirror_url = in.readString(); this.name = in.readString(); this.full_name = in.readString(); this.ssh_url = in.readString(); this.svn_url = in.readString(); this.owner = in.readParcelable(User.class.getClassLoader()); this.stargazers_count = in.readInt(); this.subscribers_count = in.readInt(); this.network_count = in.readInt(); this.watchers_count = in.readInt(); this.size = in.readInt(); this.open_issues_count = in.readInt(); this.has_issues = in.readByte() != 0; this.has_downloads = in.readByte() != 0; this.has_wiki = in.readByte() != 0; this.permissions = in.readParcelable(Permissions.class.getClassLoader()); this.license = in.readParcelable(License.class.getClassLoader()); this.branches = in.createTypedArrayList(Branch.CREATOR); this.archive_url = in.readString(); }
From source file:com.v2soft.dnremote.dao.Server.java
public Server(Parcel in) { this(UUID.fromString(in.readString()), in.readString(), in.readString(), in.readInt(), in.readByte() == 1, readIPAddr(in)); }
From source file:com.vk.sdk.api.model.VKApiMessage.java
/** * Creates a Message instance from Parcel. *//*from w ww . j a v a2s . c o m*/ public VKApiMessage(Parcel in) { this.id = in.readInt(); this.user_id = in.readInt(); this.date = in.readLong(); this.read_state = in.readByte() != 0; this.out = in.readByte() != 0; this.title = in.readString(); this.body = in.readString(); this.attachments = in.readParcelable(VKAttachments.class.getClassLoader()); this.fwd_messages = in.readParcelable(VKList.class.getClassLoader()); this.emoji = in.readByte() != 0; this.deleted = in.readByte() != 0; }
From source file:com.vk.sdk.api.model.VKApiUser.java
/** * Creates an User instance from Parcel. *//*from w w w .j ava2 s . co m*/ 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:pl.poznan.put.cs.ify.api.params.YParam.java
/** * Creates YParam from parcel./*w ww . j av a 2 s . c o m*/ */ public YParam(Parcel in) { int type = in.readInt(); mType = YParamType.getByOrdinal(type); switch (mType) { case Boolean: mValue = in.readByte() != 0; break; case Integer: mValue = in.readInt(); break; case String: mValue = in.readString(); break; case Position: mValue = in.readParcelable(YPosition.class.getClassLoader()); break; case Group: mValue = in.readString(); break; default: mValue = in.readString(); } }
From source file:com.cuddlesoft.norilib.SearchResult.java
/** * Re-create a SearchResult by deserializing data from a {@link android.os.Parcel}. * * @param parcel {@link android.os.Parcel} used to deserialize the SearchResult. *//*from w w w.j a va2 s. c om*/ protected SearchResult(Parcel parcel) { this.images = parcel.createTypedArrayList(Image.CREATOR); this.offset = parcel.readInt(); this.query = parcel.createTypedArray(Tag.CREATOR); this.hasNextPage = (parcel.readByte() == 0x01); }