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 BoxError.
-
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 BoxError.
-
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
orcomment
.fields
completion
Returns a Comment response object if successful otherwise a BoxError.
-
Deletes the comment.
Declaration
Swift
public func deleteComment( commentId: String, completion: @escaping (Result<Void, BoxError>) -> Void )
Parameters
commentId
The ID of the comment to delete.
completion
Returns Void if the comment is deleted.