예제 #1
0
        public static Comment GetCommentDetails(int boardId, int postId, int CommentId)
        {
            var apiCallTask = ApiCommentHelper.GetCommentDetails(boardId, postId, CommentId);
            var result      = apiCallTask.Result;

            JObject jsonResponse = JsonConvert.DeserializeObject <JObject>(result);
            Comment comment      = JsonConvert.DeserializeObject <Comment>(jsonResponse.ToString());

            return(comment);
        }
예제 #2
0
 public static void DeleteComment(int boardId, int postId, int commentId)
 {
     var apiCallTask = ApiCommentHelper.DeleteComment(boardId, postId, commentId);
 }
예제 #3
0
 public static void PutComment(int boardId, int postId, Comment comment)
 {
     string jsonComment = JsonConvert.SerializeObject(comment);
     var    apiCallTask = ApiCommentHelper.PutComment(boardId, postId, comment.CommentId, jsonComment);
 }