Beispiel #1
0
        public BetSettlementRollback CloneWithProduct(ProductType productType)
        {
            var builder = new BetSettlementRollback
            {
                EventId   = EventId,
                Markets   = Markets,
                RequestId = RequestId,
                Product   = productType,
                Timestamp = Timestamp
            };

            return(builder);
        }
Beispiel #2
0
        public static BetSettlementRollback Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new BetSettlementRollback
            {
                EventId   = dynamicXml.EventId,
                Markets   = BetSettlementMarket.ParseList(dynamicXml.GetMarketList()),
                RequestId = dynamicXml.RequestId <int?>(),
                Product   = dynamicXml.Product <ProductType>(),
                Timestamp = dynamicXml.Timestamp <long>()
            };

            return(builder);
        }