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

com.uwetrottmann.trakt5.services.Checkin Maven / Gradle / Ivy

package com.uwetrottmann.trakt5.services;

import com.uwetrottmann.trakt5.entities.EpisodeCheckin;
import com.uwetrottmann.trakt5.entities.EpisodeCheckinResponse;
import com.uwetrottmann.trakt5.entities.MovieCheckin;
import com.uwetrottmann.trakt5.entities.MovieCheckinResponse;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.POST;

public interface Checkin {

    /**
     * OAuth Required
     *
     * 

Check into an episode. This should be tied to a user action to manually indicate they are watching something. * The item will display as watching on the site, then automatically switch to watched status once the duration has * elapsed. */ @POST("checkin") Call checkin( @Body EpisodeCheckin episodeCheckin ); /** * OAuth Required * *

Check into a movie. This should be tied to a user action to manually indicate they are watching something. * The item will display as watching on the site, then automatically switch to watched status once the duration has * elapsed. */ @POST("checkin") Call checkin( @Body MovieCheckin movieCheckin ); /** * OAuth Required * *

Removes any active checkins, no need to provide a specific item. */ @DELETE("checkin") Call deleteActiveCheckin(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy