Example #1
0
 /// <summary>
 /// Use this method when the video is stopped or finishes playing on its own. If the progress is above 80%, the video will be scrobbled and the action will be set to scrobble.
 /// If the progress is less than 80%, it will be treated as a pause and the action will be set to pause. The playback progress will be saved and
 /// <see cref="TraktSyncModule.GetPlaybackStateAsync"/> can be used to resume the video from this exact position.
 /// </summary>
 /// <param name="showTitle">The show title</param>
 /// <param name="showYear">The show release year (first season)</param>
 /// <param name="seasonNumber">The season number</param>
 /// <param name="episodeNumber">The episode number within the specified season</param>
 /// <param name="progress">The user's current playback progress through this item as a percentage between 0 and 100</param>
 /// <param name="appVersion">Version number of the app</param>
 /// <param name="appDate">Build date of the app</param>
 /// <param name="extended">Changes which properties are populated for standard media objects. By default, minimal data is returned. Change this if additional fields are required in the returned data.</param>
 /// <returns>See summary</returns>
 public async Task <TraktScrobbleEpisodeResponse> StopEpisodeAsync(string showTitle, int?showYear, int seasonNumber, int episodeNumber, float progress, string appVersion = "", DateTime?appDate = null, TraktExtendedOption extended = TraktExtendedOption.Unspecified)
 {
     return(await StopEpisodeAsync(TraktEpisodeFactory.FromSeasonAndEpisodeNumber(seasonNumber, episodeNumber), TraktShowFactory.FromTitleAndYear(showTitle, showYear), progress, appVersion, appDate, extended));
 }
Example #2
0
 /// <summary>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.</summary>
 /// <param name="showTitle">The show title</param>
 /// <param name="showYear">The show release year (first season)</param>
 /// <param name="seasonNumber">The season number</param>
 /// <param name="episodeNumber">The episode number within the specified season</param>
 /// <param name="sharing">Control sharing to any connected social networks</param>
 /// <param name="message">Message used for sharing. If not sent, it will use the watching string in the user settings.</param>
 /// <param name="venueId">Foursquare venue ID</param>
 /// <param name="venueName">Foursquare venue name</param>
 /// <param name="appVersion">Version number of the app</param>
 /// <param name="appDate">Build date of the app</param>
 /// <param name="extended">Changes which properties are populated for standard media objects. By default, minimal data is returned. Change this if additional fields are required in the returned data.</param>
 /// <returns>See summary</returns>
 public async Task <TraktCheckinEpisodeResponse> CheckinEpisodeAsync(string showTitle, int?showYear, int seasonNumber, int episodeNumber, TraktSharing sharing = null, string message = "", string venueId = "", string venueName = "", string appVersion = "", DateTime?appDate = null, TraktExtendedOption extended = TraktExtendedOption.Unspecified)
 {
     return(await CheckinEpisodeAsync(TraktEpisodeFactory.FromSeasonAndEpisodeNumber(seasonNumber, episodeNumber), TraktShowFactory.FromTitleAndYear(showTitle, showYear), sharing, message, venueId, venueName, appVersion, appDate, extended));
 }