private void onRoomsFoundToJoin(GetRoomsOperation operation, HttpResponse httpResponse)
    {
        List <RoomIdentifier> roomsFound = operation.RoomsFound;

        if (roomsFound.Count > 0)
        {
            JoinRoomInWorldSequence joinRoomInWorldSequence = new JoinRoomInWorldSequence(clubPenguinClient, roomsFound[0], errorHandler, successHandler);
            joinRoomInWorldSequence.JoinRoom();
        }
        else
        {
            errorHandler.onNoRoomsFound();
        }
    }
예제 #2
0
    public void JoinRoomInWorld(RoomIdentifier room, IJoinRoomErrorHandler errorHandler)
    {
        JoinRoomInWorldSequence joinRoomInWorldSequence = new JoinRoomInWorldSequence(clubPenguinClient, room, errorHandler);

        joinRoomInWorldSequence.JoinRoom();
    }