public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer) { FFTgt_H2G_EFT_CashlessAccVerify tgt2 = tgt as FFTgt_H2G_EFT_CashlessAccVerify; buffer.SetValue(tgt2.EGMAssetNumber, 4); buffer.SetASCIIBytesValueWithLength(tgt2.CashlessAccountNumber, 40); buffer.SetValue(tgt2.ResponseStatus); buffer.SetBCDValue(tgt2.PlayerAccountNumber, 5); buffer.SetValue(tgt2.PINCheck); buffer.SetValue(tgt2.AutoDownloadTopUPStatusFlag.GetGmuIdInt8()); buffer.SetValue(tgt2.AutoDownloadAccountType.GetGmuIdInt8()); buffer.SetBCDValue(tgt2.AutoDownloadAmount, 4); buffer.SetValue(tgt2.AutoTopUpAccountType.GetGmuIdInt8()); buffer.SetBCDValue(tgt2.AutoTopUpMaxAmount, 4); buffer.SetBCDValue(tgt2.AutoDownloadAmount, 4); buffer.SetBCDValue(tgt2.AutoTopUpTrigger, 4); buffer.SetValue(tgt2.ErrorTextLength); buffer.SetASCIIBytesValue(tgt2.ErrorText, 128); }
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_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); }