Ejemplo n.º 1
0
 @Override
 public void addOldData(SearchStatusListBean oldValue) {
   if (oldValue != null && oldValue.getSize() > 0) {
     getItemList().addAll(oldValue.getItemList());
     setTotal_number(oldValue.getTotal_number());
   }
 }
Ejemplo n.º 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());
    }
  }
Ejemplo n.º 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;
        }