コード例 #1
0
        public static BetSettlementMarket Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new BetSettlementMarket
            {
                Id         = dynamicXml.Id <int>(),
                Outcomes   = BetSettlementOutcome.ParseList(dynamicXml.GetOutcomeList()),
                Specifiers = dynamicXml.Specifiers,
                VoidReason = dynamicXml.void_reason
            };

            return(builder);
        }
コード例 #2
0
        public static BetSettlementOutcome Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new BetSettlementOutcome()
            {
                DeadHeatFactor = dynamicXml.DeadHeatFactor <double?>(),
                Id             = OutcomeIdParser.ParseId(dynamicXml.Id),
                Result         = dynamicXml.Result <int>(),
                VoidFactor     = dynamicXml.VoidFactor <double?>()
            };

            return(builder);
        }