class Place::Demo::Lockers
- Place::Demo::Lockers
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Lockers
Defined in:
place/demo/lockers.crClass Method Summary
Instance Method Summary
- #building_id : String
-
#check_ownership_of(mac_address : String) : OwnershipMAC | Nil
return
nil
or{"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}
-
#device_locations(zone_id : String, location : String | Nil = nil)
array of devices and their x, y coordinates
- #levels : Array(String)
-
#locate_user(email : String | Nil = nil, username : String | Nil = nil)
=================================== Locatable Interface functions ===================================
-
#locker_allocate(user_id : String, bank_id : String | Int64, locker_id : String | Int64 | Nil = nil, expires_at : Int64 | Nil = nil) : PlaceLocker
allocates a locker now, the allocation may expire
- #locker_banks : Hash(String, LockerBank)
-
#locker_release(bank_id : String | Int64, locker_id : String | Int64, owner_id : String | Nil = nil) : Nil
return the locker to the pool
- #locker_share(bank_id : String | Int64, locker_id : String | Int64, owner_id : String, share_with : String) : Nil
-
#locker_shared_with(bank_id : String | Int64, locker_id : String | Int64, owner_id : String) : Array(String)
a list of user-ids that the locker is shared with.
- #locker_unlock(bank_id : String | Int64, locker_id : String | Int64, owner_id : String | Nil = nil, open_time : Int32 = 60, pin_code : String | Nil = nil) : Nil
- #locker_unshare(bank_id : String | Int64, locker_id : String | Int64, owner_id : String, shared_with_id : String | Nil = nil) : Nil
-
#lockers_allocated_to(user_id : String) : Array(PlaceLocker)
a list of lockers that are allocated to the user
- #lockers_details(level_id : String) : Array(LockerBank)
-
#macs_assigned_to(email : String | Nil = nil, username : String | Nil = nil) : Array(String)
return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc
Class Method Detail
Instance Method Detail
return nil
or {"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}
array of devices and their x, y coordinates
allocates a locker now, the allocation may expire
return the locker to the pool
a list of lockers that are allocated to the user
return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc