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.tlongdev.bktf.model.Item.java

protected Item(Parcel source) {
    defindex = source.readInt();//from ww w  .j  ava 2 s.c o  m
    name = source.readString();
    //noinspection WrongConstant
    quality = source.readInt();
    tradable = source.readByte() != 0;
    craftable = source.readByte() != 0;
    australium = source.readByte() != 0;
    priceIndex = source.readInt();
    weaponWear = source.readInt();
    price = source.readParcelable(Price.class.getClassLoader());
}

From source file:cx.ring.model.CallContact.java

private void readFromParcel(Parcel in) {
    id = in.readLong();/*w  w w.  jav a  2  s.  c o m*/
    key = in.readString();
    mDisplayName = in.readString();
    photo_id = in.readLong();
    phones.clear();
    in.readTypedList(phones, Phone.CREATOR);
    mEmail = in.readString();
    isUser = in.readByte() != 0;
    stared = in.readByte() != 0;
}

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

private ShoppinglistItem(Parcel in) {
    this.mId = in.readString();
    this.mErn = in.readString();
    this.mTick = in.readByte() != 0;
    this.mOfferId = in.readString();
    this.mCount = in.readInt();
    this.mDescription = in.readString();
    this.mCreator = in.readString();
    long tmpMModified = in.readLong();
    this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified);
    this.mOffer = in.readParcelable(Offer.class.getClassLoader());
    this.mShoppinglistId = in.readString();
    this.mPrevId = in.readString();
    this.mMeta = in.readString();
    this.mUserId = in.readInt();
    this.mSyncState = in.readInt();
}

From source file:com.paranoid.gerrit.objects.JSONCommit.java

public JSONCommit(Parcel parcel) {
    mKind = parcel.readString();/*from  w w  w.  jav a  2s. co  m*/
    mId = parcel.readString();
    mProject = parcel.readString();
    mBranch = parcel.readString();
    mChangeId = parcel.readString();
    mSubject = parcel.readString();
    mStatus = Status.valueOf(parcel.readString());
    mCreatedDate = parcel.readString();
    mLastUpdatedDate = parcel.readString();
    mIsMergeable = parcel.readByte() == 1;
    mSortKey = parcel.readString();
    mCommitNumber = parcel.readInt();
    mCurrentRevision = parcel.readString();
    mOwnerObject = parcel.readParcelable(CommitterObject.class.getClassLoader());
    mPatchSet = parcel.readParcelable(CommitInfo.class.getClassLoader());
    mFileInfos = parcel.readParcelable(FileInfoList.class.getClassLoader());
    mWebAddress = parcel.readString();
    mReviewers = parcel.readParcelable(ReviewerList.class.getClassLoader());
    mPatchSetNumber = parcel.readInt();
    mMessagesList = parcel.readArrayList(CommitComment.class.getClassLoader());
}

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

/**
 * Creates a Photo instance from Parcel.
 *//* w  ww.  jav  a  2 s.  c o m*/
public VKApiPhoto(Parcel in) {
    this.id = in.readInt();
    this.album_id = in.readInt();
    this.owner_id = in.readInt();
    this.width = in.readInt();
    this.height = in.readInt();
    this.text = in.readString();
    this.date = in.readLong();
    this.src = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.photo_75 = in.readString();
    this.photo_130 = in.readString();
    this.photo_604 = in.readString();
    this.photo_807 = in.readString();
    this.photo_1280 = in.readString();
    this.photo_2560 = in.readString();
    this.user_likes = in.readByte() != 0;
    this.can_comment = in.readByte() != 0;
    this.likes = in.readInt();
    this.comments = in.readInt();
    this.tags = in.readInt();
    this.access_key = in.readString();
}

From source file:com.google.android.apps.flexbox.FlexItem.java

protected FlexItem(Parcel in) {
    this.index = in.readInt();
    this.width = in.readInt();
    this.height = in.readInt();
    this.topMargin = in.readInt();
    this.startMargin = in.readInt();
    this.endMargin = in.readInt();
    this.bottomMargin = in.readInt();
    this.paddingTop = in.readInt();
    this.paddingStart = in.readInt();
    this.paddingEnd = in.readInt();
    this.paddingBottom = in.readInt();
    this.order = in.readInt();
    this.flexGrow = in.readFloat();
    this.flexShrink = in.readFloat();
    this.alignSelf = in.readInt();
    this.flexBasisPercent = in.readFloat();
    this.minWidth = in.readInt();
    this.minHeight = in.readInt();
    this.maxWidth = in.readInt();
    this.maxHeight = in.readInt();
    this.wrapBefore = in.readByte() != 0;
}

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

/**
 * Creates a Video instance from Parcel.
 *//* w  w w.  jav  a2  s.  c om*/
public VKApiVideo(Parcel in) {
    this.id = in.readInt();
    this.owner_id = in.readInt();
    this.album_id = in.readInt();
    this.title = in.readString();
    this.description = in.readString();
    this.duration = in.readInt();
    this.link = in.readString();
    this.date = in.readLong();
    this.views = in.readInt();
    this.player = in.readString();
    this.photo_130 = in.readString();
    this.photo_320 = in.readString();
    this.photo_640 = in.readString();
    this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.access_key = in.readString();
    this.comments = in.readInt();
    this.can_comment = in.readByte() != 0;
    this.can_repost = in.readByte() != 0;
    this.user_likes = in.readByte() != 0;
    this.repeat = in.readByte() != 0;
    this.likes = in.readInt();
    this.privacy_view = in.readInt();
    this.privacy_comment = in.readInt();
    this.mp4_240 = in.readString();
    this.mp4_360 = in.readString();
    this.mp4_480 = in.readString();
    this.mp4_720 = in.readString();
    this.external = in.readString();
}

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

public VKApiCommunityFull(Parcel in) {
    super(in);/*from  ww w.j  a v a  2 s. c om*/
    this.city = in.readParcelable(VKApiCity.class.getClassLoader());
    this.country = in.readParcelable(VKApiCountry.class.getClassLoader());
    this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader());
    this.place = in.readParcelable(VKApiPlace.class.getClassLoader());
    this.description = in.readString();
    this.wiki_page = in.readString();
    this.members_count = in.readInt();
    this.counters = in.readParcelable(Counters.class.getClassLoader());
    this.start_date = in.readLong();
    this.end_date = in.readLong();
    this.can_post = in.readByte() != 0;
    this.can_see_all_posts = in.readByte() != 0;
    this.status = in.readString();
    this.contacts = in.readParcelable(VKList.class.getClassLoader());
    this.links = in.readParcelable(VKList.class.getClassLoader());
    this.fixed_post = in.readInt();
    this.verified = in.readByte() != 0;
    this.site = in.readString();
    this.blacklisted = in.readByte() != 0;
}

From source file:com.wootric.androidsdk.objects.Settings.java

private Settings(Parcel in) {
    this.firstSurvey = (Long) in.readValue(Long.class.getClassLoader());
    this.userID = (Long) in.readValue(Long.class.getClassLoader());
    this.accountID = (Long) in.readValue(Long.class.getClassLoader());
    this.adminPanelTimeDelay = in.readInt();
    this.localizedTexts = in.readParcelable(LocalizedTexts.class.getClassLoader());
    this.adminPanelCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.localCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.timeDelay = in.readInt();
    this.surveyImmediately = in.readByte() != 0;
    this.dailyResponseCap = (Integer) in.readValue(Integer.class.getClassLoader());
    this.registeredPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.visitorPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.resurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.declineResurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.languageCode = in.readString();
    this.productName = in.readString();
    this.recommendTarget = in.readString();
    this.facebookPageId = in.readString();
    this.twitterPage = in.readString();
    this.customThankYou = in.readParcelable(WootricCustomThankYou.class.getClassLoader());
}

From source file:de.azapps.mirakel.model.list.ListMirakel.java

private ListMirakel(Parcel in) {
    final int tmpSortBy = in.readInt();
    this.sortBy = SORT_BY.values()[tmpSortBy];
    this.createdAt = in.readString();
    this.updatedAt = in.readString();
    final int tmpSyncState = in.readInt();
    this.syncState = SYNC_STATE.values()[tmpSyncState];
    this.lft = in.readInt();
    this.rgt = in.readInt();
    this.color = in.readInt();
    this.accountID = in.readLong();
    this.isSpecial = in.readByte() != 0;
    this.setId(in.readLong());
    this.setName(in.readString());
}