Пример #1
0
 @Override
 public void addOldData(SearchStatusListBean oldValue) {
   if (oldValue != null && oldValue.getSize() > 0) {
     getItemList().addAll(oldValue.getItemList());
     setTotal_number(oldValue.getTotal_number());
   }
 }
Пример #2
0
  @Override
  public void addNewData(SearchStatusListBean newValue) {
    if (newValue != null && newValue.getSize() > 0) {

      this.getItemList().clear();
      this.getItemList().addAll(newValue.getItemList());
      this.setTotal_number(newValue.getTotal_number());
    }
  }
Пример #3
0
        public SearchStatusListBean createFromParcel(Parcel in) {
          SearchStatusListBean searchStatusListBean = new SearchStatusListBean();

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

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

          return searchStatusListBean;
        }