Exemplo n.º 1
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);
        }