本文整理汇总了Java中io.plaidapp.util.ParcelUtils类的典型用法代码示例。如果您正苦于以下问题:Java ParcelUtils类的具体用法?Java ParcelUtils怎么用?Java ParcelUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParcelUtils类属于io.plaidapp.util包,在下文中一共展示了ParcelUtils类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Post
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
protected Post(Parcel in) {
super(in.readLong(), in.readString(), in.readString());
name = in.readString();
tagline = in.readString();
discussion_url = in.readString();
redirect_url = in.readString();
long tmpCreated_at = in.readLong();
//created_at = tmpCreated_at != -1 ? new Date(tmpCreated_at) : null;
comments_count = in.readInt();
votes_count = in.readInt();
user = (User) in.readValue(User.class.getClassLoader());
if (in.readByte() == 0x01) {
makers = new ArrayList<User>();
in.readList(makers, User.class.getClassLoader());
} else {
makers = null;
}
current_user = (CurrentUser) in.readValue(CurrentUser.class.getClassLoader());
maker_inside = in.readByte() != 0x00;
screenshot_url = ParcelUtils.readStringMap(in);
}
示例2: writeToParcel
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(id);
dest.writeString(title);
dest.writeString(url);
dest.writeString(name);
dest.writeString(tagline);
dest.writeString(discussion_url);
dest.writeString(redirect_url);
//dest.writeLong(created_at != null ? created_at.getTime() : -1L);
dest.writeInt(comments_count);
dest.writeInt(votes_count);
dest.writeValue(user);
if (makers == null) {
dest.writeByte((byte) (0x00));
} else {
dest.writeByte((byte) (0x01));
dest.writeList(makers);
}
dest.writeValue(current_user);
dest.writeByte((byte) (maker_inside ? 0x01 : 0x00));
ParcelUtils.writeStringMap(screenshot_url, dest);
}
示例3: Post
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
protected Post(Parcel in) {
super(in.readLong(), in.readString(), in.readString());
name = in.readString();
tagline = in.readString();
discussion_url = in.readString();
redirect_url = in.readString();
long tmpCreated_at = in.readLong();
//created_at = tmpCreated_at != -1 ? new Date(tmpCreated_at) : null;
comments_count = in.readInt();
votes_count = in.readInt();
user = (User) in.readValue(User.class.getClassLoader());
if (in.readByte() == 0x01) {
makers = new ArrayList<>();
in.readList(makers, User.class.getClassLoader());
} else {
makers = null;
}
current_user = (CurrentUser) in.readValue(CurrentUser.class.getClassLoader());
maker_inside = in.readByte() != 0x00;
screenshot_url = ParcelUtils.readStringMap(in);
}
示例4: User
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
protected User(Parcel in) {
id = in.readLong();
name = in.readString();
headline = in.readString();
long tmpCreated_at = in.readLong();
//created_at = tmpCreated_at != -1 ? new Date(tmpCreated_at) : null;
username = in.readString();
website_url = in.readString();
profile_url = in.readString();
image_url = ParcelUtils.readStringMap(in);
}
示例5: writeToParcel
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(id);
dest.writeString(name);
dest.writeString(headline);
//dest.writeLong(created_at != null ? created_at.getTime() : -1L);
dest.writeString(username);
dest.writeString(website_url);
dest.writeString(profile_url);
ParcelUtils.writeStringMap(image_url, dest);
}
示例6: Team
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
protected Team(Parcel in) {
id = in.readLong();
name = in.readString();
username = in.readString();
html_url = in.readString();
avatar_url = in.readString();
bio = in.readString();
location = in.readString();
links = ParcelUtils.readStringMap(in);
}
示例7: writeToParcel
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(id);
dest.writeString(name);
dest.writeString(username);
dest.writeString(html_url);
dest.writeString(avatar_url);
dest.writeString(bio);
dest.writeString(location);
ParcelUtils.writeStringMap(links, dest);
}
示例8: User
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
protected User(Parcel in) {
id = in.readLong();
name = in.readString();
username = in.readString();
html_url = in.readString();
avatar_url = in.readString();
bio = in.readString();
location = in.readString();
links = ParcelUtils.readStringMap(in);
buckets_count = in.readInt();
followers_count = in.readInt();
followings_count = in.readInt();
likes_count = in.readInt();
projects_count = in.readInt();
shots_count = in.readInt();
teams_count = in.readInt();
type = in.readString();
byte proVal = in.readByte();
pro = proVal == 0x02 ? null : proVal != 0x00;
buckets_url = in.readString();
followers_url = in.readString();
following_url = in.readString();
likes_url = in.readString();
projects_url = in.readString();
shots_url = in.readString();
teams_url = in.readString();
long tmpCreated_at = in.readLong();
created_at = tmpCreated_at != -1 ? new Date(tmpCreated_at) : null;
long tmpUpdated_at = in.readLong();
updated_at = tmpUpdated_at != -1 ? new Date(tmpUpdated_at) : null;
}
示例9: writeToParcel
import io.plaidapp.util.ParcelUtils; //导入依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(id);
dest.writeString(name);
dest.writeString(username);
dest.writeString(html_url);
dest.writeString(avatar_url);
dest.writeString(bio);
dest.writeString(location);
ParcelUtils.writeStringMap(links, dest);
dest.writeInt(buckets_count);
dest.writeInt(followers_count);
dest.writeInt(followings_count);
dest.writeInt(likes_count);
dest.writeInt(projects_count);
dest.writeInt(shots_count);
dest.writeInt(teams_count);
dest.writeString(type);
if (pro == null) {
dest.writeByte((byte) (0x02));
} else {
dest.writeByte((byte) (pro ? 0x01 : 0x00));
}
dest.writeString(buckets_url);
dest.writeString(followers_url);
dest.writeString(following_url);
dest.writeString(likes_url);
dest.writeString(projects_url);
dest.writeString(shots_url);
dest.writeString(teams_url);
dest.writeLong(created_at != null ? created_at.getTime() : -1L);
dest.writeLong(updated_at != null ? updated_at.getTime() : -1L);
}