Package org.openapitools.client.model
Class ContestListDTO
java.lang.Object
org.openapitools.client.model.ContestListDTO
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-12-04T04:53:25.428492722Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class ContestListDTO
extends Object
This class represents a page of contests.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContestsItem
(ContestDTO contestsItem) contests
(List<ContestDTO> contests) boolean
static ContestListDTO
Create an instance of ContestListDTO given an JSON string${api.model.ContestListDTO.contests}getCount()
The number of elements in the contest field.Used as a description of the query used to obtain the contests.getLimit()
Maximum number of elements the page was originally requested to have.Offset from the beginning of the collection of contests on the server.getTotal()
Total number of contests that are available, that matched the original query but may not have been returned because of paging limits set.int
hashCode()
void
setContests
(List<ContestDTO> contests) void
void
setKeywords
(String keywords) void
void
void
private String
Convert the given object to string with each line indented by 4 spaces (except the first line).toJson()
Convert an instance of ContestListDTO 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_OFFSET
- See Also:
-
offset
-
SERIALIZED_NAME_LIMIT
- See Also:
-
limit
-
SERIALIZED_NAME_TOTAL
- See Also:
-
total
-
SERIALIZED_NAME_KEYWORDS
- See Also:
-
keywords
-
SERIALIZED_NAME_CONTESTS
- See Also:
-
contests
-
SERIALIZED_NAME_COUNT
- See Also:
-
count
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContestListDTO
public ContestListDTO()
-
-
Method Details
-
offset
-
getOffset
Offset from the beginning of the collection of contests on the server.- Returns:
- offset
-
setOffset
-
limit
-
getLimit
Maximum number of elements the page was originally requested to have.- Returns:
- limit
-
setLimit
-
total
-
getTotal
Total number of contests that are available, that matched the original query but may not have been returned because of paging limits set.- Returns:
- total
-
setTotal
-
keywords
-
getKeywords
Used as a description of the query used to obtain the contests.- Returns:
- keywords
-
setKeywords
-
contests
-
addContestsItem
-
getContests
${api.model.ContestListDTO.contests}- Returns:
- contests
-
setContests
-
count
-
getCount
The number of elements in the contest field.- Returns:
- count
-
setCount
-
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 ContestListDTO
-
fromJson
Create an instance of ContestListDTO given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ContestListDTO
- Throws:
IOException
- if the JSON string is invalid with respect to ContestListDTO
-
toJson
Convert an instance of ContestListDTO to an JSON string- Returns:
- JSON string
-