Comment

public class Comment : BoxModel

Message generated by Box users. Each message is tied to a specific file. You can create comments independently or create them as responses to other comments.

Properties

  • Declaration

    Swift

    public private(set) var rawData: [String : Any] { get }
  • Box item type

    Declaration

    Swift

    public var type: String
  • id

    Identifier

    Declaration

    Swift

    public let id: String
  • Whether or not this comment is a reply to another comment.

    Declaration

    Swift

    public let isReplyComment: Bool?
  • The comment text that the user typed.

    Declaration

    Swift

    public let message: String?
  • The string representing the comment text with @mentions included. @mention format is @[id:username] where id is user_id and username is display name. Field is not included by default.

    Declaration

    Swift

    public let taggedMessage: String?
  • A mini user object representing the author of the comment.

    Declaration

    Swift

    public let createdBy: User?
  • The time this comment was created.

    Declaration

    Swift

    public let createdAt: Date?
  • The object this comment was placed on.

    Declaration

    Swift

    public let item: CommentItem?
  • The time this comment was last modified

    Declaration

    Swift

    public let modifiedAt: Date?
  • Initializer.

    Throws

    Decoding error.

    Declaration

    Swift

    public required init(json: [String : Any]) throws

    Parameters

    json

    JSON dictionary.