Package org.openapitools.client.model
Class ContestDTO
java.lang.Object
org.openapitools.client.model.ContestDTO
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-10-22T02:16:26.710079594Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class ContestDTO
extends Object
The new contest to be added.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integerprivate Stringprivate Booleanprivate Stringprivate Integerprivate Stringprivate Integerprivate OffsetDateTimestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ContestDTOCreate an instance of ContestDTO given an JSON stringAway team score.Name of the away team in the contest.This value will be true when the contest is completed and the scores reported can be considered final.Each scheduled contest should have a period of time specified that identifies the duration of the contest. e.g., PT60M, PT2HHome team score.Name of the home team in the contest.getId()A read-only ID assigned by the service during create.Scheduled or completed contests should have a scheduled started time expressed in LocalDateTime with offset from UTC.inthashCode()scheduledStart(OffsetDateTime scheduledStart) voidsetAwayScore(Integer awayScore) voidsetAwayTeam(String awayTeam) voidsetCompleted(Boolean completed) voidsetDuration(String duration) voidsetHomeScore(Integer homeScore) voidsetHomeTeam(String homeTeam) voidsetScheduledStart(OffsetDateTime scheduledStart) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toJson()Convert an instance of ContestDTO to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
id
-
SERIALIZED_NAME_SCHEDULED_START
- See Also:
-
scheduledStart
-
SERIALIZED_NAME_DURATION
- See Also:
-
duration
-
SERIALIZED_NAME_COMPLETED
- See Also:
-
completed
-
SERIALIZED_NAME_HOME_TEAM
- See Also:
-
homeTeam
-
SERIALIZED_NAME_AWAY_TEAM
- See Also:
-
awayTeam
-
SERIALIZED_NAME_HOME_SCORE
- See Also:
-
homeScore
-
SERIALIZED_NAME_AWAY_SCORE
- See Also:
-
awayScore
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContestDTO
public ContestDTO() -
ContestDTO
-
-
Method Details
-
getId
A read-only ID assigned by the service during create.- Returns:
- id
-
scheduledStart
-
getScheduledStart
Scheduled or completed contests should have a scheduled started time expressed in LocalDateTime with offset from UTC.- Returns:
- scheduledStart
-
setScheduledStart
-
duration
-
getDuration
Each scheduled contest should have a period of time specified that identifies the duration of the contest. e.g., PT60M, PT2H- Returns:
- duration
-
setDuration
-
completed
-
getCompleted
This value will be true when the contest is completed and the scores reported can be considered final.- Returns:
- completed
-
setCompleted
-
homeTeam
-
getHomeTeam
Name of the home team in the contest.- Returns:
- homeTeam
-
setHomeTeam
-
awayTeam
-
getAwayTeam
Name of the away team in the contest.- Returns:
- awayTeam
-
setAwayTeam
-
homeScore
-
getHomeScore
Home team score. This will not be valid and may not be supplied prior to the scheduled start time and not complete until the completed field is set to true.- Returns:
- homeScore
-
setHomeScore
-
awayScore
-
getAwayScore
Away team score. This will not be valid and may not be supplied prior to the scheduled start time and not complete until the completed field is set to true.- Returns:
- awayScore
-
setAwayScore
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line). -
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ContestDTO
-
fromJson
Create an instance of ContestDTO given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContestDTO
- Throws:
IOException- if the JSON string is invalid with respect to ContestDTO
-
toJson
Convert an instance of ContestDTO to an JSON string- Returns:
- JSON string
-