public QueriesApi(IBitmovinApiClientFactory apiClientFactory)
 {
     Count      = new CountApi(apiClientFactory);
     Sum        = new SumApi(apiClientFactory);
     Avg        = new AvgApi(apiClientFactory);
     Min        = new MinApi(apiClientFactory);
     Max        = new MaxApi(apiClientFactory);
     Stddev     = new StddevApi(apiClientFactory);
     Percentile = new PercentileApi(apiClientFactory);
     Variance   = new VarianceApi(apiClientFactory);
     Median     = new MedianApi(apiClientFactory);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 获取新闻
        /// </summary>
        private async void GetNews()
        {
            if (NewsCollection.Count <= 0)
            {
                var news = await MaxApi.GetNews("dota2", 0);

                if (news == null)
                {
                    // 获取新闻失败
                    return;
                }
                foreach (var newsItem in news.result)
                {
                    NewsCollection.Add(newsItem);
                }
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 获取话题
        /// </summary>
        private async void GetBBSTopics()
        {
            if (TopicsCollection.Count <= 0)
            {
                var topics = await MaxApi.GetBBSTopics();

                if (topics == null)
                {
                    // 没有获取到话题
                    return;
                }
                foreach (var topic in topics.topics[1].children)
                {
                    TopicsCollection.Add(topic);
                }
            }
        }