Class BadgeParams
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
- com.cheetahdigital.badges.core.api.BadgeParams
-
- All Implemented Interfaces:
android.os.Parcelable
public class BadgeParams extends BaseListQueryParams
Class for setting the query parameter of the Badges API AllNullableparameters means you can remove the parameter by passing anullvalue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBadgeParams.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<BadgeParams>CREATOR-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
mId, mQueryMap
-
-
Constructor Summary
Constructors Constructor Description BadgeParams()BadgeParams(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetIsExpired()Return the value of the expired flagjava.lang.StringgetType()Get the type of badge to retrieve.booleanisEarned()Returns the value for the Earned parameterbooleanisResultWithCategories()Return the value for the show the categoriesvoidsetEarned(java.lang.Boolean isEarned)Set a filter to show Earned badges onlyvoidsetExpired(java.lang.Boolean isExpired)Set the flag to show expired or not expiredvoidsetResultWithCategories(java.lang.Boolean resultWithCategories)Set to show the categories associated with theBadgevoidsetType(java.lang.String type)Set the type of badge to retrieve.-
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, writeToParcel
-
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<BadgeParams> CREATOR
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the type of badge to retrieve.- Returns:
Stringtype of badge
-
setType
public void setType(@Nullable java.lang.String type)Set the type of badge to retrieve.- Parameters:
type- type of the badge
-
isEarned
public boolean isEarned()
Returns the value for the Earned parameter- Returns:
boolean
-
setEarned
public void setEarned(@Nullable java.lang.Boolean isEarned)Set a filter to show Earned badges only- Parameters:
isEarned-trueif to show earned only, otherwise,false
-
setResultWithCategories
public void setResultWithCategories(@Nullable java.lang.Boolean resultWithCategories)Set to show the categories associated with theBadge- Parameters:
resultWithCategories-trueto show the categories associated by the offer
-
isResultWithCategories
public boolean isResultWithCategories()
Return the value for the show the categories- Returns:
- boolean value for show categories
-
setExpired
public void setExpired(@Nullable java.lang.Boolean isExpired)Set the flag to show expired or not expired- Parameters:
isExpired-trueto show expired badges only, otherwise,false
-
getIsExpired
public boolean getIsExpired()
Return the value of the expired flag- Returns:
- boolean value for the expired flag
-
-