Class ChallengeParams.Builder
- java.lang.Object
-
- com.cheetahdigital.challenges.core.api.ChallengeParams.Builder
-
- Enclosing class:
- ChallengeParams
public static final class ChallengeParams.Builder extends java.lang.ObjectBuilder class forChallengeParams
-
-
Constructor Summary
Constructors Constructor Description Builder()Default constructorBuilder(ChallengeParams queryParams)Create a builder class from an existingChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChallengeParamscreateQueryParams()Instantiates the implementation classChallengeParams.BuildersetRespondable(java.lang.Boolean respondable)Set to show respondable challengescom.cheetahdigital.corekit.rest.params.BaseParams.BaseBuildersetResponseId(java.lang.String responseId)Set the challenge response idChallengeParams.BuildersetShowAsAlert(java.lang.Boolean showAsAlert)Set to show as alertChallengeParams.BuildersetShowPollResult(java.lang.Boolean showPollResult)Set to show poll results
-
-
-
Constructor Detail
-
Builder
public Builder()
Default constructor
-
Builder
public Builder(ChallengeParams queryParams)
Create a builder class from an existingChallengeParams- Parameters:
queryParams-ChallengeParamsto be reused
-
-
Method Detail
-
setShowAsAlert
public ChallengeParams.Builder setShowAsAlert(@Nullable java.lang.Boolean showAsAlert)
Set to show as alert- Parameters:
showAsAlert-trueto show as alert- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setShowPollResult
public ChallengeParams.Builder setShowPollResult(@Nullable java.lang.Boolean showPollResult)
Set to show poll results- Parameters:
showPollResult-trueto show poll results- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setRespondable
public ChallengeParams.Builder setRespondable(@Nullable java.lang.Boolean respondable)
Set to show respondable challenges- Parameters:
respondable-trueto show respondable challenges- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setResponseId
public com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder setResponseId(@Nullable java.lang.String responseId)Set the challenge response id- Parameters:
responseId- challenge response id- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
createQueryParams
protected ChallengeParams createQueryParams()
Instantiates the implementation class- Returns:
- implementation class of
BaseParams.BaseBuilder
-
-