internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_WithdrawalAcknowledgement tgt = new FFTgt_H2G_EFT_WithdrawalAcknowledgement();

            tgt.PlayerCardNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
            tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 5, 3);
            tgt.DisplayMessageLength   = FreeformHelper.GetBytesToBCDUInt8(buffer, 8, 1);
            tgt.DisplayMessage         = FreeformHelper.GetBCDValueString(buffer, 0, 9, 128);
            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);
        }