예제 #1
0
        public Response DeviceIsIdle(string IMEI, bool status)
        {
            Response r = new Response();

            try
            {
                AV_UEPbxBL ueb = new AV_UEPbxBL();
                AV_UEPbx   ue  = new AV_UEPbx();
                ue.IMEI   = IMEI;
                ue.IsIdle = status;
                ueb.Manage("SetIsIdle", ue);

                r.Status  = "success";
                r.Message = "success";
            }
            catch (Exception ex)
            {
                r.Status  = "error";
                r.Message = ex.Message;
            }
            return(r);
        }
예제 #2
0
        public Response SetDeviceToken(string IMEI, string token)
        {
            Response r = new Response();

            try
            {
                AV_UEPbxBL ueb = new AV_UEPbxBL();
                AV_UEPbx   ue  = new AV_UEPbx();
                ue.IMEI        = IMEI;
                ue.DeviceToken = token;
                ueb.Manage("SetToken", ue);

                r.Status  = "success";
                r.Message = "success";
            }
            catch (Exception ex)
            {
                r.Status  = "error";
                r.Message = ex.Message;
            }
            return(r);
        }
예제 #3
0
파일: AV_UEPbxBL.cs 프로젝트: swigithub/MVC
 public bool Manage(string filter, AV_UEPbx ue)
 {
     return(ued.Manage(filter, ue.UEId, ue.UEName, ue.IMEI, ue.IsIdle, ue.DeviceToken));
 }