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 AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BadgeParams.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 boolean
getIsExpired()
Return the value of the expired flagjava.lang.String
getType()
Get the type of badge to retrieve.boolean
isEarned()
Returns the value for the Earned parameterboolean
isResultWithCategories()
Return the value for the show the categoriesvoid
setEarned(java.lang.Boolean isEarned)
Set a filter to show Earned badges onlyvoid
setExpired(java.lang.Boolean isExpired)
Set the flag to show expired or not expiredvoid
setResultWithCategories(java.lang.Boolean resultWithCategories)
Set to show the categories associated with theBadge
void
setType(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:
String
type 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
-true
if 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
-true
to 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
-true
to show expired badges only, otherwise,false
-
getIsExpired
public boolean getIsExpired()
Return the value of the expired flag- Returns:
- boolean value for the expired flag
-
-