예제 #1
0
        public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer)
        {
            FFTgt_G2H_EFT_CashlessAccountLookup tgt2 = tgt as FFTgt_G2H_EFT_CashlessAccountLookup;

            buffer.SetValue(tgt2.EGMAssetNumber, 4);
            buffer.SetASCIIBytesValueWithLength(tgt2.CashlessAccountNumber, 40);
        }
예제 #2
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_CashlessAccountLookup tgt = new FFTgt_G2H_EFT_CashlessAccountLookup();
     tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
     tgt.CashlessAccountNumberLength = buffer[4];
     tgt.CashlessAccountNumber = FreeformHelper.GetASCIIStringValue(buffer, 5, 40);
     return tgt;
 }
예제 #3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_CashlessAccountLookup tgt = new FFTgt_G2H_EFT_CashlessAccountLookup();

            tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            tgt.CashlessAccountNumberLength = buffer[4];
            tgt.CashlessAccountNumber       = FreeformHelper.GetASCIIStringValue(buffer, 5, 40);
            return(tgt);
        }