Skip to content

Commit

Permalink
Merge pull request #1357 from emmanuelclflores/wr-queueing-status-code
Browse files Browse the repository at this point in the history
Add queueing_status_code to Waiting Room object
  • Loading branch information
jacobbednarz committed Aug 7, 2023
2 parents 92917bc + 958bd23 commit b634d4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/1357.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
waiting_room: add support for `queueing_status_code`
```
1 change: 1 addition & 0 deletions waiting_room.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type WaitingRoom struct {
NextEventStartTime *time.Time `json:"next_event_start_time,omitempty"`
CookieSuffix string `json:"cookie_suffix"`
AdditionalRoutes []*WaitingRoomRoute `json:"additional_routes,omitempty"`
QueueingStatusCode int `json:"queueing_status_code"`
}

// WaitingRoomStatus describes the status of a waiting room.
Expand Down
6 changes: 4 additions & 2 deletions waiting_room_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ var waitingRoomJSON = fmt.Sprintf(`
"default_template_language": "en-US",
"next_event_prequeue_start_time": null,
"next_event_start_time": "%s",
"cookie_suffix": "example_shop",
"additional_routes": [{"host": "shop2.example.com", "path": "/shop/checkout"}]
"cookie_suffix": "example_shop",
"additional_routes": [{"host": "shop2.example.com", "path": "/shop/checkout"}],
"queueing_status_code": 200
}
`, waitingRoomID, testTimestampWaitingRoom.Format(time.RFC3339Nano), testTimestampWaitingRoom.Format(time.RFC3339Nano),
testTimestampWaitingRoomEventStart.Format(time.RFC3339Nano))
Expand Down Expand Up @@ -127,6 +128,7 @@ var waitingRoom = WaitingRoom{
NextEventPrequeueStartTime: nil,
CookieSuffix: "example_shop",
AdditionalRoutes: []*WaitingRoomRoute{{Host: "shop2.example.com", Path: "/shop/checkout"}},
QueueingStatusCode: 200,
}

var waitingRoomEvent = WaitingRoomEvent{
Expand Down

0 comments on commit b634d4b

Please sign in to comment.