Class ChallengeParts.Builder
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<ChallengeParts,ChallengeFields.Builder>
-
- com.cheetahdigital.challenges.core.api.ChallengeParts.Builder
-
- Enclosing class:
- ChallengeParts
public static final class ChallengeParts.Builder extends BaseParams.BaseBuilder<ChallengeParts,ChallengeFields.Builder>
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
mQueryParams
-
-
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 ChallengePartscreateQueryParams()Instantiates the implementation classChallengeParts.BuildersetAnswer(java.lang.String answer)Set the answer textChallengeParts.BuildersetAttachment(MediaFile file)Set the file attachment-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
build, setId
-
-
-
-
Constructor Detail
-
Builder
public Builder()
Default constructor
-
Builder
public Builder(ChallengeParts params)
Create a builder class from an existingChallengeParts- Parameters:
params-ChallengePartsto be reused
-
-
Method Detail
-
createQueryParams
protected ChallengeParts createQueryParams()
Description copied from class:BaseParams.BaseBuilderInstantiates the implementation class- Specified by:
createQueryParamsin classBaseParams.BaseBuilder<ChallengeParts,ChallengeFields.Builder>- 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(MediaFile file)
Set the file attachment- Parameters:
file- file to be uploaded- Returns:
- the built parameter class
-
-