Exemple #1
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_MaxDeposit_Response tgt = new FFTgt_H2G_GVA_EFT_MaxDeposit_Response();

            tgt.MaxDeposit = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            return(tgt);
        }
Exemple #2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GMUEvent_TicketData tgt = new FFTgt_G2H_GMUEvent_TicketData();

            tgt.BarcodeNumber = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 9);
            tgt.ErrorCode     = FreeformHelper.GetBytesToNumberUInt8(buffer, 9, 1);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_WithdrawalComplete tgt = new FFTgt_G2H_EFT_WithdrawalComplete();

            tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            tgt.CashableAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
            tgt.ErrorCode         = buffer[8];
            tgt.PlayerCardNumber  = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_WithdrawalRequest tgt = new FFTgt_G2H_EFT_WithdrawalRequest();

            tgt.AccountType      = buffer[0].GetAppId <FF_GmuId_EFT_AccountTypes, FF_AppId_EFT_AccountTypes>();
            tgt.AmountRequested  = FreeformHelper.GetBytesToBCDDouble(buffer, 1, 4);
            tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 5);
            tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 10, 2);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_DepositRequest tgt = new FFTgt_G2H_EFT_DepositRequest();

            tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            tgt.CashableAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
            tgt.PlayerCardNumber  = FreeformHelper.GetBCDValueString(buffer, 0, 8, 5);
            tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 13, 2);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_WithdrawalAuthorization tgt = new FFTgt_H2G_EFT_WithdrawalAuthorization();

            tgt.NonCashableAmount      = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            tgt.CashableAmount         = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
            tgt.ErrorCode              = buffer[8];
            tgt.PlayerCardNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
            tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 14, 3);
            tgt.DisplayMessageLength   = FreeformHelper.GetBytesToBCDUInt8(buffer, 17, 1);
            tgt.DisplayMessage         = FreeformHelper.GetASCIIStringValue(buffer, 18, tgt.DisplayMessageLength);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_WithdrawalAuthorization2 tgt = new FFTgt_H2G_EFT_WithdrawalAuthorization2();

            tgt.AccountType              = (FF_AppId_EFT_AccountTypes)buffer[0];
            tgt.NonCashableAmount        = FreeformHelper.GetBytesToBCDDouble(buffer, 1, 4);
            tgt.CashableAmount           = FreeformHelper.GetBytesToBCDDouble(buffer, 5, 4);
            tgt.NonCashableBalanceAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 9, 4);
            tgt.CashableBalanceAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 13, 4);
            tgt.ErrorCode              = buffer[17];
            tgt.PlayerCardNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 18, 5);
            tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 23, 3);
            tgt.DisplayMessageLength   = FreeformHelper.GetBytesToBCDUInt8(buffer, 26, 1);
            tgt.DisplayMessage         = FreeformHelper.GetBCDValueString(buffer, 0, 27, 128);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_OfferList tgt = new FFTgt_H2G_EFT_OfferList();

            tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
            tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 5, 2);
            tgt.NonCashableBalance = FreeformHelper.GetBytesToBCDDouble(buffer, 7, 5);
            tgt.CashableBalance    = FreeformHelper.GetBytesToBCDDouble(buffer, 12, 5);
            tgt.OfferId1           = FreeformHelper.GetBytesToBCDDouble(buffer, 17, 5);
            tgt.OfferId2           = FreeformHelper.GetBytesToBCDDouble(buffer, 22, 5);
            tgt.OfferId3           = FreeformHelper.GetBytesToBCDDouble(buffer, 27, 5);
            tgt.OfferId4           = FreeformHelper.GetBytesToBCDDouble(buffer, 32, 5);
            tgt.OfferId5           = FreeformHelper.GetBytesToBCDDouble(buffer, 37, 5);
            tgt.OfferId6           = FreeformHelper.GetBytesToBCDDouble(buffer, 42, 5);
            tgt.OfferId7           = FreeformHelper.GetBytesToBCDDouble(buffer, 47, 5);
            tgt.OfferId8           = FreeformHelper.GetBytesToBCDDouble(buffer, 52, 5);
            tgt.OfferId9           = FreeformHelper.GetBytesToBCDDouble(buffer, 57, 5);
            tgt.OfferId10          = FreeformHelper.GetBytesToBCDDouble(buffer, 62, 5);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_CashlessAccVerify tgt = new FFTgt_H2G_EFT_CashlessAccVerify();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetASCIIStringValue(buffer, 5, 40);
            tgt.ResponseStatus              = buffer[45];
            tgt.PlayerAccountNumber         = FreeformHelper.GetBCDValueString(buffer, 0, 46, 5);
            tgt.PINCheck                    = buffer[51];
            tgt.AutoDownloadTopUPStatusFlag = buffer[52].GetAppId <FF_GmuId_EFT_AutoDownload_TopUp_StatusFlags, FF_AppId_EFT_AutoDownload_TopUp_StatusFlags>();
            tgt.AutoDownloadAccountType     = buffer[53].GetAppId <FF_GmuId_EFT_AutoDownload_TopUp_AccountTypes, FF_AppId_EFT_AutoDownload_TopUp_AccountTypes>();
            tgt.AutoDownloadAmount          = FreeformHelper.GetBytesToBCDDouble(buffer, 54, 4);
            tgt.AutoTopUpAccountType        = buffer[58].GetAppId <FF_GmuId_EFT_AutoDownload_TopUp_AccountTypes, FF_AppId_EFT_AutoDownload_TopUp_AccountTypes>();
            tgt.AutoTopUpMaxAmount          = FreeformHelper.GetBytesToBCDDouble(buffer, 59, 4);
            tgt.AutoTopUpTrigger            = FreeformHelper.GetBytesToBCDDouble(buffer, 63, 4);
            tgt.ErrorTextLength             = FreeformHelper.GetBytesToNumberUInt8(buffer, 67, 1);
            tgt.ErrorText                   = FreeformHelper.GetASCIIStringValue(buffer, 68, 128);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GMUEvent_StdData tgt = new FFTgt_G2H_GMUEvent_StdData();

            tgt.ExceptionCode    = buffer[0].GetAppId <FF_GmuId_GMUEvent_XCodes, FF_AppId_GMUEvent_XCodes>();
            tgt.JackpotID        = buffer[1].GetAppId <FF_GmuId_GMUEvent_JackpotIDs, FF_AppId_GMUEvent_JackpotIDs>();
            tgt.EmployeeCardID   = FreeformHelper.GetHexStringValue(buffer, 2, 2);
            tgt.LastBet          = FreeformHelper.GetBCDValue <short>(buffer, 4, 2);
            tgt.DoorStatus       = FreeformHelper.GetBytesToNumberUInt8(buffer, 6, 1);
            tgt.OptionByte       = FreeformHelper.GetBytesToNumberUInt8(buffer, 7, 1);
            tgt.JackpotAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 8, 6);
            tgt.PlayerCard       = FreeformHelper.GetBCDValueString(buffer, 0, 14, 5);
            tgt.BonusPoints      = FreeformHelper.GetBCDValue <short>(buffer, 19, 2);
            tgt.LastBill         = FreeformHelper.GetBytesToNumberUInt8(buffer, 21, 1);
            tgt.SMICode          = FreeformHelper.GetASCIIStringValueTrim(buffer, 22, 8);
            tgt.GameDenomination = FreeformHelper.GetBCDValue <int>(buffer, 30, 4);
            tgt.CasinoID         = FreeformHelper.GetASCIIStringValueTrim(buffer, 34, 3);
            tgt.BonusCountdown   = FreeformHelper.GetBCDValue <short>(buffer, 37, 2);
            tgt.BonusPoints      = FreeformHelper.GetBCDValue <short>(buffer, 39, 2);
            return(tgt);
        }
 protected override void AddSubParsersInternal()
 {
     this.AddBufferEntityParser(typeof(FF_GmuId_AccountingMeterIds), typeof(FF_AppId_AccountingMeterIds),
                                (tgt, idx, len, buf) =>
     {
         FFTgt_G2H_AccountingMeter meter = new FFTgt_G2H_AccountingMeter((FF_AppId_AccountingMeterIds)idx, FreeformHelper.GetBytesToBCDDouble(buf, 0, len));
         ((FFTgt_G2H_AccountingMeters)tgt).Meters.Add(meter);
         return(meter);
     });
 }