
io.github.jfermat.strava.model.Split Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of strava-api-client-resttemplate Show documentation
Show all versions of strava-api-client-resttemplate Show documentation
Strava's API client with RestTemplate's library.
/*
* 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.swagger.v3.oas.annotations.media.Schema;
/**
* Split
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2021-01-10T09:15:14.081+01:00[Europe/Paris]")
public class Split {
@JsonProperty("average_speed")
private Float averageSpeed = null;
@JsonProperty("distance")
private Float distance = null;
@JsonProperty("elapsed_time")
private Integer elapsedTime = null;
@JsonProperty("elevation_difference")
private Float elevationDifference = null;
@JsonProperty("pace_zone")
private Integer paceZone = null;
@JsonProperty("moving_time")
private Integer movingTime = null;
@JsonProperty("split")
private Integer split = null;
public Split averageSpeed(Float averageSpeed) {
this.averageSpeed = averageSpeed;
return this;
}
/**
* The average speed of this split, in meters per second
* @return averageSpeed
**/
@Schema(description = "The average speed of this split, in meters per second")
public Float getAverageSpeed() {
return averageSpeed;
}
public void setAverageSpeed(Float averageSpeed) {
this.averageSpeed = averageSpeed;
}
public Split distance(Float distance) {
this.distance = distance;
return this;
}
/**
* The distance of this split, in meters
* @return distance
**/
@Schema(description = "The distance of this split, in meters")
public Float getDistance() {
return distance;
}
public void setDistance(Float distance) {
this.distance = distance;
}
public Split elapsedTime(Integer elapsedTime) {
this.elapsedTime = elapsedTime;
return this;
}
/**
* The elapsed time of this split, in seconds
* @return elapsedTime
**/
@Schema(description = "The elapsed time of this split, in seconds")
public Integer getElapsedTime() {
return elapsedTime;
}
public void setElapsedTime(Integer elapsedTime) {
this.elapsedTime = elapsedTime;
}
public Split elevationDifference(Float elevationDifference) {
this.elevationDifference = elevationDifference;
return this;
}
/**
* The elevation difference of this split, in meters
* @return elevationDifference
**/
@Schema(description = "The elevation difference of this split, in meters")
public Float getElevationDifference() {
return elevationDifference;
}
public void setElevationDifference(Float elevationDifference) {
this.elevationDifference = elevationDifference;
}
public Split paceZone(Integer paceZone) {
this.paceZone = paceZone;
return this;
}
/**
* The pacing zone of this split
* @return paceZone
**/
@Schema(description = "The pacing zone of this split")
public Integer getPaceZone() {
return paceZone;
}
public void setPaceZone(Integer paceZone) {
this.paceZone = paceZone;
}
public Split movingTime(Integer movingTime) {
this.movingTime = movingTime;
return this;
}
/**
* The moving time of this split, in seconds
* @return movingTime
**/
@Schema(description = "The moving time of this split, in seconds")
public Integer getMovingTime() {
return movingTime;
}
public void setMovingTime(Integer movingTime) {
this.movingTime = movingTime;
}
public Split split(Integer split) {
this.split = split;
return this;
}
/**
* N/A
* @return split
**/
@Schema(description = "N/A")
public Integer getSplit() {
return split;
}
public void setSplit(Integer split) {
this.split = split;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Split split = (Split) o;
return Objects.equals(this.averageSpeed, split.averageSpeed) &&
Objects.equals(this.distance, split.distance) &&
Objects.equals(this.elapsedTime, split.elapsedTime) &&
Objects.equals(this.elevationDifference, split.elevationDifference) &&
Objects.equals(this.paceZone, split.paceZone) &&
Objects.equals(this.movingTime, split.movingTime) &&
Objects.equals(this.split, split.split);
}
@Override
public int hashCode() {
return Objects.hash(averageSpeed, distance, elapsedTime, elevationDifference, paceZone, movingTime, split);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Split {\n");
sb.append(" averageSpeed: ").append(toIndentedString(averageSpeed)).append("\n");
sb.append(" distance: ").append(toIndentedString(distance)).append("\n");
sb.append(" elapsedTime: ").append(toIndentedString(elapsedTime)).append("\n");
sb.append(" elevationDifference: ").append(toIndentedString(elevationDifference)).append("\n");
sb.append(" paceZone: ").append(toIndentedString(paceZone)).append("\n");
sb.append(" movingTime: ").append(toIndentedString(movingTime)).append("\n");
sb.append(" split: ").append(toIndentedString(split)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy