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

    public long getBeginSequence(@Direction String direction) {
        if (Direction.DIRECTION_NEW.equals(direction)) {
            return -1;
        }

        if (mOldClaimRewardRecordList == null || mOldClaimRewardRecordList.isEmpty()) {
            return -1;
        }

        return mOldClaimRewardRecordList.get(mOldClaimRewardRecordList.size() - 1).getSequence();
    }

}