io.github.jfermat.strava.model.TimedZoneRange Maven / Gradle / Ivy
/*
* Strava API v3
* The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with different endpoints depending on the authorization scope you receive from your athletes. To use the Playground, go to https://www.strava.com/settings/api and change your “Authorization Callback Domain” to developers.strava.com. Please note, we only support Swagger 2.0. There is a known issue where you can only select one scope at a time. For more information, please check the section “client code” at https://developers.strava.com/docs.
*
* OpenAPI spec version: 3.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.github.jfermat.strava.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.github.jfermat.strava.model.ZoneRange;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* A union type representing the time spent in a given zone.
*/
@Schema(description = "A union type representing the time spent in a given zone.")
public class TimedZoneRange extends ZoneRange {
@JsonProperty("time")
private Integer time = null;
public TimedZoneRange time(Integer time) {
this.time = time;
return this;
}
/**
* The number of seconds spent in this zone
* @return time
**/
@Schema(description = "The number of seconds spent in this zone")
public Integer getTime() {
return time;
}
public void setTime(Integer time) {
this.time = time;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimedZoneRange timedZoneRange = (TimedZoneRange) o;
return Objects.equals(this.time, timedZoneRange.time) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(time, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimedZoneRange {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" time: ").append(toIndentedString(time)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}