当前位置: 首页>>代码示例>>Java>>正文


Java ParcelUtils类代码示例

本文整理汇总了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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:22,代码来源:Post.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:24,代码来源:Post.java

示例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);
}
 
开发者ID:nickbutcher,项目名称:plaid,代码行数:22,代码来源:Post.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:12,代码来源:User.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:12,代码来源:User.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:11,代码来源:Team.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:12,代码来源:Team.java

示例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;
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:32,代码来源:User.java

示例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);
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:34,代码来源:User.java


注:本文中的io.plaidapp.util.ParcelUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。