generated from VLADIMIR/template
Добавить API таймера экранов
This commit is contained in:
@@ -792,6 +792,46 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{gameId}/screens/timer": {
|
||||
"post": {
|
||||
"summary": "Настроить таймер экранов",
|
||||
"operationId": "EveningDetectiveServer_SetScreenTimer",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverSetScreenTimerRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "gameId",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EveningDetectiveServerSetScreenTimerBody"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Экраны"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{gameId}/tickets": {
|
||||
"post": {
|
||||
"summary": "Выпустить билеты на игру",
|
||||
@@ -3164,6 +3204,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerSetScreenTimerBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"durationSeconds": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerSetTeamAnswerScoreBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -4457,7 +4509,11 @@
|
||||
"SCREEN_COMMAND_STOP",
|
||||
"SCREEN_COMMAND_REPLAY",
|
||||
"SCREEN_COMMAND_SEEK",
|
||||
"SCREEN_COMMAND_VOLUME"
|
||||
"SCREEN_COMMAND_VOLUME",
|
||||
"SCREEN_COMMAND_TIMER_START",
|
||||
"SCREEN_COMMAND_TIMER_PAUSE",
|
||||
"SCREEN_COMMAND_TIMER_RESUME",
|
||||
"SCREEN_COMMAND_TIMER_RESET"
|
||||
],
|
||||
"default": "SCREEN_COMMAND_UNSPECIFIED"
|
||||
},
|
||||
@@ -4470,7 +4526,8 @@
|
||||
"SCREEN_MODE_INTRO_DONE",
|
||||
"SCREEN_MODE_CONCLUSION",
|
||||
"SCREEN_MODE_CONCLUSION_DONE",
|
||||
"SCREEN_MODE_RESULTS"
|
||||
"SCREEN_MODE_RESULTS",
|
||||
"SCREEN_MODE_TIMER"
|
||||
],
|
||||
"default": "SCREEN_MODE_UNSPECIFIED"
|
||||
},
|
||||
@@ -4525,9 +4582,34 @@
|
||||
},
|
||||
"backgroundImage": {
|
||||
"type": "string"
|
||||
},
|
||||
"timerLabel": {
|
||||
"type": "string"
|
||||
},
|
||||
"timerDurationSeconds": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"timerRemainingSeconds": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"timerState": {
|
||||
"$ref": "#/definitions/evening_detective_serverScreenTimerState"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverScreenTimerState": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"SCREEN_TIMER_STATE_UNSPECIFIED",
|
||||
"SCREEN_TIMER_STATE_STOPPED",
|
||||
"SCREEN_TIMER_STATE_RUNNING",
|
||||
"SCREEN_TIMER_STATE_PAUSED",
|
||||
"SCREEN_TIMER_STATE_FINISHED"
|
||||
],
|
||||
"default": "SCREEN_TIMER_STATE_UNSPECIFIED"
|
||||
},
|
||||
"evening_detective_serverSendScreenCommandRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -4552,6 +4634,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverSetScreenTimerRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverSetTeamAnswerScoreRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user