-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,java.util.RandomAccess
public class MenigaRedemptions extends ArrayList<MenigaRedemptionTransaction> implements Parcelable, Serializable
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected static MenigaRedemptionsOperations
apiOperator
protected MenigaDecimal
redeemedAmount
protected MenigaDecimal
nextReimbursementAmount
protected int
activatedOffers
protected MenigaDecimal
spentAmount
protected int
totalCount
protected List<MenigaScheduledReimbursement>
scheduledReimbursements
public final static Parcelable.Creator<MenigaRedemptions>
CREATOR
-
Method Summary
Modifier and Type Method Description static void
setOperator(MenigaRedemptionsOperations operator)
Sets the api operator for doing api calls void
setScheduledReimbursement(List<MenigaScheduledReimbursement> scheduled)
int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
static Result<MenigaRedemptions>
fetch()
Fetch redemption transactions static Result<MenigaRedemptions>
fetch(Integer skip, Integer take, DateTime dateFrom, DateTime dateTo)
Fetch redemption transactions static Result<MenigaRedemptions>
fetch(DateTime dateFrom, DateTime dateTo)
Fetch redemption transactions static MenigaRedemptionsOperations
getApiOperator()
MenigaDecimal
getRedeemedAmount()
MenigaDecimal
getNextReimbursementAmount()
int
getActivatedOffers()
MenigaDecimal
getSpentAmount()
int
getTotalCount()
List<MenigaScheduledReimbursement>
getScheduledReimbursements()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractList
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.util.Collection
parallelStream, stream
-
Methods inherited from class java.lang.Iterable
iterator, spliterator
-
Methods inherited from class java.util.List
of
-
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setOperator
static void setOperator(MenigaRedemptionsOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator
- An object that implements the MenigaRedemptionsOperations interface for carrying out api operations on this class.
-
setScheduledReimbursement
void setScheduledReimbursement(List<MenigaScheduledReimbursement> scheduled)
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
fetch
static Result<MenigaRedemptions> fetch()
Fetch redemption transactions
-
fetch
static Result<MenigaRedemptions> fetch(Integer skip, Integer take, DateTime dateFrom, DateTime dateTo)
Fetch redemption transactions
- Parameters:
skip
- number of records to skiptake
- number of records to returndateFrom
- the inclusive transaction date to search fromdateTo
- the exlusive transaction date to search to same day as fromDate is included
-
fetch
static Result<MenigaRedemptions> fetch(DateTime dateFrom, DateTime dateTo)
Fetch redemption transactions
- Parameters:
dateFrom
- the inclusive transaction date to search fromdateTo
- the exlusive transaction date to search to same day as fromDate is included
-
getApiOperator
static MenigaRedemptionsOperations getApiOperator()
-
getRedeemedAmount
MenigaDecimal getRedeemedAmount()
-
getNextReimbursementAmount
MenigaDecimal getNextReimbursementAmount()
-
getActivatedOffers
int getActivatedOffers()
-
getSpentAmount
MenigaDecimal getSpentAmount()
-
getTotalCount
int getTotalCount()
-
getScheduledReimbursements
List<MenigaScheduledReimbursement> getScheduledReimbursements()
-
-
-
-