Example usage for android.os Parcel readByte

List of usage examples for android.os Parcel readByte

Introduction

In this page you can find the example usage for android.os Parcel readByte.

Prototype

public final byte readByte() 

Source Link

Document

Read a byte value from the parcel at the current dataPosition().

Usage

From source file:com.vk.sdk.api.model.VKApiCommunity.java

/**
 * Creates a community object from Parcel
 *///from   www. j a v a 2 s.  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:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieGridViewModelOnlImpl.java

protected MovieGridViewModelOnlImpl(Parcel in) {
    super(in);//w ww.  j  a  v a 2s.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();
}

From source file:com.vk.sdk.api.model.VKApiWikiPage.java

/**
 * Creates a WikiPage instance from Parcel.
 *//*from ww  w .  j a  v  a  2s  .  co m*/
public VKApiWikiPage(Parcel in) {
    this.id = in.readInt();
    this.group_id = in.readInt();
    this.creator_id = in.readInt();
    this.title = in.readString();
    this.source = in.readString();
    this.current_user_can_edit = in.readByte() != 0;
    this.current_user_can_edit_access = in.readByte() != 0;
    this.who_can_view = in.readInt();
    this.who_can_edit = in.readInt();
    this.editor_id = in.readInt();
    this.edited = in.readLong();
    this.created = in.readLong();
    this.parent = in.readString();
    this.parent2 = in.readString();
}

From source file:com.baasbox.android.BaasUser.java

private static JsonObject readOptJson(Parcel p) {
    if (p.readByte() == 1) {
        return p.readParcelable(JsonArray.class.getClassLoader());
    } else {/*from  w w  w . j a  v a  2s  .  co m*/
        return null;
    }
}

From source file:com.vk.sdk.api.model.VKApiComment.java

/**
 * Creates a Comment instance from Parcel.
 *//*  w w 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.VKApiPhotoAlbum.java

/**
 * Creates a PhotoAlbum instance from Parcel.
 *///from  www  .  j  a  va  2 s.c  o  m
public VKApiPhotoAlbum(Parcel in) {
    this.id = in.readInt();
    this.title = in.readString();
    this.size = in.readInt();
    this.privacy = in.readInt();
    this.description = in.readString();
    this.owner_id = in.readInt();
    this.can_upload = in.readByte() != 0;
    this.updated = in.readLong();
    this.created = in.readLong();
    this.thumb_id = in.readInt();
    this.thumb_src = in.readString();
    this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader());
}

From source file:jp.alessandro.android.iab.Purchase.java

protected Purchase(Parcel in) {
    mOriginalJson = in.readString();//www.  j  a va2 s .  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.nextgis.maplib.datasource.ngw.Connection.java

protected Connection(Parcel in) {
    mName = in.readString();/*from w w w  .j  a  v a2s .  c  o m*/
    mLogin = in.readString();
    mPassword = in.readString();
    mURL = in.readString();
    mIsConnected = in.readByte() == 1;
    mCookie = in.readString();
    mId = in.readInt();
    int count = in.readInt();
    mSupportedTypes = new ArrayList<>();
    for (int i = 0; i < count; i++)
        mSupportedTypes.add(in.readInt());
    mRootResource = in.readParcelable(ResourceGroup.class.getClassLoader());
    mRootResource.setConnection(this);
    mRootResource.setParent(this);
}

From source file:com.eTilbudsavis.etasdk.model.Share.java

private Share(Parcel in) {
    this.mName = in.readString();
    this.mEmail = in.readString();
    this.mAccess = in.readString();
    this.mShoppinglistId = in.readString();
    this.mAccepted = in.readByte() != 0;
    this.mAcceptUrl = in.readString();
    this.mSyncState = in.readInt();
}

From source file:com.llc.bumpr.sdk.models.Driver.java

/**
 * A constructor for implementing the Driver as a Parcelable.
 * @param source The source Parcel/*  w ww.  ja  v  a2  s  .  c  om*/
 */
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());
}