File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,33 @@ type Event struct {
118118 ContactPhoneNumber string `bson:"contact_phone_number" json:"contact_phone_number"`
119119}
120120
121+ // Event hierarchy
122+ type MultiBuildingEvents [T any ] struct {
123+ Buildings []SingleBuildingEvents [T ] `bson:"buildings" json:"buildings"`
124+ }
125+ type SingleBuildingEvents [T any ] struct {
126+ Building string `bson:"building" json:"building"`
127+ Rooms []RoomEvents [T ] `bson:"rooms" json:"rooms"`
128+ }
129+ type RoomEvents [T any ] struct {
130+ Room string `bson:"room" json:"room"`
131+ Events []T `bson:"events" json:"events"`
132+ }
133+
134+ // Event types
135+ type AstraEvent struct {
136+ ActivityName * string `bson:"activity_name" json:"activity_name"`
137+ MeetingType * string `bson:"meeting_type" json:"meeting_type"`
138+ StartDate * string `bson:"start_date" json:"start_date"`
139+ EndDate * string `bson:"end_date" json:"end_date"`
140+ BuildingCode * string `bson:"building_code" json:"building_code"`
141+ RoomNumber * string `bson:"room_number" json:"room_number"`
142+ CurrentState * string `bson:"current_state" json:"current_state"`
143+ NotAllowedUsageMask * float64 `bson:"not_allowed_usage_mask" json:"not_allowed_usage_mask"`
144+ UsageColor * string `bson:"usage_color" json:"usage_color"`
145+ Capacity * float64 `bson:"capacity" json:"capacity"`
146+ }
147+
121148// 5 Level Likert Item scale for evaluation responses
122149type EvaluationResponse int
123150
You can’t perform that action at this time.
0 commit comments