| | |
| | | { |
| | | try |
| | | { |
| | | MainPage.Log($"接收到推送.\r\n{Newtonsoft.Json.JsonConvert.SerializeObject(jpushMessageInfo).ToString()}"); |
| | | //Console.WriteLine($"接收到推送,,,,.{Newtonsoft.Json.JsonConvert.SerializeObject(jpushMessageInfo).ToString()}"); |
| | | |
| | | //Extras为空不处理 |
| | | if (string.IsNullOrEmpty(jpushMessageInfo.Extras)) return; |
| | |
| | | //萤石猫眼 |
| | | eSVideoInfo.Lc_AccessToken = json["subToken"].ToString();//"子账号token |
| | | eSVideoInfo.DeviceSerial = json["devSerial"].ToString();//设备序列号 |
| | | eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | eSVideoInfo.spk = json["spk"].ToString(); |
| | | |
| | | eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | if (json.ContainsKey("msgId") && !string.IsNullOrEmpty(json["msgId"].ToString())) |
| | | { |
| | |
| | | else if (interphoneTypeEnum == InterphoneType.HDL.ToString()) |
| | | { |
| | | //HDL Linphone 狄耐克 |
| | | eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | eSVideoInfo.callId = json["callId"].ToString(); |
| | | eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | eSVideoInfo.DeviceName = json["deviceName"].ToString(); |
| | | eSVideoInfo.deviceSipAccount = json["deviceSipAccount"].ToString(); |
| | | eSVideoInfo.spk = json["spk"].ToString(); |
| | | //eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | //eSVideoInfo.callId = json["callId"].ToString(); |
| | | //eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | //eSVideoInfo.DeviceName = json["deviceName"].ToString(); |
| | | //eSVideoInfo.deviceSipAccount = json["deviceSipAccount"].ToString(); |
| | | //eSVideoInfo.spk = json["spk"].ToString(); |
| | | |
| | | //ShowAlert("狄耐克门口机呼叫"); |
| | | //打开呼叫页面 |
| | | HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo, InterphoneType.HDL.ToString()); |
| | | ////ShowAlert("狄耐克门口机呼叫"); |
| | | ////打开呼叫页面 |
| | | //HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo, InterphoneType.HDL.ToString()); |
| | | return; |
| | | } |
| | | else if (interphoneTypeEnum == InterphoneType.FREEVIEW.ToString()) |
| | | { |
| | | //全视通 Linphone 狄耐克 |
| | | eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | eSVideoInfo.callId = json["callId"].ToString(); |
| | | eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | eSVideoInfo.DeviceName = json["deviceName"].ToString(); |
| | | eSVideoInfo.deviceSipAccount = json["deviceSipAccount"].ToString(); |
| | | eSVideoInfo.spk = json["spk"].ToString(); |
| | | //eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | //eSVideoInfo.callId = json["callId"].ToString(); |
| | | //eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | //eSVideoInfo.DeviceName = json["deviceName"].ToString(); |
| | | //eSVideoInfo.deviceSipAccount = json["deviceSipAccount"].ToString(); |
| | | //eSVideoInfo.spk = json["spk"].ToString(); |
| | | |
| | | //ShowAlert("狄耐克门口机呼叫"); |
| | | //打开呼叫页面 |
| | | HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo, InterphoneType.FREEVIEW.ToString()); |
| | | return; |
| | | ////ShowAlert("狄耐克门口机呼叫"); |
| | | ////打开呼叫页面 |
| | | //HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo, InterphoneType.FREEVIEW.ToString()); |
| | | //return; |
| | | } |
| | | |
| | | //3.打开呼叫页面 |
| | |
| | | DB_ResidenceData.Instance.EixtAccount(); |
| | | MainPage.Log("退出账号清空数据"); |
| | | //4.注销HDLSIP账号登录 2021-08-20 |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | //HDLLinphone.Current.LogoutAllAccount(); |
| | | MainPage.Log("注销HDLSIP账号登录"); |
| | | |
| | | #if __IOS__ |
| | |
| | | if (internetStatus == 0)//没有网络连接 0 |
| | | { |
| | | MainPage.InternetStatus = 0; |
| | | DAL.Mqtt.MqttClient.InitState(); |
| | | //DAL.Mqtt.MqttClient.DisConnectRemote();//.InitState(); |
| | | } |
| | | else if (internetStatus == 1)//3,4G的网络连接 1 |
| | | { |
| | |
| | | ((BaseActivity)Shared.Application.Activity).SetPermission(result => |
| | | { |
| | | //2023年03月29日13:08:35 修改 |
| | | Com.Videogo.Hdl.HDLEzvizSdk.Instance.Init(Application.Activity.Application, ezChildAccessToken, UserInfo.Current.LoginTokenString, UserInfo.Current.RefreshToken, OnAppConfig.Instance.RequestHttpsHost, "1aa98a90489b4838b966b57018b4b04b", 1, DB_ResidenceData.Instance.CurrentRegion.id); |
| | | Com.Videogo.Hdl.HDLEzvizSdk.Instance.JumpToCameraListActivity(Shared.Application.Activity, list); |
| | | //Com.Videogo.Hdl.HDLEzvizSdk.Instance.Init(Application.Activity.Application, ezChildAccessToken, UserInfo.Current.LoginTokenString, UserInfo.Current.RefreshToken, OnAppConfig.Instance.RequestHttpsHost, "1aa98a90489b4838b966b57018b4b04b", 1, DB_ResidenceData.Instance.CurrentRegion.id); |
| | | //Com.Videogo.Hdl.HDLEzvizSdk.Instance.JumpToCameraListActivity(Shared.Application.Activity, list); |
| | | //if (result) |
| | | //{ |
| | | // Android.Content.Intent intent = new Android.Content.Intent(); |