| | |
| | | {
|
| | | if (topic == "AppNoLogin")
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //登录密匙已经过期,请重新登录
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uTokenIsOldAndLoginAgain);
|
| | |
| | | }
|
| | | else if (topic == "BeingSqueezedOffline")
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //此帐号已在别处登录,您被迫下线
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uHadBeenLoginAndOffLine);
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | if (HdlGatewayLogic.Current.IsGatewayExist(gatewayId) == false)
|
| | | try
|
| | | {
|
| | | //不是自己绑定的网关,则不处理
|
| | | return;
|
| | | if (HdlGatewayLogic.Current.IsGatewayExist(gatewayId) == false)
|
| | | {
|
| | | //不是自己绑定的网关,则不处理
|
| | | return;
|
| | | }
|
| | | //门锁上报
|
| | | if (topic == gatewayId + "/Alarms/SendAlarmInform")
|
| | | {
|
| | | //保存门锁报警信息到本地
|
| | | HdlAlarmsLogic.Current.SaveDoorLockAlarmInfo(receiveData);
|
| | |
|
| | | }
|
| | | //通过外部方式布防撤防成功时报告
|
| | | else if (topic == gatewayId + "/Security/EnOrWithdrawSucceedReport")
|
| | | {
|
| | | SecurityEnOrWithdrawSucceedReport(receiveData);
|
| | | }
|
| | | }
|
| | | //门锁上报
|
| | | if (topic == gatewayId + "/Alarms/SendAlarmInform") |
| | | { |
| | | //保存门锁报警信息到本地 |
| | | HdlAlarmsLogic.Current.SaveDoorLockAlarmInfo(receiveData); |
| | | |
| | | }
|
| | | //通过外部方式布防撤防成功时报告
|
| | | else if (topic == gatewayId + "/Security/EnOrWithdrawSucceedReport")
|
| | | catch (Exception ex)
|
| | | {
|
| | | SecurityEnOrWithdrawSucceedReport(receiveData);
|
| | | //Log出力
|
| | | HdlLogLogic.Current.WriteLog(ex);
|
| | | }
|
| | | }
|
| | |
|