internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer) { FFTgt_G2H_AD_Amount_Request tgt = new FFTgt_G2H_AD_Amount_Request(); tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5); tgt.Status = (FF_GmuId_EFT_AutoDownload_Status)buffer[5]; tgt.AccountType = (FF_GmuId_EFT_AutoDownload_TopUp_AccountTypes)buffer[6]; tgt.AutoDownloadAmount = FreeformHelper.GetBCDValue <double>(buffer, 0, 7, 4); return(tgt); }
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer) { FFTgt_H2G_GVA_EFT_Withdraw_Response tgt = new FFTgt_H2G_GVA_EFT_Withdraw_Response(); tgt.WithdrawalAmount_option1 = FreeformHelper.GetBCDValue <Double>(buffer, 0, 4); tgt.WithdrawalAmount_option2 = FreeformHelper.GetBCDValue <Double>(buffer, 4, 4); tgt.WithdrawalAmount_option3 = FreeformHelper.GetBCDValue <Double>(buffer, 8, 4); tgt.WithdrawalAmount_option4 = FreeformHelper.GetBCDValue <Double>(buffer, 12, 4); 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_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); }