Class ChallengeParams
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
- com.cheetahdigital.challenges.core.api.ChallengeParams
-
- All Implemented Interfaces:
android.os.Parcelable
public class ChallengeParams extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams
Class for setting the query parameters of Challenges 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
ChallengeParams.Builder
Builder class forChallengeParams
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder<P extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams,B extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder>
-
-
Constructor Summary
Constructors Constructor Description ChallengeParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCategory()
Returns the categoryjava.lang.Boolean
getRespondable()
Returns the respondable flagjava.lang.String
getResponseId()
Get the challenge response idjava.lang.Boolean
isShowAsAlert()
Returns the show alert flagjava.lang.Boolean
isShowPollResult()
Returns the show poll result flagvoid
setCategory(java.lang.String category)
Set the challenge categoryvoid
setRespondable(java.lang.Boolean respondable)
Set to show respondable challengesvoid
setResponseId(java.lang.String responseId)
Set the challenge response idvoid
setShowAsAlert(java.lang.Boolean showAsAlert)
Set to show as alertvoid
setShowPollResult(java.lang.Boolean showPollResult)
Set to show poll results-
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
-
-
-
-
Method Detail
-
getResponseId
public java.lang.String getResponseId()
Get the challenge response id- Returns:
- challenge response id
-
setResponseId
public void setResponseId(java.lang.String responseId)
Set the challenge response id- Parameters:
responseId
- challenge response id
-
setShowAsAlert
public void setShowAsAlert(java.lang.Boolean showAsAlert)
Set to show as alert- Parameters:
showAsAlert
-true
to show as alert
-
setShowPollResult
public void setShowPollResult(java.lang.Boolean showPollResult)
Set to show poll results- Parameters:
showPollResult
-true
to show poll results
-
setRespondable
public void setRespondable(java.lang.Boolean respondable)
Set to show respondable challenges- Parameters:
respondable
-true
to show respondable challenges
-
setCategory
public void setCategory(java.lang.String category)
Set the challenge category- Parameters:
category
- challenge category
-
isShowAsAlert
public java.lang.Boolean isShowAsAlert()
Returns the show alert flag- Returns:
- show alert flag
-
isShowPollResult
public java.lang.Boolean isShowPollResult()
Returns the show poll result flag- Returns:
- show poll result flag
-
getRespondable
public java.lang.Boolean getRespondable()
Returns the respondable flag- Returns:
- respondable flag
-
getCategory
public java.lang.String getCategory()
Returns the category- Returns:
- category
-
-