Exemplo n.º 1
0
        public static void Init()
        {
            BLL.IBLL.XCGameManager.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCGameManager.IDeviceService>();
            var deviceModelList = deviceService.GetModels(p => 1 == 1).ToList <Model.XCGameManager.t_device>();

            if (deviceModelList != null && deviceModelList.Count > 0)
            {
                for (int i = 0; i < deviceModelList.Count; i++)
                {
                    deviceList.Add(deviceModelList[i]);
                }
            }
        }
Exemplo n.º 2
0
 public static bool ExistDevice(string deviceToken, ref t_device deviceModel, out string errMsg)
 {
     errMsg = string.Empty;
     BLL.IBLL.XCGameManager.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCGameManager.IDeviceService>();
     deviceModel = deviceService.GetModels(p => p.TerminalNo.Equals(deviceToken, StringComparison.OrdinalIgnoreCase)).FirstOrDefault <Model.XCGameManager.t_device>();
     if (deviceModel == null)
     {
         errMsg = "设备信息不存在";
         return(false);
     }
     else
     {
         return(true);
     }
 }