Esempio n. 1
0
 /// <summary>Create a new custom list. The name is the only required field, but the other info is recommended to ask for.</summary>
 /// <param name="list">The list</param>
 /// <returns>See summary</returns>
 public async Task <TraktList> CreateListAsync(TraktListRequestBody list)
 {
     return(await SendAsync(new TraktUsersListsAddRequest(Client) {
         RequestBody = list,
         Username = _me                 //From Justin Nemeth: You can only create lists for yourself, for now anyway.
     }));
 }
Esempio n. 2
0
 /// <summary>Update a custom list by sending 1 or more parameters. If you update the list name, the original slug will still be retained so existing references to this list won't break.</summary>
 /// <param name="listId">The list ID</param>
 /// <param name="list">The list</param>
 /// <returns>See summary</returns>
 public async Task <TraktList> UpdateListAsync(int listId, TraktListRequestBody list)
 {
     return(await UpdateListAsync(listId.ToString(CultureInfo.InvariantCulture), list));
 }