/// <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="name">Name of the list</param> /// <param name="description">Description for this list</param> /// <param name="privacy">Privacy setting for the list</param> /// <param name="displayMembers">Should each item be numbered?</param> /// <param name="allowComments">Are comments allowed?</param> /// <returns>See summary</returns> public async Task <TraktList> UpdateListAsync(string listId, string name, string description = "", TraktPrivacyOption privacy = TraktPrivacyOption.Unspecified, bool?displayMembers = null, bool?allowComments = null) { return(await UpdateListAsync(listId, new TraktListRequestBody { Name = name, Description = description, Privacy = privacy, DisplayNumbers = displayMembers, AllowComments = allowComments })); }
/// <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="name">Name of the list</param> /// <param name="description">Description for this list</param> /// <param name="privacy">Privacy setting for the list</param> /// <param name="displayMembers">Should each item be numbered?</param> /// <param name="allowComments">Are comments allowed?</param> /// <returns>See summary</returns> public async Task <TraktList> UpdateListAsync(int listId, string name, string description = "", TraktPrivacyOption privacy = TraktPrivacyOption.Unspecified, bool?displayMembers = null, bool?allowComments = null) { return(await UpdateListAsync(listId.ToString(CultureInfo.InvariantCulture), name, description, privacy, displayMembers, allowComments)); }