net.rrworld.henrikval.gen.model.MatchKill 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.MatchKillAssistantsInner;
import net.rrworld.henrikval.gen.model.MatchKillDamageWeaponAssets;
import net.rrworld.henrikval.gen.model.MatchKillPlayerLocationsOnKillInner;
import net.rrworld.henrikval.gen.model.MatchKillVictimDeathLocation;
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;
/**
* MatchKill
*/
@JsonTypeName("match_kill")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class MatchKill {
private Integer killTimeInRound;
private Integer killTimeInMatch;
private String killerPuuid;
private String killerDisplayName;
private String killerTeam;
private String victimPuuid;
private String victimDisplayName;
private String victimTeam;
private MatchKillVictimDeathLocation victimDeathLocation;
private String damageWeaponId;
private String damageWeaponName;
private MatchKillDamageWeaponAssets damageWeaponAssets;
private Boolean secondaryFireMode;
@Valid
private List<@Valid MatchKillPlayerLocationsOnKillInner> playerLocationsOnKill = new ArrayList<>();
@Valid
private List<@Valid MatchKillAssistantsInner> assistants = new ArrayList<>();
public MatchKill killTimeInRound(Integer killTimeInRound) {
this.killTimeInRound = killTimeInRound;
return this;
}
/**
* Get killTimeInRound
* @return killTimeInRound
*/
@Schema(name = "kill_time_in_round", example = "43163", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("kill_time_in_round")
public Integer getKillTimeInRound() {
return killTimeInRound;
}
public void setKillTimeInRound(Integer killTimeInRound) {
this.killTimeInRound = killTimeInRound;
}
public MatchKill killTimeInMatch(Integer killTimeInMatch) {
this.killTimeInMatch = killTimeInMatch;
return this;
}
/**
* Get killTimeInMatch
* @return killTimeInMatch
*/
@Schema(name = "kill_time_in_match", example = "890501", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("kill_time_in_match")
public Integer getKillTimeInMatch() {
return killTimeInMatch;
}
public void setKillTimeInMatch(Integer killTimeInMatch) {
this.killTimeInMatch = killTimeInMatch;
}
public MatchKill killerPuuid(String killerPuuid) {
this.killerPuuid = killerPuuid;
return this;
}
/**
* Get killerPuuid
* @return killerPuuid
*/
@Schema(name = "killer_puuid", example = "54942ced-1967-5f66-8a16-1e0dae875641", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("killer_puuid")
public String getKillerPuuid() {
return killerPuuid;
}
public void setKillerPuuid(String killerPuuid) {
this.killerPuuid = killerPuuid;
}
public MatchKill killerDisplayName(String killerDisplayName) {
this.killerDisplayName = killerDisplayName;
return this;
}
/**
* Get killerDisplayName
* @return killerDisplayName
*/
@Schema(name = "killer_display_name", example = "Henrik3#EUW3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("killer_display_name")
public String getKillerDisplayName() {
return killerDisplayName;
}
public void setKillerDisplayName(String killerDisplayName) {
this.killerDisplayName = killerDisplayName;
}
public MatchKill killerTeam(String killerTeam) {
this.killerTeam = killerTeam;
return this;
}
/**
* Get killerTeam
* @return killerTeam
*/
@Schema(name = "killer_team", example = "Red", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("killer_team")
public String getKillerTeam() {
return killerTeam;
}
public void setKillerTeam(String killerTeam) {
this.killerTeam = killerTeam;
}
public MatchKill victimPuuid(String victimPuuid) {
this.victimPuuid = victimPuuid;
return this;
}
/**
* Get victimPuuid
* @return victimPuuid
*/
@Schema(name = "victim_puuid", example = "54942ced-1967-5f66-8a16-1e0dae875641", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("victim_puuid")
public String getVictimPuuid() {
return victimPuuid;
}
public void setVictimPuuid(String victimPuuid) {
this.victimPuuid = victimPuuid;
}
public MatchKill victimDisplayName(String victimDisplayName) {
this.victimDisplayName = victimDisplayName;
return this;
}
/**
* Get victimDisplayName
* @return victimDisplayName
*/
@Schema(name = "victim_display_name", example = "Henrik3#EUW3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("victim_display_name")
public String getVictimDisplayName() {
return victimDisplayName;
}
public void setVictimDisplayName(String victimDisplayName) {
this.victimDisplayName = victimDisplayName;
}
public MatchKill victimTeam(String victimTeam) {
this.victimTeam = victimTeam;
return this;
}
/**
* Get victimTeam
* @return victimTeam
*/
@Schema(name = "victim_team", example = "Red", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("victim_team")
public String getVictimTeam() {
return victimTeam;
}
public void setVictimTeam(String victimTeam) {
this.victimTeam = victimTeam;
}
public MatchKill victimDeathLocation(MatchKillVictimDeathLocation victimDeathLocation) {
this.victimDeathLocation = victimDeathLocation;
return this;
}
/**
* Get victimDeathLocation
* @return victimDeathLocation
*/
@Valid
@Schema(name = "victim_death_location", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("victim_death_location")
public MatchKillVictimDeathLocation getVictimDeathLocation() {
return victimDeathLocation;
}
public void setVictimDeathLocation(MatchKillVictimDeathLocation victimDeathLocation) {
this.victimDeathLocation = victimDeathLocation;
}
public MatchKill damageWeaponId(String damageWeaponId) {
this.damageWeaponId = damageWeaponId;
return this;
}
/**
* Get damageWeaponId
* @return damageWeaponId
*/
@Schema(name = "damage_weapon_id", example = "9C82E19D-4575-0200-1A81-3EACF00CF872", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("damage_weapon_id")
public String getDamageWeaponId() {
return damageWeaponId;
}
public void setDamageWeaponId(String damageWeaponId) {
this.damageWeaponId = damageWeaponId;
}
public MatchKill damageWeaponName(String damageWeaponName) {
this.damageWeaponName = damageWeaponName;
return this;
}
/**
* Get damageWeaponName
* @return damageWeaponName
*/
@Schema(name = "damage_weapon_name", example = "Vandal", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("damage_weapon_name")
public String getDamageWeaponName() {
return damageWeaponName;
}
public void setDamageWeaponName(String damageWeaponName) {
this.damageWeaponName = damageWeaponName;
}
public MatchKill damageWeaponAssets(MatchKillDamageWeaponAssets damageWeaponAssets) {
this.damageWeaponAssets = damageWeaponAssets;
return this;
}
/**
* Get damageWeaponAssets
* @return damageWeaponAssets
*/
@Valid
@Schema(name = "damage_weapon_assets", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("damage_weapon_assets")
public MatchKillDamageWeaponAssets getDamageWeaponAssets() {
return damageWeaponAssets;
}
public void setDamageWeaponAssets(MatchKillDamageWeaponAssets damageWeaponAssets) {
this.damageWeaponAssets = damageWeaponAssets;
}
public MatchKill secondaryFireMode(Boolean secondaryFireMode) {
this.secondaryFireMode = secondaryFireMode;
return this;
}
/**
* Get secondaryFireMode
* @return secondaryFireMode
*/
@Schema(name = "secondary_fire_mode", example = "false", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("secondary_fire_mode")
public Boolean getSecondaryFireMode() {
return secondaryFireMode;
}
public void setSecondaryFireMode(Boolean secondaryFireMode) {
this.secondaryFireMode = secondaryFireMode;
}
public MatchKill playerLocationsOnKill(List<@Valid MatchKillPlayerLocationsOnKillInner> playerLocationsOnKill) {
this.playerLocationsOnKill = playerLocationsOnKill;
return this;
}
public MatchKill addPlayerLocationsOnKillItem(MatchKillPlayerLocationsOnKillInner playerLocationsOnKillItem) {
if (this.playerLocationsOnKill == null) {
this.playerLocationsOnKill = new ArrayList<>();
}
this.playerLocationsOnKill.add(playerLocationsOnKillItem);
return this;
}
/**
* Get playerLocationsOnKill
* @return playerLocationsOnKill
*/
@Valid
@Schema(name = "player_locations_on_kill", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("player_locations_on_kill")
public List<@Valid MatchKillPlayerLocationsOnKillInner> getPlayerLocationsOnKill() {
return playerLocationsOnKill;
}
public void setPlayerLocationsOnKill(List<@Valid MatchKillPlayerLocationsOnKillInner> playerLocationsOnKill) {
this.playerLocationsOnKill = playerLocationsOnKill;
}
public MatchKill assistants(List<@Valid MatchKillAssistantsInner> assistants) {
this.assistants = assistants;
return this;
}
public MatchKill addAssistantsItem(MatchKillAssistantsInner 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 MatchKillAssistantsInner> getAssistants() {
return assistants;
}
public void setAssistants(List<@Valid MatchKillAssistantsInner> assistants) {
this.assistants = assistants;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MatchKill matchKill = (MatchKill) o;
return Objects.equals(this.killTimeInRound, matchKill.killTimeInRound) &&
Objects.equals(this.killTimeInMatch, matchKill.killTimeInMatch) &&
Objects.equals(this.killerPuuid, matchKill.killerPuuid) &&
Objects.equals(this.killerDisplayName, matchKill.killerDisplayName) &&
Objects.equals(this.killerTeam, matchKill.killerTeam) &&
Objects.equals(this.victimPuuid, matchKill.victimPuuid) &&
Objects.equals(this.victimDisplayName, matchKill.victimDisplayName) &&
Objects.equals(this.victimTeam, matchKill.victimTeam) &&
Objects.equals(this.victimDeathLocation, matchKill.victimDeathLocation) &&
Objects.equals(this.damageWeaponId, matchKill.damageWeaponId) &&
Objects.equals(this.damageWeaponName, matchKill.damageWeaponName) &&
Objects.equals(this.damageWeaponAssets, matchKill.damageWeaponAssets) &&
Objects.equals(this.secondaryFireMode, matchKill.secondaryFireMode) &&
Objects.equals(this.playerLocationsOnKill, matchKill.playerLocationsOnKill) &&
Objects.equals(this.assistants, matchKill.assistants);
}
@Override
public int hashCode() {
return Objects.hash(killTimeInRound, killTimeInMatch, killerPuuid, killerDisplayName, killerTeam, victimPuuid, victimDisplayName, victimTeam, victimDeathLocation, damageWeaponId, damageWeaponName, damageWeaponAssets, secondaryFireMode, playerLocationsOnKill, assistants);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MatchKill {\n");
sb.append(" killTimeInRound: ").append(toIndentedString(killTimeInRound)).append("\n");
sb.append(" killTimeInMatch: ").append(toIndentedString(killTimeInMatch)).append("\n");
sb.append(" killerPuuid: ").append(toIndentedString(killerPuuid)).append("\n");
sb.append(" killerDisplayName: ").append(toIndentedString(killerDisplayName)).append("\n");
sb.append(" killerTeam: ").append(toIndentedString(killerTeam)).append("\n");
sb.append(" victimPuuid: ").append(toIndentedString(victimPuuid)).append("\n");
sb.append(" victimDisplayName: ").append(toIndentedString(victimDisplayName)).append("\n");
sb.append(" victimTeam: ").append(toIndentedString(victimTeam)).append("\n");
sb.append(" victimDeathLocation: ").append(toIndentedString(victimDeathLocation)).append("\n");
sb.append(" damageWeaponId: ").append(toIndentedString(damageWeaponId)).append("\n");
sb.append(" damageWeaponName: ").append(toIndentedString(damageWeaponName)).append("\n");
sb.append(" damageWeaponAssets: ").append(toIndentedString(damageWeaponAssets)).append("\n");
sb.append(" secondaryFireMode: ").append(toIndentedString(secondaryFireMode)).append("\n");
sb.append(" playerLocationsOnKill: ").append(toIndentedString(playerLocationsOnKill)).append("\n");
sb.append(" assistants: ").append(toIndentedString(assistants)).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 ");
}
}