public MarketCatalogueParameterWriter(MarketFilter filter, int maxResults, ISet<MarketProjection> marketProjection)
 {
     this.filter = filter;
     this.maximumResults = maxResults;
     this.projection = marketProjection;
     this.parameterWriter = new ParameterWriter();
 }
Exemplo n.º 2
0
        public IList<EventResult> CreateEvents(MarketFilter filter)
        {
            var events = this.client.ListEvents(filter).Where(e => e.MarketCount > 0).OrderBy(e => e.Event.OpenDate).ToList();

            return events;
        }
Exemplo n.º 3
0
        private MarketFilter CreateStandardFilter()
        {
            MarketFilter filter = new MarketFilter()
            {
                MarketBettingTypes = new HashSet<MarketBettingType>() { MarketBettingType.ODDS }
            };

            return filter;
        }
 public StandardMarketFilterParameterWriter(MarketFilter filter)
 {
     this.filter = filter;
 }