예제 #1
0
        private void AuthenticatePinNumber(string siteCode, int installationNo, string asset, string playerCardNumber, string encryptedPin, bool IsGameUnCapping)
        {
            InstallationDetailsForMSMQ installationDetails = ExCommsDataContext.Current.GetInstallationDetailsByDatapak(installationNo);

            HandlerHelper.Current.SaveSDTRequest(playerCardNumber, installationNo);

            asset = HandlerHelper.Current.GetAssetByStockPrefix(asset);
            DateTime transDate = DateTime.Now;

            GameCapAuthenticationRequest pinAuthenticationRequest = new GameCapAuthenticationRequest
            {
                TransactionID   = HandlerHelper.Current.NextPTRequestID().ToString(),
                TransactionDate = transDate.ToString("yyyyMMdd").PadLeft(8, '0'),
                TransactionTime = transDate.ToString("HHmmss").PadLeft(6, '0'),

                InstallationNo = installationNo,
                BarPosition    = installationDetails.Bar_Pos_Name,
                SlotNumber     = installationDetails.Bar_Pos_Name.PadLeft(8, '0'),
                SlotIndex      = installationDetails.Bar_Pos_Name.PadLeft(6, '0'),
                Stand          = asset,

                CardNo       = playerCardNumber,
                EncryptedPin = encryptedPin.PadLeft(16, '0'),
                SiteCode     = siteCode,
                //Authentication =
            };

            if (IsGameUnCapping)
            {
                HandlerHelper.PlayerGatewayInstance.GameCapPINAuthentication(pinAuthenticationRequest, this.UnCapAuthenticatePinNumberResponse);
            }
            else
            {
                HandlerHelper.PlayerGatewayInstance.GameCapPINAuthentication(pinAuthenticationRequest, this.CapAuthenticatePinNumberResponse);
            }
        }
예제 #2
0
        private void AuthenticatePinNumber(string siteCode, int installationNo, string asset, string playerCardNumber, string encryptedPin, bool IsGameUnCapping)
        {
            InstallationDetailsForMSMQ installationDetails = ExCommsDataContext.Current.GetInstallationDetailsByDatapak(installationNo);
            HandlerHelper.Current.SaveSDTRequest(playerCardNumber, installationNo);

            asset = HandlerHelper.Current.GetAssetByStockPrefix(asset);
            DateTime transDate = DateTime.Now;

            GameCapAuthenticationRequest pinAuthenticationRequest = new GameCapAuthenticationRequest
            {
                TransactionID = HandlerHelper.Current.NextPTRequestID().ToString(),
                TransactionDate = transDate.ToString("yyyyMMdd").PadLeft(8, '0'),
                TransactionTime = transDate.ToString("HHmmss").PadLeft(6, '0'),

                InstallationNo = installationNo,
                BarPosition = installationDetails.Bar_Pos_Name,
                SlotNumber = installationDetails.Bar_Pos_Name.PadLeft(8, '0'),
                SlotIndex = installationDetails.Bar_Pos_Name.PadLeft(6, '0'),
                Stand = asset,

                CardNo = playerCardNumber,
                EncryptedPin = encryptedPin.PadLeft(16, '0'),
                SiteCode = siteCode,
                //Authentication = 
            };

            if (IsGameUnCapping)
                HandlerHelper.PlayerGatewayInstance.GameCapPINAuthentication(pinAuthenticationRequest, this.UnCapAuthenticatePinNumberResponse);
            else
                HandlerHelper.PlayerGatewayInstance.GameCapPINAuthentication(pinAuthenticationRequest, this.CapAuthenticatePinNumberResponse);
        }