Class ChallengeParts.Builder
- java.lang.Object
-
- com.cheetahdigital.challenges.core.api.ChallengeParts.Builder
-
- Enclosing class:
- ChallengeParts
public static final class ChallengeParts.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructorBuilder(ChallengeParts params)
Create a builder class from an existingChallengeParts
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChallengeParts
createQueryParams()
Instantiates the implementation classChallengeParts.Builder
setAnswer(java.lang.String answer)
Set the answer textChallengeParts.Builder
setAttachment(com.cheetahdigital.uikit.helper.video.MediaFile file)
Set the file attachment
-
-
-
Constructor Detail
-
Builder
public Builder()
Default constructor
-
Builder
public Builder(ChallengeParts params)
Create a builder class from an existingChallengeParts
- Parameters:
params
-ChallengeParts
to be reused
-
-
Method Detail
-
createQueryParams
protected ChallengeParts createQueryParams()
Instantiates the implementation class- Returns:
- implementation class of
BaseParams.BaseBuilder
-
setAnswer
public ChallengeParts.Builder setAnswer(java.lang.String answer)
Set the answer text- Parameters:
answer
- text containing the answer- Returns:
- the built parameter class
-
setAttachment
public ChallengeParts.Builder setAttachment(com.cheetahdigital.uikit.helper.video.MediaFile file)
Set the file attachment- Parameters:
file
- file to be uploaded- Returns:
- the built parameter class
-
-