Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        public void JoinRoomInWorld(RoomIdentifier room, IJoinRoomErrorHandler errorHandler)
        {
            JoinRoomInWorldSequence joinRoomInWorldSequence = new JoinRoomInWorldSequence(clubPenguinClient, room, errorHandler);

            joinRoomInWorldSequence.JoinRoom();
        }