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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
action
Sourcecard_id
Sourcedoor_id
Sourcemodule_id
Sourcesecurity_system
Sourcetimestamp
Sourceuser_email
Sourceuser_name
Source