Exemplo n.º 1
0
 /// <summary>
 /// Add a Comment To a discussion.
 ///
 /// It mirrors To the following Smartsheet REST API method: POST /discussion/{DiscussionId}/Comments
 ///
 /// Exceptions:
 ///   IllegalArgumentException : if any argument is null
 ///   InvalidRequestException : if there is any problem with the REST API request
 ///   AuthorizationException : if there is any problem with the REST API authorization(access token)
 ///   ServiceUnavailableException : if the REST API service is not available (possibly due To rate limiting)
 ///   SmartsheetRestException : if there is any other REST API related error occurred during the operation
 ///   SmartsheetException : if there is any other error occurred during the operation
 /// </summary>
 /// <param name="id"> the discussion ID </param>
 /// <param name="comment"> the Comment To add, limited To the following required attributes: Text </param>
 /// <returns> the created Comment </returns>
 /// <exception cref="SmartsheetException"> the Smartsheet exception </exception>
 public virtual Comment AddDiscussionComment(long id, Comment comment)
 {
     return(this.CreateResource("discussion/" + id + "/comments", typeof(Comment), comment));
 }
 public virtual Comment AddDiscussionComment(long id, Comment comment)
 {
     throw new NotSupportedException();
 }
 public virtual Comment AddDiscussionComment(long id, Comment comment)
 {
     throw new NotSupportedException();
 }