コード例 #1
0
 @Override
 public void addOldData(TopicResultListBean oldValue) {
   if (oldValue != null && oldValue.getSize() > 0) {
     getItemList().addAll(oldValue.getItemList());
     setTotal_number(oldValue.getTotal_number());
   }
 }
コード例 #2
0
  @Override
  public void addNewData(TopicResultListBean newValue) {
    if (newValue != null && newValue.getSize() > 0) {

      this.getItemList().clear();
      this.getItemList().addAll(newValue.getItemList());
      this.setTotal_number(newValue.getTotal_number());
    }
  }
コード例 #3
0
        public TopicResultListBean createFromParcel(Parcel in) {
          TopicResultListBean topicResultListBean = new TopicResultListBean();

          topicResultListBean.total_number = in.readInt();
          topicResultListBean.previous_cursor = in.readString();
          topicResultListBean.next_cursor = in.readString();

          topicResultListBean.statuses = new ArrayList<MessageBean>();
          in.readTypedList(topicResultListBean.statuses, MessageBean.CREATOR);

          return topicResultListBean;
        }