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

            buffer.SetValue(tgt2.EGMAssetNumber, 4);
            buffer.SetASCIIBytesValueWithLength(tgt2.CashlessAccountNumber, 40);
        }
Esempio n. 2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_EFT_EmployeeAccountNumber tgt = new FFTgt_H2G_EFT_EmployeeAccountNumber();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
            return(tgt);
        }
Esempio n. 3
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_EFT_EmployeeAccountNumber tgt = new FFTgt_H2G_EFT_EmployeeAccountNumber();
     tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
     tgt.CashlessAccountNumberLength = buffer[4];
     tgt.CashlessAccountNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 40);
     return tgt;
 }