Ejemplo n.º 1
0
 /// <summary>
 /// Reports (submits a complaint about) a post on a user wall or community wall.
 /// </summary>
 /// <param name="postId">ID of the post to be deleted.</param>
 /// <param name="ownerId">User ID or community ID. Use a negative value to designate a community ID.</param>
 /// <param name="reason"></param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task <Response <bool> > ReportPost(int postId, int ownerId, ReportReasonTypes reason)
 => await Request <bool>("reportPost", new MethodParams
 {
     { "post_id", postId, true },
     { "owner_id", ownerId, true },
     { "reason", (int)reason }
 });
Ejemplo n.º 2
0
 /// <summary>
 /// Reports (submits a complaint about) a comment on a post on a user wall or community wall.
 /// </summary>
 /// <param name="commentId"></param>
 /// <param name="ownerId"></param>
 /// <param name="reason"></param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task <Response <bool> > ReportComment(int commentId, int ownerId, ReportReasonTypes reason)
 => await Request <bool>("restoreComment", new MethodParams
 {
     { "comment_id", commentId, true },
     { "owner_id", ownerId, true },
     { "reason", (int)reason }
 });
Ejemplo n.º 3
0
 /// <summary>
 /// Reports (submits a complaint about) a comment on a post on a user wall or community wall. 
 /// </summary>
 /// <param name="commentId"></param>
 /// <param name="ownerId"></param>
 /// <param name="reason"></param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task<Response<bool>> ReportComment(int commentId, int ownerId, ReportReasonTypes reason)
     => await Request<bool>("restoreComment", new MethodParams
     {
         {"comment_id", commentId, true},
         {"owner_id", ownerId, true},
         {"reason", (int) reason }
     });
Ejemplo n.º 4
0
 /// <summary>
 /// Reports (submits a complaint about) a post on a user wall or community wall. 
 /// </summary>
 /// <param name="postId">ID of the post to be deleted.</param>
 /// <param name="ownerId">User ID or community ID. Use a negative value to designate a community ID.</param>
 /// <param name="reason"></param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task<Response<bool>> ReportPost(int postId, int ownerId, ReportReasonTypes reason)
     => await Request<bool>("reportPost", new MethodParams
     {
         {"post_id", postId, true},
         {"owner_id", ownerId, true},
         {"reason", (int) reason}
     });