Event

public class Event : BoxModel

An event object associated with user or enterprise events.

  • Box event object type

    Declaration

    Swift

    public var type: String
  • Declaration

    Swift

    public private(set) var rawData: [String : Any] { get }

Properties

  • id

    Identifier

    Declaration

    Swift

    public let id: String
  • The user that performed the action represented by the event. Some events may be performed by users not logged into Box. In that case, not all attributes of the object are populated and the event is attributed to a unknown user.

    Declaration

    Swift

    public let createdBy: User?
  • One of the event types.

    Declaration

    Swift

    public let eventType: EventType
  • The session ID of the user who performed the action represented by the event.

    Declaration

    Swift

    public let sessionId: String?
  • The object associated with the event.

    Declaration

    Swift

    public let source: EventItem?
  • When the event occurred (when the user performed the action).

    Declaration

    Swift

    public let createdAt: Date?
  • When the event was stored in the Box database.

    Declaration

    Swift

    public let recordedAt: Date?
  • Additional details for the event

    Declaration

    Swift

    public let additionalDetails: [String : Any]?
  • Initializer.

    Throws

    Decoding error.

    Declaration

    Swift

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

    Parameters

    json

    JSON dictionary.