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

com.sdcalmes.sleeper.Stats Maven / Gradle / Ivy

package com.sdcalmes.sleeper;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

import java.util.Map;

/**
 * The interface Stats.
 */
interface Stats
{

    /**
     * Gets weekly stats.
     *
     * @param season_type the season type
     * @param season      the season
     * @param week        the week
     * @return the weekly stats
     */
    @GET("/stats/nfl/{season_type}/{season}/{week}")
    Call> getWeeklyStats(@Path("season_type") String season_type,
                                           @Path("season") String season,
                                           @Path("week") String week);

    /**
     * Gets season stats.
     *
     * @param season_type the season type
     * @param season      the season
     * @return the season stats
     */
    @GET("/stats/nfl/{season_type}/{season}")
    Call> getSeasonStats(@Path("season_type") String season_type,
                                           @Path("season") String season);


    /**
     * Gets weekly projections.
     *
     * @param season_type the season type
     * @param season      the season
     * @param week        the week
     * @return the weekly projections
     */
    @GET("/projections/nfl/{season_type}/{season}/{week}")
    Call> getWeeklyProjections(@Path("season_type") String season_type,
                                                 @Path("season") String season,
                                                 @Path("week") String week);

    /**
     * Gets season projections.
     *
     * @param season_type the season type
     * @param season      the season
     * @return the season projections
     */
    @GET("/projections/nfl/{season_type}/{season}")
    Call> getSeasonProjections(@Path("season_type") String season_type,
                                                 @Path("season") String season);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy