Exemplo n.º 1
0
        public void MessageResponse(NotifMsg msg, NotifMsgResponse response)
        {
            _StateManager.HideUIMessage(msg.Id);

            if (msg.Id.StartsWith("ListenBy"))
            {
                ListenPickUpMsg info = (ListenPickUpMsg)msg.Info;

                _EngineCmdManager.SetRemoteListen(response == NotifMsgResponse.Ok || response == NotifMsgResponse.Timeout, info.Id);
                if (response == NotifMsgResponse.Ok || response == NotifMsgResponse.Timeout)
                {
                    _StateManager.Tlf.ListenBy.Reset(info);
                }
            }
            else if (msg.Id == "RdFrAsignedToOtherConfirmation")
            {
                if (response == NotifMsgResponse.Ok)
                {
                    RdFrAsignedToOtherMsg info = (RdFrAsignedToOtherMsg)msg.Info;
                    _EngineCmdManager.ConfirmRdTx(info.RdId);
                }
            }
            else if (msg.Id == Resources.BriefingFunction)
            {
                if (response == NotifMsgResponse.Ok)
                {
                    _EngineCmdManager.BriefingFunction();
                }
            }
            else if (msg.Id == Resources.DeleteSessionGLP)
            {
                if (response == NotifMsgResponse.Ok)
                {
                    General.SafeLaunchEvent(DeleteSessionGlp, this);
                }
            }
        }