示例#1
0
        public static Comment GetCommentDetails(int categoryId, int placeId, int CommentId)
        {
            var apiCallTask = ApiCommentHelper.GetCommentDetails(categoryId, placeId, 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 categoryId, int placeId, int commentId)
 {
     var apiCallTask = ApiCommentHelper.DeleteComment(categoryId, placeId, commentId);
 }
示例#3
0
 public static void PutComment(int categoryId, int placeId, Comment comment)
 {
     string jsonComment = JsonConvert.SerializeObject(comment);
     var    apiCallTask = ApiCommentHelper.PutComment(categoryId, placeId, comment.CommentId, jsonComment);
 }