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

/**
 * Creates a PhotoAlbum instance from Parcel.
 *///from www .  ja  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:moodle.android.moodle.model.Content.java

private Content(Parcel in) {
    this.type = in.readString();
    this.filename = in.readString();
    this.filepath = in.readString();
    this.filesize = in.readInt();
    this.fileurl = in.readString();
    this.content = in.readString();
    this.timecreated = in.readLong();
    this.timemodified = in.readLong();
    this.sortorder = in.readInt();
    this.userid = in.readInt();
    this.author = in.readString();
    this.license = in.readString();
}

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

/**
 * Creates a community object from Parcel
 *///from w w  w. ja  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:com.markupartist.sthlmtraveling.data.models.Route.java

protected Route(Parcel in) {
    duration = in.readInt();//from w  w  w . j a va2 s . c om
    legs = new ArrayList<>();
    in.readTypedList(legs, Leg.CREATOR);
    mode = in.readString();
    fare = in.readParcelable(Fare.class.getClassLoader());
}

From source file:com.krayzk9s.imgurholo.libs.JSONParcelable.java

/**
 * Called from the constructor to create this
 * object from a parcel.//from  ww  w . java  2  s .  com
 *
 * @param in parcel from which to re-create object
 */
private void readFromParcel(Parcel in) {

    // We just need to read back each
    // field in the order that it was
    // written to the parcel
    try {
        jsonData = new JSONObject(in.readString());
    } catch (JSONException e) {
        Log.d("Error!", e.toString());
    }
}

From source file:org.immopoly.android.model.Flat.java

public Flat(Parcel in) {
    uid = in.readInt();/*from  w  w w. ja v a  2  s  . c  o  m*/
    name = in.readString();
    description = in.readString();
    city = in.readString();
    titlePictureSmall = in.readString();
    priceValue = in.readString();
    currency = in.readString();
    priceIntervaleType = in.readString();
    lat = in.readDouble();
    lng = in.readDouble();
    creationDate = in.readLong();
    long ageMs = System.currentTimeMillis() - creationDate;
    age = ageMs < Const.EXPOSE_THRESHOLD_NEW ? AGE_NEW
            : ageMs < Const.EXPOSE_THRESHOLD_OLD ? AGE_NORMAL : AGE_OLD;
}

From source file:com.csipsimple.models.RemoteLibInfo.java

public void readFromParcel(Parcel in) {
    PrimaryKey = in.readInt();//from   w  w w . ja  va 2s . c  om
    fileName = in.readString();
    filePath = new File(in.readString());
    uri = URI.create(in.readString());
    version = in.readString();
    label = in.readString();
    changelog = in.readString();
    description = in.readString();
    id = in.readString();
}

From source file:no.ntnu.osnap.social.models.Model.java

public Model(Parcel in) {
    try {/*from  w  w  w .  java 2s .  co  m*/
        jsonModel = new JSONObject(in.readString());
    } catch (Exception ex) {
        Log.d(TAG, ex.toString());
    }
}

From source file:com.jbirdvegas.mgerrit.objects.GooFileObject.java

public GooFileObject(Parcel parcel) {
    mId = parcel.readInt();/*from  w  ww. j  a va2  s  .co  m*/
    mFileName = parcel.readString();
    mPath = parcel.readString();
    mFolder = parcel.readString();
    mMd5 = parcel.readString();
    mType = parcel.readString();
    mDescription = parcel.readString();
    mIsFlashable = Boolean.valueOf(parcel.readString());
    mModified = parcel.readLong();
    mDownloads = parcel.readLong();
    mStatus = parcel.readInt();
    mAdditionalInfo = parcel.readString();
    mShortUrl = parcel.readString();
    mDeveloperId = parcel.readInt();
    mRO_DeveloperId = parcel.readString();
    mRO_Board = parcel.readString();
    mRO_Rom = parcel.readString();
    mRO_Version = parcel.readInt();
    mGappsPackage = parcel.readLong();
    mIncrementalFile = parcel.readInt();
    mGappsLink = parcel.readString();
    mGappsMd5 = parcel.readString();
}

From source file:com.facebook.login.WebViewLoginMethodHandler.java

WebViewLoginMethodHandler(Parcel source) {
    super(source);
    e2e = source.readString();
}