class PlaceOS::Driver::Interface::DoorSecurity::DoorEvent
Overview
drivers are expected to emit door state events on channel security/event/door
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
placeos-driver/interface/door_security.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #action : Action
- #card_id : String | Nil
- #door_id : String
- #module_id : String
- #security_system : String
- #timestamp : Int64
- #user_email : String | Nil
- #user_name : String | Nil
Constructor Detail
def self.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)
#