Exemplo n.º 1
0
        protected override bool ProcessG2HMessageInternal(MonMsg_G2H request)
        {
            MonTgt_G2H_GameCapping_StartEnd tgt_G2H_GameCapping_Start = request.Targets[0] as MonTgt_G2H_GameCapping_StartEnd;

            ExCommsDataContext.Current.AlertGameCappingSessionExpires(request.InstallationNo);
            return(true);
        }
Exemplo n.º 2
0
        protected override bool ProcessH2GMessageInternal(MonMsg_H2G request)
        {
            MonTgt_G2H_GameCapping_StartEnd tgt_G2H_GameCapping_Start = request.Targets[0] as MonTgt_G2H_GameCapping_StartEnd;
            IGameCapping gameCapping = GameCapping.GetInstance();

            gameCapping.Process_GameCapping(request.SiteCode, request.InstallationNo, tgt_G2H_GameCapping_Start, this.IsGameUnCapping);
            return(true);
        }
Exemplo n.º 3
0
        public void Process_GameCapping(string siteCode, int installationNo, MonTgt_G2H_GameCapping_StartEnd tgt_G2H_GameCapping_Start, bool isGameUnCapping)
        {
            string playerCardNo     = tgt_G2H_GameCapping_Start.PlayerCardNumber;
            string empCardNo        = tgt_G2H_GameCapping_Start.EmployeeCardNumber;
            bool   isEmpCardCapping = false;

            if (Convert.ToInt64(empCardNo) == 0)
            {
                empCardNo        = playerCardNo;
                isEmpCardCapping = false;
            }
            else
            {
                isEmpCardCapping = true;
            }

            Encoding _encoding    = HandlerHelper.Current.Encode;
            string   pinNumber    = Crypto.Crypto.AsciiToHex(tgt_G2H_GameCapping_Start.PlayerPIN, _encoding);
            string   encryptedPin = HandlerHelper.Current.GetEncryptedPIN(pinNumber);

            playerCardNo = (Convert.ToInt64(playerCardNo) != 0) ? playerCardNo : empCardNo;

            this.ValidateAndStartGameCapping(siteCode, isEmpCardCapping, installationNo, empCardNo, playerCardNo, pinNumber, isGameUnCapping);
        }