Esempio 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);
        }
Esempio n. 2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_EFT_SC_VerifyBalance tgt = new FFTgt_B2B_EFT_SC_VerifyBalance();

            tgt.EGMAssetNumber      = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.Status              = buffer[4].GetAppId <FF_GmuId_EFT_BalanceVerify_Status, FF_AppId_EFT_BalanceVerify_Status>();
            tgt.PlayerAccountNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
            tgt.Balance1            = FreeformHelper.GetBytesToNumberDouble(buffer, 45, 4);
            tgt.Balance2            = FreeformHelper.GetBytesToNumberDouble(buffer, 49, 4);
            tgt.Balance3            = FreeformHelper.GetBytesToNumberDouble(buffer, 53, 4);
            tgt.Balance4            = FreeformHelper.GetBytesToNumberDouble(buffer, 57, 4);
            return(tgt);
        }