Пример #1
0
        public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer)
        {
            FFTgt_G2H_EFT_DepositComplete tgt2 = tgt as FFTgt_G2H_EFT_DepositComplete;

            buffer.SetBCDValue(tgt2.NonCashableAmount, 4);
            buffer.SetBCDValue(tgt2.CashableAmount, 4);
            buffer.Add(tgt2.ErrorCode);
            buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
        }
Пример #2
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_DepositComplete tgt = new FFTgt_G2H_EFT_DepositComplete();
     tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
     tgt.CashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
     tgt.ErrorCode = buffer[8];
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
     return tgt;
 }
Пример #3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_DepositComplete tgt = new FFTgt_G2H_EFT_DepositComplete();

            tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            tgt.CashableAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
            tgt.ErrorCode         = buffer[8];
            tgt.PlayerCardNumber  = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
            return(tgt);
        }