예제 #1
0
 /// <summary>
 ///     Sends a request to the Pixiv to add it to the bookmark
 /// </summary>
 /// <param name="id">The ID of the illustration which needs to be bookmarked</param>
 /// <param name="privacyPolicy">Indicates the privacy of the the illustration in the bookmark</param>
 /// <returns>A <see cref="Task" /> represents the operation</returns>
 public Task PostBookmarkAsync(string id, PrivacyPolicy privacyPolicy)
 {
     EnsureNotCancelled();
     return Resolve<IAppApiEndPoint>().AddBookmarkAsync(new AddBookmarkRequest(privacyPolicy.GetDescription(), id));
 }
예제 #2
0
 public Task PostFollowUserAsync(string id, PrivacyPolicy privacyPolicy)
 {
     EnsureNotCancelled();
     return Resolve<IAppApiEndPoint>().FollowUserAsync(new FollowUserRequest(id, privacyPolicy.GetDescription()));
 }