示例#1
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);
        }
        public static OddsChangeOutcome Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var active  = (int)dynamicXml.Active <int>();
            var builder = new OddsChangeOutcome
            {
                Active        = active == 1,
                Id            = OutcomeIdParser.ParseId(dynamicXml.Id),
                Odds          = dynamicXml.Odds <double?>(),
                Probabilities = dynamicXml.Probabilities <double?>()
            };


            return(builder);
        }