com.ziqni.admin.sdk.model.Bracket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces.
*
* The version of the OpenAPI document: 3.0.11
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.ContestReduced;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Bracket
*/
@JsonPropertyOrder({
Bracket.JSON_PROPERTY_ROUNDS,
Bracket.JSON_PROPERTY_CONTESTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Bracket {
public static final String JSON_PROPERTY_ROUNDS = "rounds";
private Integer rounds;
public static final String JSON_PROPERTY_CONTESTS = "contests";
private List contests = new ArrayList<>();
public Bracket rounds(Integer rounds) {
this.rounds = rounds;
return this;
}
/**
* Number of rounds to be played in a competition
* @return rounds
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "Number of rounds to be played in a competition")
@JsonProperty(JSON_PROPERTY_ROUNDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getRounds() {
return rounds;
}
@JsonProperty(JSON_PROPERTY_ROUNDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRounds(Integer rounds) {
this.rounds = rounds;
}
public Bracket contests(List contests) {
this.contests = contests;
return this;
}
public Bracket addContestsItem(ContestReduced contestsItem) {
this.contests.add(contestsItem);
return this;
}
/**
* Get contests
* @return contests
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CONTESTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getContests() {
return contests;
}
@JsonProperty(JSON_PROPERTY_CONTESTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setContests(List contests) {
this.contests = contests;
}
/**
* Return true if this Bracket object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Bracket bracket = (Bracket) o;
return Objects.equals(this.rounds, bracket.rounds) &&
Objects.equals(this.contests, bracket.contests);
}
@Override
public int hashCode() {
return Objects.hash(rounds, contests);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Bracket {\n");
sb.append(" rounds: ").append(toIndentedString(rounds)).append("\n");
sb.append(" contests: ").append(toIndentedString(contests)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy