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); }
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); }
public bool Manage(string filter, AV_UEPbx ue) { return(ued.Manage(filter, ue.UEId, ue.UEName, ue.IMEI, ue.IsIdle, ue.DeviceToken)); }