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

Overview

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

Included Modules

Extended Modules

Defined in:

placeos-driver/interface/door_security.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def action : Action #

[View source]
def card_id : String | Nil #

[View source]
def door_id : String #

[View source]
def module_id : String #

[View source]
def security_system : String #

[View source]
def timestamp : Int64 #

[View source]
def user_email : String | Nil #

[View source]
def user_name : String | Nil #

[View source]