#
RoomInfoReqData
Parameter | Required | Type | Description |
---|---|---|---|
room_id | Yes | string | Room ID |
Request Example
{
"event": "room_info",
"mg_id": "mg_id_1",
"timestamp": 1657770493152,
"data": {
"room_id": "roomId_1"
}
}
RoomInfoRespData
Parameter | Required | Type | Description |
---|---|---|---|
status | Yes | string | Room status WATING: Waiting for game to start PLAYING: Game is in progress PENDING: Processing (indicates that the server has received the start command and is processing it, but has not yet returned the final result. There is no need to repeat the operation at this time. It is recommended to wait a few seconds and query the room_info interface to obtain the latest status) |
captain_uid | Yes | string | Captain's user ID |
mode | No | int32 | Mode |
mode_ex | No | int32 | Sud-Mod |
player | Yes | Array of Player | Array of players in the game |
Player
Parameter | Required | Type | Description |
---|---|---|---|
uid | Yes | string | User ID |
seat_index | Yes | int32 | Seat number, starting from 0 |
status | Yes | string | User status IDLE: Not ready READY: Ready |
is_ai | Yes | int32 | Whether it's a robot 0: No 1: Yes |
Response Example
{
"ret_code": 0,
"ret_msg": "",
"data": {
"status": "WATING",
"captain_uid": "uid_1",
"player": [{
"uid": "uid_1",
"seat_index": 0,
"status": "READY",
"is_ai": 0
},{
"uid": "uid_2",
"seat_index": 1,
"status": "IDLE",
"is_ai": 0
}]
}
}