Ejemplo n.º 1
0
        public bool DeleteComment(int commentID)
        {
            this.CheckAppKey();
            this.CheckLoggedIn();

            if (commentID < 0)
            {
                throw new ArgumentException("Comment id should be greater than 0.");
            }
            else
            {
                try
                {
                    var req  = YifyAPI.GetDeleteCommentReqeust(this.appKey, this.userKey, commentID);
                    var res  = YifyAPI.SendPostRequest(req);
                    var xDoc = _parser.ToResponse(res);
                    return(true);
                }
                catch (Exception ex) { throw new YifyException("An error occurred. See inner exception for more details", ex); }
            }
        }