Esempio n. 1
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_ChangeBaudRate tgt = new FFTgt_H2G_CodeDownload_ChangeBaudRate();

            tgt.BaudRate = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            return(tgt);
        }
Esempio n. 2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_TTimeOut_Response tgt = new FFTgt_H2G_GVA_EFT_TTimeOut_Response();

            tgt.TimeOut = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 1);
            return(tgt);
        }
Esempio n. 3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_CashlessAccountLookup tgt = new FFTgt_G2H_EFT_CashlessAccountLookup();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetASCIIStringValue(buffer, 5, 40);
            return(tgt);
        }
Esempio n. 4
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_EFT_SC_SerailNumber tgt = new FFTgt_B2B_EFT_SC_SerailNumber();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
            return(tgt);
        }
Esempio n. 5
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_PIN_ChangeResponse tgt = new FFTgt_H2G_EFT_PIN_ChangeResponse();

            tgt.ErrorCode            = buffer[0];
            tgt.PlayerCardNumber     = FreeformHelper.GetBCDValueString(buffer, 0, 1, 5);
            tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberInt32(buffer, 6, 1);
            tgt.DisplayMessage       = FreeformHelper.GetBCDValueString(buffer, 0, 7, 128);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_FileDownload tgt = new FFTgt_H2G_CodeDownload_FileDownload();

            tgt.FileType       = buffer[0].GetAppId <FF_GmuId_FileDownloadFileType, FF_AppId_FileDownloadFileType>();
            tgt.Length         = FreeformHelper.GetBytesToNumberInt32(buffer, 1, 4);
            tgt.CompressedFile = buffer.CopyToBuffer(5, tgt.Length);
            tgt.CRC            = FreeformHelper.GetValue <short>(buffer, tgt.Length + 5, 2);
            return(tgt);
        }
Esempio n. 7
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
        {
            FFTgt_H2G_AD_Amount_Request tgt = new FFTgt_H2G_EFT_WithdrawalAuthorization();

            tgt.ErrorCode            = buffer[0];
            tgt.PlayerCardNumber     = FreeformHelper.GetBCDValueString(buffer, 0, 1, 5);
            tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberInt32(buffer, 6, 1);
            tgt.DisplayMessage       = FreeformHelper.GetBCDValueString(buffer, 0, 7, 128);
            return(tgt);
        }
Esempio n. 8
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_SC_Transaction_Update tgt = new FFTgt_G2H_SC_Transaction_Update();

            tgt.EGMAssetNumber    = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.Status            = buffer[4].GetAppId <FF_GmuId_EFT_SC_Tranaction_Update_Status, FF_AppId_EFT_SC_Tranaction_Update_Status>();
            tgt.AccountType       = buffer[5].GetAppId <FF_GmuId_EFT_SC_Tranaction_Update_AccTypes, FF_AppId_EFT_SC_Tranaction_Update_AccTypes>();
            tgt.TransactionAmount = FreeformHelper.GetBytesToNumberDouble(buffer, 5, 4);
            tgt.PlayerCardNumber  = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
            tgt.TransTimestamp    = FreeformHelper.GetBytesToNumberTimeSpan(buffer, 13, 2);
            tgt.TransactionID     = buffer[18];
            return(tgt);
        }
Esempio n. 9
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_EFT_SC_VerifyBalance tgt = new FFTgt_B2B_EFT_SC_VerifyBalance();

            tgt.EGMAssetNumber      = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.Status              = buffer[4].GetAppId <FF_GmuId_EFT_BalanceVerify_Status, FF_AppId_EFT_BalanceVerify_Status>();
            tgt.PlayerAccountNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
            tgt.Balance1            = FreeformHelper.GetBytesToNumberDouble(buffer, 45, 4);
            tgt.Balance2            = FreeformHelper.GetBytesToNumberDouble(buffer, 49, 4);
            tgt.Balance3            = FreeformHelper.GetBytesToNumberDouble(buffer, 53, 4);
            tgt.Balance4            = FreeformHelper.GetBytesToNumberDouble(buffer, 57, 4);
            return(tgt);
        }
Esempio n. 10
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_EmployeeAccountNumber_Response tgt = new FFTgt_H2G_EFT_EmployeeAccountNumber_Response();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
            tgt.ResponseStatus  = buffer[45];
            tgt.PINCheck        = buffer[46].GetAppId <FF_GmuId_EFT_PINCheck, FF_AppId_EFT_PINCheck>();;
            tgt.ErrorTextLength = FreeformHelper.GetBytesToNumberUInt8(buffer, 67, 1);
            tgt.ErrorText       = FreeformHelper.GetASCIIStringValue(buffer, 68, 128);
            return(tgt);
        }
Esempio n. 11
0
        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);
        }