Exemple #1
0
 /// <summary>
 /// Removes a post from the user's favorites. Trying to remove a post that does
 /// not exist or is not a favorite, will silently 'fail'.
 /// </summary>
 /// <exception cref="E621ClientNotAuthenticatedException"></exception>
 public Task RemoveFavoriteAsync(Post post) =>
 RemoveFavoriteAsync(post.Id);
Exemple #2
0
 /// <summary>
 /// Adds a post to the user's favorites. Trying to add a post that does
 /// not exist or is already a favorite, will silently 'fail'.
 /// </summary>
 /// <exception cref="E621ClientNotAuthenticatedException"></exception>
 public Task AddFavoriteAsync(Post post) =>
 AddFavoriteAsync(post.Id);