-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class TournamentConfig.Builder implements ShareModelBuilder<TournamentConfig, TournamentConfig.Builder>
Builder class for a concrete instance of TournamentCreationConfig
-
-
Constructor Summary
Constructors Constructor Description TournamentConfig.Builder()
-
Method Summary
-
-
Method Detail
-
getSortOrder
final TournamentSortOrder getSortOrder()
-
setSortOrder
final Unit setSortOrder(TournamentSortOrder sortOrder)
-
getScoreType
final TournamentScoreType getScoreType()
-
setScoreType
final Unit setScoreType(TournamentScoreType scoreType)
-
getEndTime
final Instant getEndTime()
-
setEndTime
final Unit setEndTime(Instant endTime)
-
getPayload
final String getPayload()
-
setPayload
final Unit setPayload(String payload)
-
setTournamentTitle
final TournamentConfig.Builder setTournamentTitle(String title)
Sets the tournament title
- Parameters:
title- the title of the tournament
-
setTournamentSortOrder
final TournamentConfig.Builder setTournamentSortOrder(TournamentSortOrder sortOrder)
Sets the sort order of the tournament.
- Parameters:
sortOrder- The sort order for scores in the tournament
-
setTournamentScoreType
final TournamentConfig.Builder setTournamentScoreType(TournamentScoreType scoreType)
Sets the score type of the tournament.
- Parameters:
scoreType- The type of score format for the tournament.
-
setTournamentEndTime
final TournamentConfig.Builder setTournamentEndTime(Instant endTime)
Sets the end time of the tournament.
- Parameters:
endTime- The timestamp for the expiration of the tournament
-
setTournamentImage
final TournamentConfig.Builder setTournamentImage(Image image)
Sets the tournament image.
- Parameters:
image- the payload
-
setTournamentPayload
final TournamentConfig.Builder setTournamentPayload(String payload)
Sets the tournament payload.
- Parameters:
payload- the payload
-
build
TournamentConfig build()
-
readFrom
TournamentConfig.Builder readFrom(TournamentConfig model)
-
-
-
-