Exemplo n.º 1
0
 /// <summary>
 /// Deletes current post if user is the post's creator or marks the post as inappropriate
 /// </summary>
 /// <returns>Request result</returns>
 /// <exception cref="LinkedInInvalidOperationException">Thrown when user attempts to delete the post which is not marked as available for this action</exception>
 public LinkedInResponse <bool> Delete()
 {
     if (!AvailableAction[LinkedInGroupPostAction.FlagAsInappropriate])
     {
         throw new LinkedInInvalidOperationException("Deletion of current post is not available");
     }
     return(RequestRunner.DeletePost(Id));
 }