Package org.openapitools.client.model
Class ContestDTO
java.lang.Object
org.openapitools.client.model.ContestDTO
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-12-04T04:53:25.428492722Z[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 Integer
private String
private Boolean
private String
private Integer
private String
private Integer
private OffsetDateTime
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ContestDTO
Create 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.Get durationHome 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.int
hashCode()
scheduledStart
(OffsetDateTime scheduledStart) void
setAwayScore
(Integer awayScore) void
setAwayTeam
(String awayTeam) void
setCompleted
(Boolean completed) void
setDuration
(String duration) void
setHomeScore
(Integer homeScore) void
setHomeTeam
(String homeTeam) void
setScheduledStart
(OffsetDateTime scheduledStart) private String
Convert 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 void
validateJsonElement
(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
Get duration- 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
-