Interface SheetCommentResources


  • public interface SheetCommentResources

    This interface provides methods to access Sheet Comment resources.

    Thread Safety: Implementation of this interface must be thread safe.

    • Method Detail

      • getComment

        Comment getComment​(long sheetId,
                           long commentId)
                    throws SmartsheetException

        Get a comment.

        It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/comments/{commentId}

        Parameters:
        sheetId - the ID of the sheet
        commentId - the ID of the comment
        Returns:
        the comment (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
        Throws:
        SmartsheetException - if there is any other error during the operation
      • deleteComment

        void deleteComment​(long sheetId,
                           long commentId)
                    throws SmartsheetException

        Delete a comment.

        It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/comments/{commentId}

        Parameters:
        sheetId - the ID of the sheet
        commentId - the ID of the comment
        Throws:
        SmartsheetException - if there is any other error during the operation