Class RewardParams
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
- com.cheetahdigital.rewards.core.api.RewardParams
-
- All Implemented Interfaces:
android.os.Parcelable
public class RewardParams extends BaseListQueryParams
Collection object for all the query parameters for Rewards
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RewardParams.Builder
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
BaseListQueryParams.BaseListQueryBuilder<P extends BaseListQueryParams,B extends BaseListQueryParams.BaseListQueryBuilder>
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
BaseParams.BaseBuilder<T extends BaseParams,B extends BaseParams.BaseBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<RewardParams>
CREATOR
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
mId, mQueryMap
-
-
Constructor Summary
Constructors Constructor Description RewardParams()
RewardParams(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getAddressId()
Returns the address idjava.lang.String
getAwardableType()
Returns the awardable typejava.lang.Integer
getAwardId()
Returns the award idjava.lang.String
getAwardStatus()
Returns the value for statusjava.lang.Integer
getCombinationId()
Returns the value of the combination idjava.lang.Integer
getMinimumResponseCount()
Returns the minimum response count set in the parameterjava.lang.String
getPaymentNonce()
Returns the value of the payment noncejava.lang.String
getRedemptionStatus()
Returns the value of the parameter for redemption statusjava.lang.String
getRequiredCurrency()
Returns the required currencyjava.lang.Double
getRequiredMetricValue()
Returns the required metric value from the parameterjava.lang.String
getRewardType()
Return the reward typejava.lang.Boolean
isUpdateAddressToProfile()
Returns the value of the save address to profilejava.lang.Boolean
resultWithResponseCount()
Sets the parameter to has response countvoid
setAddressId(java.lang.Integer addressId)
Sets the value of the parameter for the address idvoid
setAwardableType(java.lang.String awardableType)
Set the value of the awardable typevoid
setAwardId(java.lang.Integer awardId)
Sets the value of the award idvoid
setAwardStatus(java.lang.String awardStatus)
Sets the value of the award status in the parametervoid
setCombinationId(java.lang.Integer combinationId)
Sets the value of the parameter for the combination idvoid
setMinimumResponseCount(java.lang.Integer count)
Sets the parameter to have a minimum response countvoid
setPaymentNonce(java.lang.String paymentNonce)
Sets the value of the payment noncevoid
setRedemptionStatus(java.lang.String status)
Set the value for parameter for the redemption statusvoid
setRequiredCurrency(java.lang.String currency)
Set the value of the parameter for required currencyvoid
setRequiredMetricValue(java.lang.Double metricValue)
Sets the value of the parameter for required metric valuevoid
setResultWithResponseCount(java.lang.Boolean withCount)
Let API know to get reward with minimum response countvoid
setRewardType(java.lang.String type)
Set the reward type to be fetchedvoid
updateAddressToProfile(java.lang.Boolean shouldSave)
Set the value of the save address to profilevoid
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
addCategories, addCategory, clearCategories, describeContents, getCategories, getItemsPerPage, getLayout, getPage, getSortBy, getSortOrder, removeCategory, setItemsPerPage, setLayout, setPage, setSortBy, setSortOrder
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
addParam, getAccessToken, getId, getParam, getQueryMap, setAccessToken, setId
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<RewardParams> CREATOR
-
-
Method Detail
-
setRewardType
public void setRewardType(@Nullable java.lang.String type)
Set the reward type to be fetched- Parameters:
type
- value to set for type parameter
-
getRewardType
@Nullable public java.lang.String getRewardType()
Return the reward type- Returns:
- current value of type parameter
-
setResultWithResponseCount
public void setResultWithResponseCount(@Nullable java.lang.Boolean withCount)
Let API know to get reward with minimum response count- Parameters:
withCount
- value to set for result_with_response_count
-
resultWithResponseCount
@Nullable public java.lang.Boolean resultWithResponseCount()
Sets the parameter to has response count- Returns:
- current value of result_with_response_count parameter
-
setMinimumResponseCount
public void setMinimumResponseCount(@Nullable java.lang.Integer count)
Sets the parameter to have a minimum response count- Parameters:
count
- value to set for min_response_count parameter
-
getMinimumResponseCount
@Nullable public java.lang.Integer getMinimumResponseCount()
Returns the minimum response count set in the parameter- Returns:
- current value of min_response_count parameter
-
setRedemptionStatus
public void setRedemptionStatus(@Nullable java.lang.String status)
Set the value for parameter for the redemption status- Parameters:
status
- value to set for redemption_status parameter
-
getRedemptionStatus
@Nullable public java.lang.String getRedemptionStatus()
Returns the value of the parameter for redemption status- Returns:
- current value of redemption_status parameter
-
setRequiredMetricValue
public void setRequiredMetricValue(@Nullable java.lang.Double metricValue)
Sets the value of the parameter for required metric value- Parameters:
metricValue
- value to set for required_metric_value parameter
-
getRequiredMetricValue
@Nullable public java.lang.Double getRequiredMetricValue()
Returns the required metric value from the parameter- Returns:
- current value of required_metric_value parameter
-
setRequiredCurrency
public void setRequiredCurrency(@Nullable java.lang.String currency)
Set the value of the parameter for required currency- Parameters:
currency
- value to set for required_currency parameter
-
getRequiredCurrency
@Nullable public java.lang.String getRequiredCurrency()
Returns the required currency- Returns:
- current value of required_currency parameter
-
setAddressId
public void setAddressId(@Nullable java.lang.Integer addressId)
Sets the value of the parameter for the address id- Parameters:
addressId
- value to set for address_id parameter
-
getAddressId
@Nullable public java.lang.Integer getAddressId()
Returns the address id- Returns:
- current value of address_id parameter
-
updateAddressToProfile
public void updateAddressToProfile(@Nullable java.lang.Boolean shouldSave)
Set the value of the save address to profile- Parameters:
shouldSave
- value to set for update_address_profile parameter
-
isUpdateAddressToProfile
@Nullable public java.lang.Boolean isUpdateAddressToProfile()
Returns the value of the save address to profile- Returns:
- current value of update_address_profile parameter
-
setCombinationId
public void setCombinationId(@Nullable java.lang.Integer combinationId)
Sets the value of the parameter for the combination id- Parameters:
combinationId
- set value for combination_id parameter
-
getCombinationId
@Nullable public java.lang.Integer getCombinationId()
Returns the value of the combination id- Returns:
- current value for combination_id parameter
-
setAwardId
public void setAwardId(@Nullable java.lang.Integer awardId)
Sets the value of the award id- Parameters:
awardId
- set value for award_id parameter
-
getAwardId
@Nullable public java.lang.Integer getAwardId()
Returns the award id- Returns:
- current value of award_id parameter
-
setPaymentNonce
public void setPaymentNonce(@Nullable java.lang.String paymentNonce)
Sets the value of the payment nonce- Parameters:
paymentNonce
- set value for payment_nonce parameter
-
getPaymentNonce
@Nullable public java.lang.String getPaymentNonce()
Returns the value of the payment nonce- Returns:
- current value of payment_nonce parameter
-
setAwardableType
public void setAwardableType(@Nullable java.lang.String awardableType)
Set the value of the awardable type- Parameters:
awardableType
- set value for awardable_type parameter
-
getAwardableType
@Nullable public java.lang.String getAwardableType()
Returns the awardable type- Returns:
- current value of awardable_type parameter
-
setAwardStatus
public void setAwardStatus(@Nullable java.lang.String awardStatus)
Sets the value of the award status in the parameter- Parameters:
awardStatus
- set the value for status parameter
-
getAwardStatus
@Nullable public java.lang.String getAwardStatus()
Returns the value for status- Returns:
- current value of status parameter
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Overrides:
writeToParcel
in classBaseListQueryParams
-
-