net.rrworld.henrikval.gen.model.V4MatchKillsInner 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 java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.rrworld.henrikval.gen.model.V4MatchKillsInnerWeapon;
import net.rrworld.henrikval.gen.model.V4MatchLocation;
import net.rrworld.henrikval.gen.model.V4MatchRoundPlayer;
import net.rrworld.henrikval.gen.model.V4MatchRoundsPlayerLocation;
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;
/**
* V4MatchKillsInner
*/
@JsonTypeName("v4_match_kills_inner")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class V4MatchKillsInner {
private Integer round;
private Integer timeInRoundInMs;
private Integer timeInMatchInMs;
private V4MatchRoundPlayer killer;
private V4MatchRoundPlayer victim;
@Valid
private List<@Valid V4MatchRoundPlayer> assistants = new ArrayList<>();
private V4MatchLocation location = null;
private V4MatchKillsInnerWeapon weapon;
private Boolean secondaryFireMode;
@Valid
private List<@Valid V4MatchRoundsPlayerLocation> playerLocations = new ArrayList<>();
public V4MatchKillsInner round(Integer round) {
this.round = round;
return this;
}
/**
* Get round
* @return round
*/
@Schema(name = "round", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("round")
public Integer getRound() {
return round;
}
public void setRound(Integer round) {
this.round = round;
}
public V4MatchKillsInner timeInRoundInMs(Integer timeInRoundInMs) {
this.timeInRoundInMs = timeInRoundInMs;
return this;
}
/**
* Get timeInRoundInMs
* @return timeInRoundInMs
*/
@Schema(name = "time_in_round_in_ms", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("time_in_round_in_ms")
public Integer getTimeInRoundInMs() {
return timeInRoundInMs;
}
public void setTimeInRoundInMs(Integer timeInRoundInMs) {
this.timeInRoundInMs = timeInRoundInMs;
}
public V4MatchKillsInner timeInMatchInMs(Integer timeInMatchInMs) {
this.timeInMatchInMs = timeInMatchInMs;
return this;
}
/**
* Get timeInMatchInMs
* @return timeInMatchInMs
*/
@Schema(name = "time_in_match_in_ms", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("time_in_match_in_ms")
public Integer getTimeInMatchInMs() {
return timeInMatchInMs;
}
public void setTimeInMatchInMs(Integer timeInMatchInMs) {
this.timeInMatchInMs = timeInMatchInMs;
}
public V4MatchKillsInner killer(V4MatchRoundPlayer killer) {
this.killer = killer;
return this;
}
/**
* Get killer
* @return killer
*/
@Valid
@Schema(name = "killer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("killer")
public V4MatchRoundPlayer getKiller() {
return killer;
}
public void setKiller(V4MatchRoundPlayer killer) {
this.killer = killer;
}
public V4MatchKillsInner victim(V4MatchRoundPlayer victim) {
this.victim = victim;
return this;
}
/**
* Get victim
* @return victim
*/
@Valid
@Schema(name = "victim", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("victim")
public V4MatchRoundPlayer getVictim() {
return victim;
}
public void setVictim(V4MatchRoundPlayer victim) {
this.victim = victim;
}
public V4MatchKillsInner assistants(List<@Valid V4MatchRoundPlayer> assistants) {
this.assistants = assistants;
return this;
}
public V4MatchKillsInner addAssistantsItem(V4MatchRoundPlayer assistantsItem) {
if (this.assistants == null) {
this.assistants = new ArrayList<>();
}
this.assistants.add(assistantsItem);
return this;
}
/**
* Get assistants
* @return assistants
*/
@Valid
@Schema(name = "assistants", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("assistants")
public List<@Valid V4MatchRoundPlayer> getAssistants() {
return assistants;
}
public void setAssistants(List<@Valid V4MatchRoundPlayer> assistants) {
this.assistants = assistants;
}
public V4MatchKillsInner location(V4MatchLocation location) {
this.location = location;
return this;
}
/**
* Get location
* @return location
*/
@Valid
@Schema(name = "location", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("location")
public V4MatchLocation getLocation() {
return location;
}
public void setLocation(V4MatchLocation location) {
this.location = location;
}
public V4MatchKillsInner weapon(V4MatchKillsInnerWeapon weapon) {
this.weapon = weapon;
return this;
}
/**
* Get weapon
* @return weapon
*/
@Valid
@Schema(name = "weapon", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("weapon")
public V4MatchKillsInnerWeapon getWeapon() {
return weapon;
}
public void setWeapon(V4MatchKillsInnerWeapon weapon) {
this.weapon = weapon;
}
public V4MatchKillsInner secondaryFireMode(Boolean secondaryFireMode) {
this.secondaryFireMode = secondaryFireMode;
return this;
}
/**
* Get secondaryFireMode
* @return secondaryFireMode
*/
@Schema(name = "secondary_fire_mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("secondary_fire_mode")
public Boolean getSecondaryFireMode() {
return secondaryFireMode;
}
public void setSecondaryFireMode(Boolean secondaryFireMode) {
this.secondaryFireMode = secondaryFireMode;
}
public V4MatchKillsInner playerLocations(List<@Valid V4MatchRoundsPlayerLocation> playerLocations) {
this.playerLocations = playerLocations;
return this;
}
public V4MatchKillsInner addPlayerLocationsItem(V4MatchRoundsPlayerLocation playerLocationsItem) {
if (this.playerLocations == null) {
this.playerLocations = new ArrayList<>();
}
this.playerLocations.add(playerLocationsItem);
return this;
}
/**
* Get playerLocations
* @return playerLocations
*/
@Valid
@Schema(name = "player_locations", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("player_locations")
public List<@Valid V4MatchRoundsPlayerLocation> getPlayerLocations() {
return playerLocations;
}
public void setPlayerLocations(List<@Valid V4MatchRoundsPlayerLocation> playerLocations) {
this.playerLocations = playerLocations;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V4MatchKillsInner v4MatchKillsInner = (V4MatchKillsInner) o;
return Objects.equals(this.round, v4MatchKillsInner.round) &&
Objects.equals(this.timeInRoundInMs, v4MatchKillsInner.timeInRoundInMs) &&
Objects.equals(this.timeInMatchInMs, v4MatchKillsInner.timeInMatchInMs) &&
Objects.equals(this.killer, v4MatchKillsInner.killer) &&
Objects.equals(this.victim, v4MatchKillsInner.victim) &&
Objects.equals(this.assistants, v4MatchKillsInner.assistants) &&
Objects.equals(this.location, v4MatchKillsInner.location) &&
Objects.equals(this.weapon, v4MatchKillsInner.weapon) &&
Objects.equals(this.secondaryFireMode, v4MatchKillsInner.secondaryFireMode) &&
Objects.equals(this.playerLocations, v4MatchKillsInner.playerLocations);
}
@Override
public int hashCode() {
return Objects.hash(round, timeInRoundInMs, timeInMatchInMs, killer, victim, assistants, location, weapon, secondaryFireMode, playerLocations);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V4MatchKillsInner {\n");
sb.append(" round: ").append(toIndentedString(round)).append("\n");
sb.append(" timeInRoundInMs: ").append(toIndentedString(timeInRoundInMs)).append("\n");
sb.append(" timeInMatchInMs: ").append(toIndentedString(timeInMatchInMs)).append("\n");
sb.append(" killer: ").append(toIndentedString(killer)).append("\n");
sb.append(" victim: ").append(toIndentedString(victim)).append("\n");
sb.append(" assistants: ").append(toIndentedString(assistants)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" weapon: ").append(toIndentedString(weapon)).append("\n");
sb.append(" secondaryFireMode: ").append(toIndentedString(secondaryFireMode)).append("\n");
sb.append(" playerLocations: ").append(toIndentedString(playerLocations)).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 ");
}
}