Example usage for android.os Parcel readInt

List of usage examples for android.os Parcel readInt

Introduction

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

Prototype

public final int readInt() 

Source Link

Document

Read an integer value from the parcel at the current dataPosition().

Usage

From source file:com.dwg.weibo.entity.Status.java

protected Status(Parcel in) {
    this.created_at = in.readString();
    this.id = in.readString();
    this.mid = in.readString();
    this.idstr = in.readString();
    this.textLength = in.readInt();
    this.text = in.readString();
    this.isLongText = in.readByte() != 0;
    this.source_type = in.readInt();
    this.source = in.readString();
    this.favorited = in.readByte() != 0;
    this.truncated = in.readByte() != 0;
    this.in_reply_to_status_id = in.readString();
    this.in_reply_to_user_id = in.readString();
    this.in_reply_to_screen_name = in.readString();
    this.thumbnail_pic = in.readString();
    this.bmiddle_pic = in.readString();
    this.original_pic = in.readString();
    this.geo = in.readParcelable(Geo.class.getClassLoader());
    this.user = in.readParcelable(User.class.getClassLoader());
    this.retweeted_status = in.readParcelable(Status.class.getClassLoader());
    this.reposts_count = in.readInt();
    this.comments_count = in.readInt();
    this.attitudes_count = in.readInt();
    this.mlevel = in.readInt();
    this.visible = in.readParcelable(Visible.class.getClassLoader());
    this.source_allowclick = in.readInt();
    this.pic_urls = new ArrayList<PicUrlsBean>();
    in.readList(this.pic_urls, PicUrlsBean.class.getClassLoader());
    this.thumbnail_pic_urls = in.createStringArrayList();
    this.bmiddle_pic_urls = in.createStringArrayList();
    this.origin_pic_urls = in.createStringArrayList();
    this.singleImgSizeType = in.readString();
}

From source file:com.mindmeapp.extensions.ExtensionData.java

private ExtensionData(Parcel in) {
    int parcelableVersion = in.readInt();

    this.mVisible = (in.readInt() != 0);

    this.mIcon = in.readInt();
    String iconUriString = in.readString();
    this.mIconUri = TextUtils.isEmpty(iconUriString) ? null : Uri.parse(iconUriString);

    this.mStatusToDisplay = in.readString();
    if (TextUtils.isEmpty(this.mStatusToDisplay)) {
        this.mStatusToDisplay = null;
    }//from ww w. j  a v a  2s. c  o  m
    this.mStatusToSpeak = in.readString();
    if (TextUtils.isEmpty(this.mStatusToSpeak)) {
        this.mStatusToSpeak = null;
    }
    this.mLanguageToSpeak = (Locale) in.readSerializable();
    this.mViewsToDisplay = in.readParcelable(RemoteViews.class.getClassLoader());

    this.mContentDescription = in.readString();
    if (TextUtils.isEmpty(this.mContentDescription)) {
        this.mContentDescription = null;
    }

    this.mBackground = in.readInt();
    String backgroundUriString = in.readString();
    this.mBackgroundUri = TextUtils.isEmpty(backgroundUriString) ? null : Uri.parse(backgroundUriString);
}

From source file:com.frodo.github.bean.dto.request.RepoRequestDTO.java

protected RepoRequestDTO(Parcel in) {
    this.name = in.readString();
    this.description = in.readString();
    this.homepage = in.readString();
    this.isPrivate = in.readByte() != 0;
    this.has_issues = in.readByte() != 0;
    this.has_wiki = in.readByte() != 0;
    this.has_downloads = in.readByte() != 0;
    this.default_branch = in.readString();
    this.auto_init = in.readByte() != 0;
    this.gitignore_template = in.readString();
    this.license_template = in.readString();
    this.team_id = in.readInt();
}

From source file:com.tlongdev.bktf.model.Item.java

protected Item(Parcel source) {
    defindex = source.readInt();
    name = source.readString();/*from   w ww .  j  ava 2  s.c om*/
    //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:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java

public JourneyQuery(Parcel parcel) {
    origin = parcel.readParcelable(Location.class.getClassLoader());
    destination = parcel.readParcelable(Location.class.getClassLoader());
    via = parcel.readParcelable(Location.class.getClassLoader());
    time = new Time();
    time.parse(parcel.readString());//from   w ww  .  ja  v  a2  s. c  o m
    isTimeDeparture = (parcel.readInt() == 1) ? true : false;
    alternativeStops = (parcel.readInt() == 1) ? true : false;
    transportModes = new ArrayList<String>();
    parcel.readStringList(transportModes);
    ident = parcel.readString();
    seqnr = parcel.readString();
}

From source file:com.fragmentmaster.app.FragmentMaster.java

private FragmentMasterState(Parcel in) {
    mFragments = in.readBundle();
    mIsSlideable = in.readInt() == 0;
    mHomeFragmentApplied = in.readInt() == 0;
}

From source file:com.fanfou.app.opensource.api.bean.Status.java

public Status(final Parcel in) {
    this.id = in.readString();
    this.ownerId = in.readString();
    this.createdAt = new Date(in.readLong());
    this.type = in.readInt();

    this.text = in.readString();
    this.simpleText = in.readString();
    this.source = in.readString();

    this.inReplyToStatusId = in.readString();
    this.inReplyToUserId = in.readString();
    this.inReplyToScreenName = in.readString();

    this.photoImageUrl = in.readString();
    this.photoLargeUrl = in.readString();
    this.photoThumbUrl = in.readString();

    this.userId = in.readString();
    this.userScreenName = in.readString();
    this.userProfileImageUrl = in.readString();

    this.truncated = in.readInt() == 0 ? false : true;
    this.favorited = in.readInt() == 0 ? false : true;
    this.self = in.readInt() == 0 ? false : true;

    this.isRead = in.readInt() == 0 ? false : true;
    this.isThread = in.readInt() == 0 ? false : true;
    this.hasPhoto = in.readInt() == 0 ? false : true;

    this.special = in.readInt() == 0 ? false : true;

}

From source file:com.nextgis.maplib.datasource.ngw.Resource.java

protected Resource(Parcel in) {
    mName = in.readString();//  w w  w. j a va 2s.  c  o  m
    mHasChildren = in.readByte() == 1;
    mDescription = in.readString();
    mKeyName = in.readString();
    mOwnerId = in.readLong();
    boolean hasPermissions = in.readByte() == 1;
    if (hasPermissions) {
        try {
            mPermissions = new JSONObject(in.readString());
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
    mType = in.readInt();
    mId = in.readInt();
}

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.ksk.droidbatterybooster.provider.TimeSchedule.java

public TimeSchedule(Parcel p) {
    id = p.readLong();// w w  w.j  a  va2s.c o  m
    enabled = p.readInt() == 1;
    hour = p.readInt();
    minutes = p.readInt();
    daysOfWeek = new DaysOfWeek(p.readInt());
    time = p.readLong();
    modeId = p.readInt();
}