Example #1
0
 /// <summary>
 /// Get suggestion fro particular movie
 /// </summary>
 /// <param name="movieID">YTS movie id</param>
 /// <returns>Collection of SuggestionMovie class objects</returns>
 /// <exception cref="YifyLib.YifyException">If any errors occurred YTS process</exception>
 public List <SuggestionMovie> GetMovieSuggestion(int movieID)
 {
     try
     {
         var uri = YifyAPI.GetMovieSuggestionsURI(movieID);
         var res = YifyAPI.SendGetRequest(uri);
         return(_parser.ParseGetMovieSuggestionResponse(res));
     }
     catch (Exception ex)
     {
         throw new YifyException("An error occurred. See inner exception for more details", ex);
     }
 }