class

PlaceOS::Driver::Interface::DoorSecurity::DoorEvent

Inherits JSON::Serializable < Reference < Object

drivers are expected to emit door state events on channel security/event/door

Constructors

new(module_id : String, security_system : String, door_id : String, action : PlaceOS::Driver::Interface::DoorSecurity::Action, card_id : Nil | String = nil, user_name : Nil | String = nil, user_email : Nil | String = nil, timestamp : Int64 = Time.utc.to_unix)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

action
Source
card_id
Source
door_id
Source
module_id
Source
security_system
Source
timestamp
Source
user_email
Source
user_name
Source