Exemplo n.º 1
0
 /// <summary>Use this method when the video intially starts playing or is unpaused. This will remove any playback progress if it exists.</summary>
 /// <param name="movieTitle">The movie title</param>
 /// <param name="movieYear">The movie release year</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 <TraktScrobbleMovieResponse> StartMovieAsync(string movieTitle, int?movieYear, float progress, string appVersion = "", DateTime?appDate = null, TraktExtendedOption extended = TraktExtendedOption.Unspecified)
 {
     return(await StartMovieAsync(TraktMovieFactory.FromTitleAndYear(movieTitle, movieYear), progress, appVersion, appDate, extended));
 }
Exemplo n.º 2
0
 /// <summary>Add a new comment to a movie. If you add a review, it needs to be at least 200 words. Also make sure to allow and encourage spoilers to be indicated in your app.</summary>
 /// <param name="movieTitle">The movie title</param>
 /// <param name="movieYear">The movie release year</param>
 /// <param name="comment">The comment</param>
 /// <param name="spoiler">Set to <c>true</c> if the comment contains spoilers</param>
 /// <param name="review">Set to <c>true</c> if the comment is a review</param>
 /// <returns>See summary</returns>
 public async Task <TraktComment> PostMovieCommentAsync(string movieTitle, int?movieYear, string comment, bool?spoiler = null, bool?review = null)
 {
     return(await PostMovieCommentAsync(TraktMovieFactory.FromTitleAndYear(movieTitle, movieYear), comment, spoiler, review));
 }
Exemplo n.º 3
0
 /// <summary>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.</summary>
 /// <param name="movieTitle">The movie title</param>
 /// <param name="movieYear">The movie release year</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>
 /// <remarks>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.</remarks>
 public async Task <TraktCheckinMovieResponse> CheckinMovieAsync(string movieTitle, int?movieYear, TraktSharing sharing = null, string message = "", string venueId = "", string venueName = "", string appVersion = "", DateTime?appDate = null, TraktExtendedOption extended = TraktExtendedOption.Unspecified)
 {
     return(await CheckinMovieAsync(TraktMovieFactory.FromTitleAndYear(movieTitle, movieYear), sharing, message, venueId, venueName, appVersion, appDate, extended));
 }