net.rrworld.henrikval.gen.model.Team Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of henrikapi-val-client Show documentation
Show all versions of henrikapi-val-client Show documentation
Valorant Java client based on HenrikDev-API
The newest version!
package net.rrworld.henrikval.gen.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import net.rrworld.henrikval.gen.model.TeamRoaster;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
import javax.annotation.Generated;
/**
* Team
*/
@JsonTypeName("team")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class Team {
private Boolean hasWon = null;
private Integer roundsWon = null;
private Integer roundsLost = null;
private TeamRoaster roaster = null;
public Team hasWon(Boolean hasWon) {
this.hasWon = hasWon;
return this;
}
/**
* Get hasWon
* @return hasWon
*/
@Schema(name = "has_won", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("has_won")
public Boolean getHasWon() {
return hasWon;
}
public void setHasWon(Boolean hasWon) {
this.hasWon = hasWon;
}
public Team roundsWon(Integer roundsWon) {
this.roundsWon = roundsWon;
return this;
}
/**
* Get roundsWon
* @return roundsWon
*/
@Schema(name = "rounds_won", example = "13", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("rounds_won")
public Integer getRoundsWon() {
return roundsWon;
}
public void setRoundsWon(Integer roundsWon) {
this.roundsWon = roundsWon;
}
public Team roundsLost(Integer roundsLost) {
this.roundsLost = roundsLost;
return this;
}
/**
* Get roundsLost
* @return roundsLost
*/
@Schema(name = "rounds_lost", example = "10", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("rounds_lost")
public Integer getRoundsLost() {
return roundsLost;
}
public void setRoundsLost(Integer roundsLost) {
this.roundsLost = roundsLost;
}
public Team roaster(TeamRoaster roaster) {
this.roaster = roaster;
return this;
}
/**
* Get roaster
* @return roaster
*/
@Valid
@Schema(name = "roaster", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("roaster")
public TeamRoaster getRoaster() {
return roaster;
}
public void setRoaster(TeamRoaster roaster) {
this.roaster = roaster;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Team team = (Team) o;
return Objects.equals(this.hasWon, team.hasWon) &&
Objects.equals(this.roundsWon, team.roundsWon) &&
Objects.equals(this.roundsLost, team.roundsLost) &&
Objects.equals(this.roaster, team.roaster);
}
@Override
public int hashCode() {
return Objects.hash(hasWon, roundsWon, roundsLost, roaster);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Team {\n");
sb.append(" hasWon: ").append(toIndentedString(hasWon)).append("\n");
sb.append(" roundsWon: ").append(toIndentedString(roundsWon)).append("\n");
sb.append(" roundsLost: ").append(toIndentedString(roundsLost)).append("\n");
sb.append(" roaster: ").append(toIndentedString(roaster)).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 ");
}
}