List of usage examples for android.os Parcel writeByte
public final void writeByte(byte val)
From source file:ir.aarani.bazaar.billing.SkuDetails.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.productId); dest.writeString(this.title); dest.writeString(this.description); dest.writeByte(isSubscription ? (byte) 1 : (byte) 0); dest.writeString(this.currency); dest.writeDouble(this.priceValue); dest.writeLong(this.priceLong); dest.writeString(this.priceText); }
From source file:com.guavabot.alarmpreference.Alarm.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeByte((byte) (mAlarmOn ? 1 : 0)); dest.writeString(TIME_FMT.print(mTime)); dest.writeInt(mWeeklyAlarms);//www. ja va 2 s.c om dest.writeLong(mId); }
From source file:com.vk.sdk.api.model.VKApiMessage.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.id); dest.writeInt(this.user_id); dest.writeLong(this.date); dest.writeByte(read_state ? (byte) 1 : (byte) 0); dest.writeByte(out ? (byte) 1 : (byte) 0); dest.writeString(this.title); dest.writeString(this.body); dest.writeParcelable(attachments, flags); dest.writeParcelable(this.fwd_messages, flags); dest.writeByte(emoji ? (byte) 1 : (byte) 0); dest.writeByte(deleted ? (byte) 1 : (byte) 0); }
From source file:com.frodo.github.bean.dto.response.Repo.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(fork ? (byte) 1 : (byte) 0); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeLong(created_at != null ? created_at.getTime() : -1); dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1); dest.writeLong(updated_at != null ? updated_at.getTime() : -1); dest.writeInt(this.forks_count); dest.writeLong(this.id); dest.writeParcelable(this.parent, 0); dest.writeParcelable(this.source, 0); dest.writeString(this.clone_url); dest.writeString(this.forks_url); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeString(this.git_url); dest.writeString(this.contents_url); dest.writeString(this.language); dest.writeString(this.default_branch); dest.writeString(this.mirror_url); dest.writeString(this.name); dest.writeString(this.full_name); dest.writeString(this.ssh_url); dest.writeString(this.svn_url); dest.writeParcelable(this.owner, 0); dest.writeInt(this.stargazers_count); dest.writeInt(this.subscribers_count); dest.writeInt(this.network_count); dest.writeInt(this.watchers_count); dest.writeInt(this.size); dest.writeInt(this.open_issues_count); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeParcelable(this.permissions, 0); dest.writeParcelable(this.license, 0); dest.writeTypedList(branches);// w w w . j a v a 2s . co m dest.writeString(archive_url); }
From source file:pl.poznan.put.cs.ify.api.params.YParam.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(mType.ordinal());/*from www .jav a 2 s .c o m*/ switch (mType) { case Boolean: dest.writeByte((byte) ((Boolean) mValue ? 0 : 1)); break; case Integer: dest.writeInt((Integer) mValue); break; case String: dest.writeString((String) mValue); break; case Group: dest.writeString((String) mValue); break; case Position: dest.writeParcelable((YPosition) mValue, 0); default: dest.writeString((String) mValue); } }
From source file:com.cuddlesoft.norilib.SearchResult.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedList(images);//from w w w . java 2 s . co m dest.writeInt(offset); dest.writeTypedArray(query, 0); dest.writeByte((byte) (hasNextPage ? 0x01 : 0x00)); }
From source file:com.vk.sdk.api.model.VKApiUser.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeString(this.first_name); dest.writeString(this.last_name); dest.writeByte(online ? (byte) 1 : (byte) 0); dest.writeByte(online_mobile ? (byte) 1 : (byte) 0); dest.writeString(this.photo_50); dest.writeString(this.photo_100); dest.writeString(this.photo_200); dest.writeParcelable(this.photo, flags); dest.writeString(this.full_name); }
From source file:com.v2soft.dnremote.dao.Server.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(mId.toString());//from w w w . j a v a 2s . c o m dest.writeString(mName); dest.writeString(mServer); dest.writeInt(mPort); dest.writeByte((byte) (mRelative ? 1 : 0)); if (mIPAddr != null) { dest.writeInt(mIPAddr.length); dest.writeByteArray(mIPAddr); } else { dest.writeInt(0); } }
From source file:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieGridViewModelOnlImpl.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeTypedList(mMovies);// ww w . j a va 2 s .c o m dest.writeInt(mMoviePage); dest.writeByte(mRefreshing ? (byte) 1 : (byte) 0); dest.writeByte(mLoadingMore ? (byte) 1 : (byte) 0); dest.writeByte(mLoadingNewSort ? (byte) 1 : (byte) 0); dest.writeParcelable(mSortSelected, 0); dest.writeInt(mMovieDbIdSelected); }
From source file:com.vk.sdk.api.model.VKApiCommunity.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeString(this.name); dest.writeString(this.screen_name); dest.writeInt(this.is_closed); dest.writeByte(is_admin ? (byte) 1 : (byte) 0); dest.writeInt(this.admin_level); dest.writeByte(is_member ? (byte) 1 : (byte) 0); dest.writeInt(this.type); dest.writeString(this.photo_50); dest.writeString(this.photo_100); dest.writeString(this.photo_200); dest.writeParcelable(this.photo, flags); }