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_H2G_EFT_DepositAcknowledgement tgt = new FFTgt_H2G_EFT_DepositAcknowledgement(); tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5); tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 5, 3); tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberUInt8(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_PinCheckReply tgt = new FFTgt_H2G_EFT_PinCheckReply(); tgt.ErrorCode = buffer[0]; tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 1, 5); tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 5, 3); tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberUInt8(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_G2H_GMUEvent_CouponData tgt = new FFTgt_G2H_GMUEvent_CouponData(); tgt.CashlessTransactionType = buffer[0]; tgt.CreditMeterLimit = FreeformHelper.GetBCDValue <short>(buffer, 1, 2); tgt.CreditMeterBalance = FreeformHelper.GetBCDValue <short>(buffer, 3, 2); tgt.CouponSerialNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 8); tgt.GameDoninationCode = FreeformHelper.GetBytesToNumberUInt8(buffer, 13, 1);; return(tgt); }
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); }
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); }