List of usage examples for android.os Parcel readString
public final String readString()
From source file:com.vk.sdk.api.model.VKApiPhoto.java
/** * Creates a Photo instance from Parcel. *///from ww w. j ava 2s . 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.scvngr.levelup.core.net.AbstractRequest.java
/** * Constructor for parceling.// www .ja va2 s . co m * * @param in the parcel to read from */ public AbstractRequest(@NonNull final Parcel in) { mMethod = NullUtils.nonNullContract(HttpMethod.valueOf(in.readString())); mUrlString = NullUtils.nonNullContract(in.readString()); final Map<String, String> headers = new HashMap<String, String>(); in.readMap(headers, HashMap.class.getClassLoader()); mRequestHeaders = NullUtils.nonNullContract(Collections.unmodifiableMap(headers)); final Map<String, String> query = new HashMap<String, String>(); in.readMap(query, HashMap.class.getClassLoader()); mQueryParams = NullUtils.nonNullContract(Collections.unmodifiableMap(query)); checkRep(); }
From source file:pl.poznan.put.cs.ify.api.params.YParam.java
/** * Creates YParam from parcel.// ww w . j av a2 s .c o m */ public YParam(Parcel in) { int type = in.readInt(); mType = YParamType.getByOrdinal(type); switch (mType) { case Boolean: mValue = in.readByte() != 0; break; case Integer: mValue = in.readInt(); break; case String: mValue = in.readString(); break; case Position: mValue = in.readParcelable(YPosition.class.getClassLoader()); break; case Group: mValue = in.readString(); break; default: mValue = in.readString(); } }
From source file:com.rubengees.introduction.entity.Slide.java
protected Slide(Parcel in) { this.position = in.readInt(); this.title = in.readString(); this.titleResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.titleSize = (Float) in.readValue(Float.class.getClassLoader()); this.description = in.readString(); this.descriptionResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.descriptionSize = (Float) in.readValue(Float.class.getClassLoader()); this.imageResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.color = (Integer) in.readValue(Integer.class.getClassLoader()); this.colorResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.option = in.readParcelable(Option.class.getClassLoader()); this.customViewBuilder = (CustomViewBuilder) in.readSerializable(); }
From source file:cl.smartcities.isci.transportinspector.backend.Bus.java
/** * Allows to recreate a bus from a Parcel *//*w w w. j a v a2 s .co m*/ protected Bus(Parcel in) { valid = in.readInt(); service = in.readString(); licensePlate = in.readString(); time = in.readString(); distance = in.readString(); latitude = in.readDouble(); longitude = in.readDouble(); passengerNumber = in.readInt(); busIcon = in.readInt(); defaultMapBusIcon = in.readInt(); activeMapBusIcon = in.readInt(); direction = in.readString(); descriptionError = in.readString(); destination = in.readString(); origin = in.readString(); color = in.readInt(); realDistance = in.readInt(); }
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.paranoid.gerrit.objects.JSONCommit.java
public JSONCommit(Parcel parcel) { mKind = parcel.readString(); mId = parcel.readString();// w ww .ja v a 2s .c om 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:edu.vuum.mocca.orm.StoryData.java
/** * Used for writing a copy of this object to a Parcel, do not manually call. *///from w ww .jav a 2 s. c om private StoryData(Parcel in) { KEY_ID = in.readLong(); loginId = in.readLong(); storyId = in.readLong(); title = in.readString(); body = in.readString(); audioLink = in.readString(); videoLink = in.readString(); imageName = in.readString(); imageLink = in.readString(); tags = in.readString(); creationTime = in.readLong(); storyTime = in.readLong(); latitude = in.readDouble(); longitude = in.readDouble(); key = in.readString(); href = in.readString(); }
From source file:com.aokyu.dev.pocket.content.Page.java
private Page(Parcel in) { super(in.readString()); mResolvedId = in.readString();/*from ww w. java2 s . c o m*/ mGivenUrl = in.readString(); mResolvedUrl = in.readString(); mGivenTitle = in.readString(); mResolvedTitle = in.readString(); mIsFavorited = (in.readInt() == 1); mState = PageState.valueOf(in.readInt()); mExcerpt = in.readString(); mIsArticle = (in.readInt() == 1); mImageState = ImageState.valueOf(in.readInt()); mVideoState = VideoState.valueOf(in.readInt()); mWordCount = in.readInt(); in.readStringArray(mTags); in.readStringArray(mAuthors); mImages = (Image[]) in.readParcelableArray(Image.class.getClassLoader()); mVideos = (Video[]) in.readParcelableArray(Video.class.getClassLoader()); }
From source file:com.nttec.everychan.ui.gallery.GalleryInitResult.java
public GalleryInitResult(Parcel parcel) { initPosition = parcel.readInt();// www .j av a 2 s . co m shouldWaitForPageLoaded = parcel.readInt() == 1; int n = parcel.readInt(); attachments = new ArrayList<>(n); for (int i = 0; i < n; ++i) { AttachmentModel attachment = new AttachmentModel(); attachment.type = parcel.readInt(); attachment.size = parcel.readInt(); attachment.thumbnail = parcel.readString(); attachment.path = parcel.readString(); attachment.width = parcel.readInt(); attachment.height = parcel.readInt(); attachment.originalName = parcel.readString(); attachment.isSpoiler = parcel.readInt() == 1; String hash = parcel.readString(); String post = parcel.readString(); attachments.add(Triple.of(attachment, hash, post)); } }