objective-c-client-listener

iOS

Objective-C Client Listeners

Connection Request Listener
    /** * Invoked in response to a connect request. * @param event */ 
    -( void ) onConnectDone : ( ConnectEvent * ) event ; 
    /** * Invoked in response to a disconnect request. * @param event */ 
    -( void ) onDisconnectDone : ( ConnectEvent * ) event ; 
    /** * Invoked in response to a init UDP request. * @param result */
    -(void)onInitUDPDone:(Byte)result;
Room Request Listener
    /** * Invoked in response to a subscribeRoom request. * @param event */ 
    ( void ) onSubscribeRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a UnSubscribeRoom request. * @param event */ 
    ( void ) onUnSubscribeRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a joinRoom request. * @param event */ 
    ( void ) onJoinRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a leaveRoom request. * @param event */ 
    ( void ) onLeaveRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a getLiveRoomInfo request. * @param event */ 
    ( void ) onGetLiveRoomInfoDone : ( LiveRoomInfoEvent * ) event ; 
    /** * Invoked in response to a setCustomRoomData request. * @param event */ 
    ( void ) onSetCustomRoomDataDone : ( LiveRoomInfoEvent * ) event ; 
    /** * Invoked in response to a updateRoomProperties request. * @param event */ 
    ( void ) onUpdatePropertyDone : ( LiveRoomInfoEvent * ) event ; 
    /* * Invoked in response to lock room property to any room. * @param result */ 
    ( void ) onLockPropertiesDone : ( Byte ) result ; 
    /* * Invoked in response to unlock room property to any room. * @param result */ 
    ( void ) onUnlockPropertiesDone : ( Byte ) result ; 
Zone Request Listener
    /** * Invoked in response to a deleteRoom request. * @param event */ 
    ( void ) onDeleteRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a getAllRooms request. * @param event */ 
    ( void ) onGetAllRoomsDone : ( AllRoomsEvent * ) event ; 
    /** * Invoked in response to a createRoom request. * @param event */ 
    ( void ) onCreateRoomDone : ( RoomEvent * ) roomEvent ; 
    /** * Invoked in response to a getOnlineUsers request. * @param event */ 
    ( void ) onGetOnlineUsersDone : ( AllUsersEvent * ) event ; 
    /** * Invoked in response to a getLiveUserInfo request. * @param event */ 
    ( void ) onGetLiveUserInfoDone : ( LiveUserInfoEvent * ) event ; 
    /** * Invoked in response to a setCustomRoomData request. * @param event */ 
    ( void ) onSetCustomUserDataDone : ( LiveUserInfoEvent * ) event ; 
    /** * Invoked in response to a getMatchMaking Rooms request. * @param event */ 
    ( void ) onGetMatchedRoomsDone : ( MatchedRoomsEvent * ) matchedRoomsEvent ; 
Lobby Request Listener
    /** * Invoked in response to a joinLobby request. * @param event */ 
    ( void ) onJoinLobbyDone : ( LobbyEvent * ) lobbyEvent ; 
    /** * Invoked in response to a leaveLobby request. * @param event */ 
    ( void ) onLeaveLobbyDone : ( LobbyEvent * ) lobbyEvent ; 
    /** * Invoked in response to a subscribeLobby request. * @param event */ 
    ( void ) onSubscribeLobbyDone : ( LobbyEvent * ) lobbyEvent ; 
    /** * Invoked in response to a UnSubscribeLobby request. * @param event */ 
    ( void ) onUnSubscribeLobbyDone : ( LobbyEvent * ) lobbyEvent ; 
    /** * Invoked in response to a getLiveLobbyInfo request. * @param event */ 
    ( void ) onGetLiveLobbyInfoDone : ( LiveRoomInfoEvent * ) event ; 
Update Request Listener
/** * Result of SendUpdatePeers request. The result value maps to a WarpResponseResultCode * @param result */ ( void ) onSendUpdatePeersDone : ( Byte ) result ; 
Chat Request Listener
    /** * Result of SendChat request. The result value maps to a WarpResponseResultCode * @param result */ 
    ( void ) onSendChatDone : ( Byte ) result ; 
    /** * Invoked when a response for sendPrivateChat is received. Result of the  * operation is passed as an argument of value WarpResponseResultCode. * @param result */ 
    ( void ) onSendPrivateChatDone : ( Byte ) result ; 
Notify Listener
    /** * Invoked when a room is created. Lobby subscribers will receive this. * @param event */ 
    -(void ) onRoomCreated : ( RoomData * ) roomData ; 
    /** * Invoked when a room is deleted. Lobby subscribers will receive this. * @param event */ 
    -(void ) onRoomDestroyed : ( RoomData * ) roomData ; 
    /** * Invoked when a user leaves a room. Lobby and the concerned room subscribers  * will receive this. * @param event * @param username */ 
    -(void ) onUserLeftRoom : ( RoomData * ) roomData username : ( NSString * ) username ; 
    /** * Invoked when a user joins a room. Lobby and the concerned room subscribers  * will receive this. * @param event * @param username */ 
    -(void ) onUserJoinedRoom : ( RoomData * ) roomData username : ( NSString * ) username ; 
    /** * Invoked when a user leaves a lobby. Lobby subscribers will receive this. * @param event * @param username */ 
    -(void ) onUserLeftLobby : ( LobbyData * ) lobbyData username : ( NSString * ) username ; 
    /** * Invoked when a user joins a lobby. Lobby subscribers will receive this. * @param event * @param username */ 
    -(void ) onUserJoinedLobby : ( LobbyData * ) lobbyData username : ( NSString * ) username ; 
    /** * Invoked when a joined user sends a chat. Rooms subscribers will receive this. * @param event */ 
    -(void ) onChatReceived : ( ChatEvent * ) chatEvent ; 
    /** * Invoked when a private chat is received from the given sender. * @param sender * @param message */ 
    -(void ) onPrivateChatReceived : ( NSString * ) message fromUser : ( NSString * ) senderName ; 
    /** * Invoked when a joined user sends a updatePeers request. Rooms subscribers  * will receive this. * @param event */ 
    -(void ) onUpdatePeersReceived : ( UpdateEvent * ) updateEvent ; 
    /** * Invoked when a user's move is completed in a turn based room. Rooms subscribers  * will receive this. * @param moveEvent */ 
    -(void)onMoveCompleted:(MoveEvent*) moveEvent;
    /** * Invoked when a user change room property. Lobby and the concerned room subscribers * will receive this. * @param event * @param username * @param properties * @param lockedProperties */
    -(void)onUserChangeRoomProperty:(RoomData*)event username:(NSString*)username properties:(NSDictionary*)properties lockedProperties:(NSDictionary*)lockedProperties;
    /** * Invoked to indicate that a user has lost connectivity. Subscribers of the users location will receive this. * @param locid * @param isLobby * @param username */
    -(void)onUserPaused:(NSString*)userName withLocation:(NSString*)locId isLobby:(BOOL)isLobby;
   /** * Invoked when a user's connectivity is restored. Subscribers of the users location will receive this. * @param locid * @param isLobby * @param username */
    -(void)onUserResumed:(NSString*)userName withLocation:(NSString*)locId isLobby:(BOOL)isLobby;
    /** * Invoked when a user starts game in a turn based room */
   -(void)onGameStarted:(NSString*)sender roomId:(NSString*)roomId  nextTurn:(NSString*)nextTurn;
    /** * Invoked when a user stops game in a turn based room */
   -(void)onGameStopped:(NSString*)sender roomId:(NSString*)roomId;
Turn Based Room Listener
    /** *  Invoked when a response for a sendMove request is received. The result value maps to a WarpResponseResultCode * @param result */ 
    -(void)onSendMoveDone:(Byte) result;
   /** * Invoked when a response for a startGame request is received. Room subscribers will receive this. * @param result */
    -(void)onStartGameDone:(Byte)result;
   /** * Invoked when a response for a stopGame request is received. Room subscribers will receive this. * @param result */
    -(void)onStopGameDone:(Byte)result;
   /** * Invoked when a response for a getMoveHistory request is received. * @param result */
    -(void)onGetMoveHistoryDone:(Byte)result moves:(NSMutableArray*)movesArray;