public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer)
        {
            FFTgt_G2H_SC_Transaction_Update tgt2 = tgt as FFTgt_G2H_SC_Transaction_Update;

            buffer.SetValue(tgt2.EGMAssetNumber, 4);
            buffer.SetValue(tgt2.Status.GetGmuIdInt8());
            buffer.SetValue(tgt2.AccountType.GetGmuIdInt8());
            buffer.SetValue(tgt2.TransactionAmount, 4);
            buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
            buffer.SetValue(tgt2.TransTimestamp, 2);
            buffer.SetValue(tgt2.TransactionID);
        }
        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);
        }
 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;
 }