CommentsModule
public class CommentsModule
Provides Comment management
-
Get information about a comment.
Declaration
Parameters
commentId
The ID of the comment on which to retrieve information.
fields
completion
Returns a Comment response object if successful otherwise a BoxSDKError.
-
Updates the message for a comment.
Declaration
Parameters
commentId
The ID of the comment to update info on,
fields
completion
Returns a Comment response object if successful otherwise a BoxSDKError.
-
Creates a comment on an item.
Declaration
Parameters
itemId
The ID of the item to create a comment on.
itemType
The type of the item to create a comment on. Can be “file” or “comment”.
fields
completion
Returns a Comment response object if successful otherwise a BoxSDKError.
-
Deletes the comment.
Declaration
Swift
public func delete( commentId: String, completion: @escaping Callback<Void> )
Parameters
commentId
The ID of the comment to delete.
completion
Returns Void if the comment is deleted.