Exemplo n.º 1
0
        public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer)
        {
            FFTgt_G2H_EFT_DepositRequest tgt2 = tgt as FFTgt_G2H_EFT_DepositRequest;

            buffer.SetBCDValue(tgt2.NonCashableAmount, 4);
            buffer.SetBCDValue(tgt2.CashableAmount, 4);
            buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
            buffer.SetBCDValue(tgt2.Pin, 2);
        }
Exemplo n.º 2
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_DepositRequest tgt = new FFTgt_G2H_EFT_DepositRequest();
     tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
     tgt.CashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 8, 5);
     tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 13, 2);
     return tgt;
 }
Exemplo n.º 3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_DepositRequest tgt = new FFTgt_G2H_EFT_DepositRequest();

            tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
            tgt.CashableAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
            tgt.PlayerCardNumber  = FreeformHelper.GetBCDValueString(buffer, 0, 8, 5);
            tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 13, 2);
            return(tgt);
        }