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.Object
Builder 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 ChallengeParams
createQueryParams()
Instantiates the implementation classChallengeParams.Builder
setRespondable(java.lang.Boolean respondable)
Set to show respondable challengescom.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
setResponseId(java.lang.String responseId)
Set the challenge response idChallengeParams.Builder
setShowAsAlert(java.lang.Boolean showAsAlert)
Set to show as alertChallengeParams.Builder
setShowPollResult(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
-ChallengeParams
to be reused
-
-
Method Detail
-
setShowAsAlert
public ChallengeParams.Builder setShowAsAlert(@Nullable java.lang.Boolean showAsAlert)
Set to show as alert- Parameters:
showAsAlert
-true
to 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
-true
to 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
-true
to 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
-
-