Exemple #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);
        }
Exemple #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);
        }