PlaceOS::Driver::Interface::Lockers
Instance methods
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_allocate_me(bank_id : String | Int64, locker_id : String | Int64 | Nil = nil, expires_at : Int64 | Nil = nil)
Sourcelocker_release(bank_id : String | Int64, locker_id : String | Int64, owner_id : String | Nil = nil) : Nil
return the locker to the pool
locker_release_mine(bank_id : String | Int64, locker_id : String | Int64)
Sourcelocker_unlock(bank_id : String | Int64, locker_id : String | Int64, owner_id : String | Nil = nil, open_time : Int32 = 60) : Nil
Sourcelocker_unlock_mine(bank_id : String | Int64, locker_id : String | Int64, open_time : Int32 = 60)
Sourcelockers_allocated_to(user_id : String) : Array(PlaceLocker)
a list of lockers that are allocated to the user
lockers_allocated_to_me
Source