add next_event_prequeue_start_time and next_event_start_time and use time pointer"
MODIFY
waiting_room.go
waiting_room.go
@@ -27,6 +27,8 @@ type WaitingRoom struct {
DisableSessionRenewal bool `json:"disable_session_renewal"`
Suspended bool `json:"suspended"`
JsonResponseEnabled bool `json:"json_response_enabled"`
+ NextEventPrequeueStartTime *time.Time `json:"next_event_prequeue_start_time,omitempty"`
+ NextEventStartTime *time.Time `json:"next_event_start_time,omitempty"`
}
// WaitingRoomStatus describes the status of a waiting room.
@@ -43,7 +45,7 @@ type WaitingRoomEvent struct {
EventEndTime time.Time `json:"event_end_time"`
CreatedOn time.Time `json:"created_on,omitempty"`
ModifiedOn time.Time `json:"modified_on,omitempty"`
- PrequeueStartTime time.Time `json:"prequeue_start_time,omitempty"`
+ PrequeueStartTime *time.Time `json:"prequeue_start_time,omitempty"`
EventStartTime time.Time `json:"event_start_time"`
Name string `json:"name"`
Description string `json:"description,omitempty"`

MODIFY
waiting_room_test.go
waiting_room_test.go
@@ -34,9 +34,12 @@ var waitingRoomJSON = fmt.Sprintf(`
"session_duration": 10,
"disable_session_renewal": false,
"json_response_enabled": true,
- "custom_page_html": "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}"
+ "custom_page_html": "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
+ "next_event_prequeue_start_time": null,
+ "next_event_start_time": "%s"
}
- `, waitingRoomID, testTimestampWaitingRoom.Format(time.RFC3339Nano), testTimestampWaitingRoom.Format(time.RFC3339Nano))
+ `, waitingRoomID, testTimestampWaitingRoom.Format(time.RFC3339Nano), testTimestampWaitingRoom.Format(time.RFC3339Nano),
+ testTimestampWaitingRoomEventStart.Format(time.RFC3339Nano))
var waitingRoomEventJSON = fmt.Sprintf(`
{
@@ -95,6 +98,8 @@ var waitingRoom = WaitingRoom{
DisableSessionRenewal: false,
JsonResponseEnabled: true,
CustomPageHTML: "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
+ NextEventStartTime: &testTimestampWaitingRoomEventStart,
+ NextEventPrequeueStartTime: nil,
}
var waitingRoomEvent = WaitingRoomEvent{
@@ -104,7 +109,7 @@ var waitingRoomEvent = WaitingRoomEvent{
Name: "production_webinar_event",
Description: "Production event - DO NOT MODIFY",
Suspended: false,
- PrequeueStartTime: testTimestampWaitingRoomEventPrequeue,
+ PrequeueStartTime: &testTimestampWaitingRoomEventPrequeue,
EventStartTime: testTimestampWaitingRoomEventStart,
EventEndTime: testTimestampWaitingRoomEventEnd,
ShuffleAtEventStart: false,

add next_event_prequeue_start_time and next_event_start_time and use time pointer"