Exemplo n.º 1
0
    public void onGetAllRoomsDone(AllRoomsEvent eventObj)
    {
        if (eventObj.getResult() == 0)
        {
            string[] roomIds = eventObj.getRoomIds();

            if (roomIds == null)
            {
                RoomSelectionMenu.RoomCount = 0;
                RoomSelectionMenu.Activate();
            }
            else
            {
                RoomSelectionMenu.ActiveRooms = new List <LiveRoomInfoEvent>();
                foreach (string roomId in roomIds)
                {
                    WarpClient.GetInstance().GetLiveRoomInfo(roomId);
                }

                RoomSelectionMenu.RoomCount = roomIds.Length;
            }
        }
        else
        {
            RoomSelectionMenu.RoomCount = 0;
            RoomSelectionMenu.Activate();
        }
        Log("onGetAllRoomsDone : " + eventObj.getResult());
    }
Exemplo n.º 2
0
    public void onGetAllRoomsDone(AllRoomsEvent eventObj)
    {
        Log("ongetallroomsdone : " + eventObj.getResult());
        if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
        {
//			if (eventObj.getRoomIds ().Length > 0) {
//				foreach (string roomId in eventObj.getRoomIds()) {
//					WarpClient.GetInstance ().GetLiveRoomInfo (roomId);
//				}
//				//WarpClient.GetInstance().SubscribeRoom("1170889653");
//			}
        }
    }
Exemplo n.º 3
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log ("onGetAllRoomsDone : " + eventObj.getResult());
     for(int i=0; i< eventObj.getRoomIds().Length; ++i)
     {
         Log ("Room ID : " + eventObj.getRoomIds()[i]);
     }
 }
Exemplo n.º 4
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Debug.Log("onGetAllRoomsDone : " + eventObj.getResult());
     for (int i = 0; i < eventObj.getRoomIds().Length; ++i)
     {
         Debug.Log("Room ID : " + eventObj.getRoomIds()[i]);
     }
 }
Exemplo n.º 5
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            if (eventObj.getResult() == 0)
            {
                Debug.Log("onGetAllRoomsDone : " + eventObj.getRoomIds().Length);
                if (eventObj.getRoomIds().Length > 0)
                {
                    foreach (string roomId in eventObj.getRoomIds())
                    {
//						WarpClient.GetInstance ().GetLiveRoomInfo (roomId);
                    }
                    //WarpClient.GetInstance().SubscribeRoom("1170889653");
                }
            }
        }
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log ("onGetAllRoomsDone : " + eventObj.getResult());
 }
Exemplo n.º 7
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log("onGetAllRoomsDone : " + eventObj.getResult());
 }
Exemplo n.º 8
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Debug.Log ("onGetAllRoomsDone : " + eventObj.getResult());
     string[] rooms = eventObj.getRoomIds ();
     string strRooms="";
     if (rooms != null && rooms.Length != 0) {
         foreach (string room in rooms) {
             Debug.Log ("room " + room);
             strRooms+=room+",";
         }
     }
     appWarpResponse+="onGetAllRoomsDone Rooms "+strRooms+"\n";
 }