SysAddMember
Adds the given member to the given lobby instance.
Service | Operation |
---|---|
lobby | SYS_ADD_MEMBER |
Method Parameters
Parameter | Description |
---|---|
memberCxId | The cx id of the member being added. |
lobbyId | The lobby instance to join. |
otherUserCxIds | Array of other users (i.e. party members) to add to the lobby as well. The call will fail if all users can't be added. |
isReady | Initial ready-status of this user. |
extraJson | Initial extra-data about this user. |
teamCode | Preferred team for this user, if applicable. Send "" or null for automatic assignment. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var memberCxId = "55555:aaa-bbb-ccc-ddd:ljljlj";
var lobbyId = "55555:4v4:3";
var otherUserCxIds = [
"55555:aaa-bbb-ccc-eee:asdfjkl"
];
var isReady = False;
var extraJson = {};
var teamCode = "blue";
var lobbyProxy = bridge.getLobbyServiceProxy();
var postResult = lobbyProxy.sysAddMember(memberCxId, lobbyId, otherUserCxIds, isReady, extraJson, teamCode);
{
"service":"lobby",
"operation":"SYS_ADD_MEMBER",
"data":{
"memberCxId":"55555:aaa-bbb-ccc-ddd:ljljlj",
"lobbyId":"55555:4v4:3",
"otherUserCxIds":[
"55555:aaa-bbb-ccc-eee:asdfjkl"
],
"isReady":false,
"extraJson":{},
"teamCode":"blue"
}
}
JSON Response
{
"status": 200,
"data": {}
}