net.rrworld.henrikval.gen.model.PlayerSessionPlaytime 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.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;
/**
* PlayerSessionPlaytime
*/
@JsonTypeName("player_session_playtime")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class PlayerSessionPlaytime {
private Integer minutes;
private Integer seconds;
private Integer milliseconds;
public PlayerSessionPlaytime minutes(Integer minutes) {
this.minutes = minutes;
return this;
}
/**
* Get minutes
* @return minutes
*/
@Schema(name = "minutes", example = "26", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("minutes")
public Integer getMinutes() {
return minutes;
}
public void setMinutes(Integer minutes) {
this.minutes = minutes;
}
public PlayerSessionPlaytime seconds(Integer seconds) {
this.seconds = seconds;
return this;
}
/**
* Get seconds
* @return seconds
*/
@Schema(name = "seconds", example = "1560", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("seconds")
public Integer getSeconds() {
return seconds;
}
public void setSeconds(Integer seconds) {
this.seconds = seconds;
}
public PlayerSessionPlaytime milliseconds(Integer milliseconds) {
this.milliseconds = milliseconds;
return this;
}
/**
* Get milliseconds
* @return milliseconds
*/
@Schema(name = "milliseconds", example = "1560000", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("milliseconds")
public Integer getMilliseconds() {
return milliseconds;
}
public void setMilliseconds(Integer milliseconds) {
this.milliseconds = milliseconds;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PlayerSessionPlaytime playerSessionPlaytime = (PlayerSessionPlaytime) o;
return Objects.equals(this.minutes, playerSessionPlaytime.minutes) &&
Objects.equals(this.seconds, playerSessionPlaytime.seconds) &&
Objects.equals(this.milliseconds, playerSessionPlaytime.milliseconds);
}
@Override
public int hashCode() {
return Objects.hash(minutes, seconds, milliseconds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PlayerSessionPlaytime {\n");
sb.append(" minutes: ").append(toIndentedString(minutes)).append("\n");
sb.append(" seconds: ").append(toIndentedString(seconds)).append("\n");
sb.append(" milliseconds: ").append(toIndentedString(milliseconds)).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 ");
}
}