class Place::Bookings
- Place::Bookings
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Locatable
Defined in:
place/bookings.crConstant Summary
-
SUBSCRIPTION_LENGTH =
3.hours
-
the API reports that 6 days is the max: Subscription expiration can only be 10070 minutes in the future.
Class Method Summary
Instance Method Summary
- #book_now(period_in_seconds : Int64, title : String | Nil = nil, owner : String | Nil = nil)
- #calendar_id : String
- #calendar_ids : Array(String)
-
#check_ownership_of(mac_address : String) : OwnershipMAC | Nil
return
nil
or{"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}
- #checkin : Nil
-
#device_locations(zone_id : String, location : String | Nil = nil)
array of devices and their x, y coordinates
-
#end_meeting(meeting_start_time : Int64, notify : Bool = true, comment : String = "cancelled at booking panel") : Nil
End either the current meeting early, or the pending meeting
- #is_stale?(timestamp : Int64 | Nil) : Bool
-
#list_users(query : String | Nil = nil, limit : UInt32 | Nil = 20_u32)
Allow apps to search for attendees (to add to new bookings) via driver instead of via staff-api (as some role based accounts may not have MS Graph access)
-
#locate_user(email : String | Nil = nil, username : String | Nil = nil)
array of devices and their x, y coordinates, that are associated with this user
-
#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
- #on_update
- #people_count? : Float64 | Nil
- #people_present? : Float64 | Nil
- #poll_events : Nil
-
#start_meeting(meeting_start_time : Int64) : Nil
we no longer accept user specified values
- #sub_renewed_at : Time
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
End either the current meeting early, or the pending meeting
Allow apps to search for attendees (to add to new bookings) via driver instead of via staff-api (as some role based accounts may not have MS Graph access)
array of devices and their x, y coordinates, that are associated with this user
return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc