class ClaimRecordPresenter extends BasePresenter<ClaimRecordContract.View> implements ClaimRecordContract.Presenter {

    public List<ClaimRewardRecord> getNewList(List<ClaimRewardRecord> oldClaimRewardRecordList, List<ClaimRewardRecord> newClaimRewardRecordList, boolean isLoadMore) {
        List<ClaimRewardRecord> oldList = oldClaimRewardRecordList == null ? new ArrayList<ClaimRewardRecord>() : oldClaimRewardRecordList;
        List<ClaimRewardRecord> curList = newClaimRewardRecordList;
        List<ClaimRewardRecord> newList = new ArrayList<>();
        if (isLoadMore) {
            newList.addAll(oldList);
            newList.addAll(curList);
        } else {
            newList = curList;
        }
        return newList;
    }

}