Пример #1
0
        public static StreamingChannel Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new StreamingChannel
            {
                Id   = dynamicXml.Id,
                Name = dynamicXml.Name
            };

            return(builder);
        }
Пример #2
0
        public static ProductInfo Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new ProductInfo
            {
                IsAutoTraded         = dynamicXml.IsAutoTraded != null,
                IsInHostedStatistics = dynamicXml.IsInHostedStatistics != null,
                IsInLiveCenterSoccer = dynamicXml.IsInLiveCenterSoccer != null,
                IsInLiveScore        = dynamicXml.IsInLiveScore != null,
                Links      = ProductInfoLink.ParseList(dynamicXml.Links?.GetLinkList()),
                Streamings = StreamingChannel.ParseList(dynamicXml.Streaming?.GetChannelList())
            };

            return(builder);
        }