C# Client Listeners
/// <summary> /// Invoked when a response for Connect request is received. ///</summary> /// <param name="eventObj"></param> void onConnectDone(ConnectEvent eventObj); /// <summary> /// Invoked when a response for Disconnect request is received. ///</summary> /// <param name="eventObj"></param> void onDisconnectDone(ConnectEvent eventObj); /// <summary> /// Invoked in response to an init UDP request. ///</summary> /// <param name="result "> </param> void onInitUDPDone(byte resultCode);
/// Invoked when the response for subscribeRoom request is received. /// <param name="eventObj"></param> void onSubscribeRoomDone(RoomEvent eventObj); /// Invoked when the response for unsubscribeRoom request is received. /// <param name="eventObj"></param> void onUnSubscribeRoomDone(RoomEvent eventObj); /// Invoked when the response for joinRoom request is received. /// <param name="eventObj"></param> void onJoinRoomDone(RoomEvent eventObj); /// Invoked when the response for leaveRoom request is received. /// <param name="eventObj"></param> void onLeaveRoomDone(RoomEvent eventObj); /// Invoked when the response for GetLiveRoomInfo request is received. /// <param name="eventObj"></param> void onGetLiveRoomInfoDone(LiveRoomInfoEvent eventObj); /// Invoked when the response for setCustomRoomData request is received. /// <param name="eventObj"></param> void onSetCustomRoomDataDone(LiveRoomInfoEvent eventObj); /// Invoked when the response for UpdateRoomProperties request is received. /// <param name="eventObj"></param> void onUpdatePropertyDone(LiveRoomInfoEvent lifeLiveRoomInfoEvent); /// <summary> /// Invoked when the response for LockProperties request is received. /// </summary> /// <param name="result"></param> void onLockPropertiesDone(byte result); /// <summary> /// Invoked when the response for UnlockProperties request is received. /// </summary> /// <param name="result"></param> void onUnlockPropertiesDone(byte result);
/// Invoked when a response for DeleteRoom request is receieved. /// <param name="eventObj"></param> void onDeleteRoomDone(RoomEvent eventObj); /// Invoked when a response for GetAllRooms request is receieved. /// <param name="eventObj"></param> void onGetAllRoomsDone(AllRoomsEvent eventObj); /// Invoked when a response for CreateRoom request is receieved. /// <param name="eventObj"></param> void onCreateRoomDone(RoomEvent eventObj); /// Invoked when a response for GetOnlineUsers request is receieved. /// <param name="eventObj"></param> void onGetOnlineUsersDone(AllUsersEvent eventObj); /// <summary> /// Invoked when a response for GetLiveUserInfo request is receieved. /// <param name="eventObj"></param> void onGetLiveUserInfoDone(LiveUserInfoEvent eventObj); /// Invoked when a response for SetCustomUserData request is receieved. /// <param name="eventObj"></param> void onSetCustomUserDataDone(LiveUserInfoEvent eventObj); /// Invoked when a response from GetRoomWithNUser and GetRoomWithProperties /// <param name="matchedRoomsEvent"></param> void onGetMatchedRoomsDone(MatchedRoomsEvent matchedRoomsEvent);
/// Invoked when the response for joinLobby request is received. /// <param name="eventObj"></param> void onJoinLobbyDone(LobbyEvent eventObj); /// Invoked when the response for leaveLobby request is received. /// <param name="eventObj"></param> void onLeaveLobbyDone(LobbyEvent eventObj); /// Invoked when the response for subscribeLobby request is received. /// <param name="eventObj"></param> void onSubscribeLobbyDone(LobbyEvent eventObj); /// Invoked when the response for unsubscribeLobby request is received. /// <param name="eventObj"></param> void onUnSubscribeLobbyDone(LobbyEvent eventObj); /// Invoked when the response for GetLiveLobbyInfo request is received. /// <param name="eventObj"></param> void onGetLiveLobbyInfoDone(LiveRoomInfoEvent eventObj);
/// <summary> /// Invoked when a room is created. /// </summary> /// <param name="eventObj"></param> void onRoomCreated(RoomData eventObj); /// <summary> /// Invoked when a room is deleted. /// </summary> /// <param name="eventObj"></param> void onRoomDestroyed(RoomData eventObj); /// <summary> /// Invoked when a user leaves a room. /// </summary> /// <param name="eventObj"></param> /// <param name="username"></param> void onUserLeftRoom(RoomData eventObj, String username);/// <summary> /// Invoked when a user joins a room. /// </summary> /// <param name="eventObj"></param> /// <param name="username"></param> void onUserJoinedRoom(RoomData eventObj, String username); /// <summary> /// Invoked when a user leaves the lobby. /// </summary> /// <param name="eventObj"></param> /// <param name="username"></param> void onUserLeftLobby(LobbyData eventObj, String username); /// <summary> /// Invoked when a user joins the lobby. /// </summary> /// <param name="eventObj"></param> /// <param name="username"></param> void onUserJoinedLobby(LobbyData eventObj, String username); /// <summary> /// Invoked when a chat message is sent in one of the subscribed rooms. /// </summary> /// <param name="eventObj"></param> void onChatReceived(ChatEvent eventObj); /// <summary> /// Invoked when a updatePeers request is sent in one of the subscribed rooms. /// </summary> /// <param name="eventObj"></param> void onUpdatePeersReceived(UpdateEvent eventObj); /// <summary> /// Invoked when user receives private update data /// </summary> /// <param name="sender"></param> /// <param name="update"></param> /// <param name="fromUdp"></param> void onPrivateUpdateReceived(String sender, byte[] update, bool fromUdp); /// <summary> /// Invoked when any user changes room property /// </summary> /// <param name="roomData"></param> /// <param name="sender"></param> /// <param name="properties"></param> /// <param name="lockedPropertiesTable"></param> void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, Object> properties, Dictionary<String, String> lockedPropertiesTable); /// <summary> /// Invoked when a private chat is received from the given sender. /// </summary> /// <param name="sender"></param> /// <param name="message"></param> void onPrivateChatReceived(String sender, String message); /// <summary> /// Invoked when a user's move is completed in a turn based room /// </summary> /// <param name="?"></param> void onMoveCompleted(MoveEvent moveEvent); /// <summary> /// Invoked when a user start game in a turn based room /// </summary> /// <param name="sender"></param> /// <param name="roomId"></param> /// <param name="nextTurn"></param> public void onGameStarted(String sender, String roomId, String nextTurn); /// <summary> /// Invoked to indicate that a user has lost connectivity. Subscribers of the user's location will receive this. /// </summary> /// <param name="locid"></param> /// <param name="isLobby"></param> /// <param name="username"></param> void onUserPaused(String locid, Boolean isLobby, String username); /// <summary> /// Invoked when a user's connectivity is restored. Subscribers of the user's location will receive this. /// </summary> /// <param name="locid"></param> /// <param name="isLobby"></param> /// <param name="username"></param> void onUserResumed(String locid, Boolean isLobby, String username); /// <summary> /// Invoked when a next turn request sent by server /// </summary> /// <param name="lastTurn"></param> void onNextTurnRequest(String lastTurn); /// <summary> ///Invoked when a user stop game in a turn based room /// </summary> /// <param name="sender "></param> /// <param name="roomId"></param> public void onGameStopped(MoveEvent moveEvent);
/// Result of sendUpdatePeers request. The result value maps to a WarpResponseResultCode /// <param name="result"></param> void onSendUpdateDone(byte result); ///<summary> /// Result of SendPrivateUpdate request. The result value maps to a WarpResponseResultCode /// <param name="result"></param> /// </summary> void onSendPrivateUpdateDone(byte result);
/// Invoked when a response for sendChat is received. Result of the /// operation is passed as an argument of value WarpResponseResultCode. /// <param name="result"></param> void onSendChatDone(byte result); /// <summary> /// Invoked when a response for sendPrivateChat is received. Result of the /// operation is passed as an argument of value WarpResponseResultCode. /// </summary> /// <param name="result"></param> void onSendPrivateChatDone(byte result);
/// <summary> /// Invoked when a response for a sendMove request is received. /// </summary> /// <param name="result"></param> void onSendMoveDone(byte result); /// <summary> ///Invoked when a response for a startGame request is received. /// </summary> /// <param name="result "></param> void onStartGameDone(byte result); /// <summary> ///Invoked when a response for a stopGame request is received. ///</summary> ///<param name="result "></param> void onStopGameDone(byte result); ///<summary> ///Invoked when a response for a SetNextTurn request is received. ///</summary> ///<param name="result "></param> void onSetNextTurnDone(byte result); ///<summary> ///Invoked when a response for a getMoveHistory request is received. ///</summary> ///<param name="result "></param> ///<param name=" history"></param> void onGetMoveHistoryDone(byte result, MoveEvent[] history);