Beispiel #1
0
 public static void GetRoomList(GetRoomListPara para, Action <ResponseEvent> callback)
 {
     Sdk.GetRoomList(para, (eve) => {
         try {
             if (eve.Data != null)
             {
                 var rsp  = (GetRoomListRsp)eve.Data;
                 eve.Data = rsp;
             }
             callback?.Invoke(eve);
         } catch (Exception e) {
             Debugger.Log("{0}", e.ToString());
         }
     });
 }
Beispiel #2
0
 public static void GetRoomList(GetRoomListPara para, Action <ResponseEvent> callback)
 {
     Room.GetRoomList(para, callback);
 }