Example usage for android.os Parcel readString

List of usage examples for android.os Parcel readString

Introduction

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

Prototype

public final String readString() 

Source Link

Document

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

Usage

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.vk.sdk.api.model.VKAttachments.java

public VKAttachments(Parcel parcel) {
    int size = parcel.readInt();
    for (int i = 0; i < size; i++) {
        String type = parcel.readString();
        if (TYPE_PHOTO.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiPhoto.class.getClassLoader()));
        } else if (TYPE_VIDEO.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiVideo.class.getClassLoader()));
        } else if (TYPE_AUDIO.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiAudio.class.getClassLoader()));
        } else if (TYPE_DOC.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiDocument.class.getClassLoader()));
        } else if (TYPE_POST.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiPost.class.getClassLoader()));
        } else if (TYPE_POSTED_PHOTO.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiPostedPhoto.class.getClassLoader()));
        } else if (TYPE_LINK.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiLink.class.getClassLoader()));
        } else if (TYPE_NOTE.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiNote.class.getClassLoader()));
        } else if (TYPE_APP.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiApplicationContent.class.getClassLoader()));
        } else if (TYPE_POLL.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiPoll.class.getClassLoader()));
        } else if (TYPE_WIKI_PAGE.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiWikiPage.class.getClassLoader()));
        } else if (TYPE_ALBUM.equals(type)) {
            add((VKApiAttachment) parcel.readParcelable(VKApiPhotoAlbum.class.getClassLoader()));
        }//  ww w .  ja v a  2  s  .co  m
    }
}

From source file:com.putlocker.upload.concurrency.PutlockerDownloadJob.java

private PutlockerDownloadJob(Parcel in) {
    super(PutlockerUpDownloadJob.DOWNLOAD_JOB);
    _id = in.readInt();//  w  w  w  .j  a  v a 2 s  . c  o m
    _fileName = in.readString();
    url = in.readString();
    _fileSize = in.readLong();
    type = in.readInt() == PutlockerDownloadJob.DownloadType.DownloadTypeFile.ordinal()
            ? PutlockerDownloadJob.DownloadType.DownloadTypeFile
            : PutlockerDownloadJob.DownloadType.DownloadTypeStream;

    int numberOfCookies = in.readInt();
    cookies = new Vector<Cookie>();
    for (int i = 0; i < numberOfCookies; i++) {
        BasicClientCookie cookie = new BasicClientCookie(in.readString(), in.readString());
        cookie.setDomain(in.readString());
        cookies.add(cookie);
    }

    _fileLocation = in.readString();
    _originalFileLocation = in.readString();
}

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

private User(Parcel in) {
    this.mErn = in.readString();
    this.mGender = in.readString();
    this.mBirthYear = in.readInt();
    this.mName = in.readString();
    this.mEmail = in.readString();
    this.mPermissions = in.readParcelable(Permission.class.getClassLoader());
}

From source file:org.mozilla.mozstumbler.service.scanners.cellscanner.CellInfo.java

private CellInfo(Parcel in) {
    mRadio = in.readString();
    mCellRadio = in.readString();/*from  ww w. ja va 2  s. co m*/
    mMcc = in.readInt();
    mMnc = in.readInt();
    mCid = in.readInt();
    mLac = in.readInt();
    mSignal = in.readInt();
    mAsu = in.readInt();
    mTa = in.readInt();
    mPsc = in.readInt();
}

From source file:com.danlvse.weebo.model.User.java

protected User(Parcel in) {
    this.id = in.readString();
    this.idstr = in.readString();
    this.screen_name = in.readString();
    this.name = in.readString();
    this.province = in.readInt();
    this.city = in.readInt();
    this.location = in.readString();
    this.description = in.readString();
    this.url = in.readString();
    this.profile_image_url = in.readString();
    this.profile_url = in.readString();
    this.cover_image_phone = in.readString();
    this.cover_image = in.readString();
    this.domain = in.readString();
    this.weihao = in.readString();
    this.gender = in.readString();
    this.followers_count = in.readInt();
    this.friends_count = in.readInt();
    this.statuses_count = in.readInt();
    this.favourites_count = in.readInt();
    this.created_at = in.readString();
    this.following = in.readByte() != 0;
    this.allow_all_act_msg = in.readByte() != 0;
    this.geo_enabled = in.readByte() != 0;
    this.verified = in.readByte() != 0;
    this.verified_type = in.readInt();
    this.remark = in.readString();
    this.status = in.readParcelable(Feed.class.getClassLoader());
    this.allow_all_comment = in.readByte() != 0;
    this.avatar_large = in.readString();
    this.avatar_hd = in.readString();
    this.verified_reason = in.readString();
    this.follow_me = in.readByte() != 0;
    this.online_status = in.readInt();
    this.bi_followers_count = in.readInt();
    this.lang = in.readString();
    this.star = in.readString();
    this.mbtype = in.readString();
    this.mbrank = in.readString();
    this.block_word = in.readString();
}

From source file:org.ale.scanner.zotero.data.BibItem.java

public BibItem(Parcel p) throws JSONException {
    this(p.readInt(), // _ID
            p.readLong(), // Creation Date
            p.readInt(), // Type
            new JSONObject(p.readString()), //JSON String
            p.readInt()); // Account ID
    mSelected = p.readInt();//  w w w. j a  v a  2 s. c o  m
}

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

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

    this.senderId = in.readString();
    this.recipientId = in.readString();
    this.text = in.readString();

    this.senderScreenName = in.readString();
    this.recipientScreenName = in.readString();
    this.senderProfileImageUrl = in.readString();
    this.recipientProfileImageUrl = in.readString();

    this.threadUserId = in.readString();
    this.threadUserName = in.readString();

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

From source file:net.issarlk.androbunny.inkbunny.File.java

public File(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    this.thumbnails = new Thumbnail[in.readInt()];
    for (int i = this.thumbnails.length - 1; i >= 0; i--) {
        if (in.readInt() == 1) {
            this.thumbnails[i] = Thumbnail.CREATOR.createFromParcel(in);
        }/*from   w  ww.  j  av  a  2 s .c  om*/
    }
    this.mimetype = in.readString();
    this.submission_id = in.readInt();
    this.user_id = in.readInt();
    this.submission_file_order = in.readInt();
    this.dimensions = new Dimension2D[in.readInt()];
    for (int i = this.dimensions.length - 1; i >= 0; i--) {
        if (in.readInt() == 1) {
            this.dimensions[i] = Dimension2D.CREATOR.createFromParcel(in);
        }
    }
    this.md5s = new String[5];
    in.readStringArray(this.md5s);
    this.file_urls = new URI[3];
    for (int i = 0; i < 3; i++) {
        String tmp = in.readString();
        if (tmp != null) {
            try {
                this.file_urls[i] = new URI(tmp);
            } catch (URISyntaxException e) {
                Log.e(TAG, e.toString());
            }
        }
    }
    this.deleted = in.readInt();
    this.create_datetime = in.readString();
    this.create_datetime_usertime = in.readString();
}

From source file:com.liferay.alerts.model.Alert.java

private Alert(Parcel parcel) {
    _id = parcel.readLong();//from www.  j  ava 2s  .  co m
    _user = parcel.readParcelable(User.class.getClassLoader());
    _userId = _user.getId();

    try {
        _payload = new JSONObject(parcel.readString());
    } catch (JSONException je) {
    }

    _read = (parcel.readInt() == 1);
    _timestamp = parcel.readLong();
}