All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javastrava.api.SegmentEffortAPI Maven / Gradle / Ivy

The newest version!
package javastrava.api;

import javastrava.api.async.StravaAPICallback;
import javastrava.model.StravaSegmentEffort;
import javastrava.service.exception.NotFoundException;
import retrofit.client.Response;
import retrofit.http.GET;
import retrofit.http.Path;

/**
 * 

* API definition of segment effort services endpoints on the Strava API *

* * @author Dan Shannon * */ public interface SegmentEffortAPI { /** * @see javastrava.service.SegmentEffortService#getSegmentEffort(java.lang.Long) * * @param segmentEffortId * Effort identifier * @return Effort details * @throws NotFoundException * If the effort with the given id doesn't exist */ @GET("/segment_efforts/{id}") public StravaSegmentEffort getSegmentEffort(@Path("id") final Long segmentEffortId) throws NotFoundException; /** * @see javastrava.service.SegmentEffortService#getSegmentEffort(java.lang.Long) * * @param segmentEffortId * Effort identifier * @param callback * The callback to execute on completion * @throws NotFoundException * If the effort with the given id doesn't exist */ @GET("/segment_efforts/{id}") public void getSegmentEffort(@Path("id") final Long segmentEffortId, final StravaAPICallback callback) throws NotFoundException; /** * @see javastrava.service.SegmentEffortService#getSegmentEffort(java.lang.Long) * * @param segmentEffortId * Effort identifier * @return Effort details * @throws NotFoundException * If the effort with the given id doesn't exist */ @GET("/segment_efforts/{id}") public Response getSegmentEffortRaw(@Path("id") final Long segmentEffortId) throws NotFoundException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy