add WaitingRoom DefaultTemplateLanguage member
MODIFY
waiting_room.go
waiting_room.go
@@ -18,6 +18,7 @@ type WaitingRoom struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
CustomPageHTML string `json:"custom_page_html,omitempty"`
+ DefaultTemplateLanguage string `json:"default_template_language,omitempty"`
Host string `json:"host"`
ID string `json:"id,omitempty"`
NewUsersPerMinute int `json:"new_users_per_minute"`

MODIFY
waiting_room_test.go
waiting_room_test.go
@@ -35,6 +35,7 @@ var waitingRoomJSON = fmt.Sprintf(`
"disable_session_renewal": false,
"json_response_enabled": true,
"custom_page_html": "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
+ "default_template_language": "en-US",
"next_event_prequeue_start_time": null,
"next_event_start_time": "%s"
}
@@ -98,6 +99,7 @@ var waitingRoom = WaitingRoom{
DisableSessionRenewal: false,
JsonResponseEnabled: true,
CustomPageHTML: "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
+ DefaultTemplateLanguage: "en-US",
NextEventStartTime: &testTimestampWaitingRoomEventStart,
NextEventPrequeueStartTime: nil,
}

add WaitingRoom DefaultTemplateLanguage member