Esempio n. 1
0
        /// <summary>
        /// The get location distr.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <LocationPV> GetLocationDistr(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.LOCATION, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <LocationPV> >(data));
            }

            return(null);
        }
Esempio n. 2
0
        /// <summary>
        /// The get event river data.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <Event> GetEventRiverData(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.EVENT, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <Event> >(data));
            }

            return(null);
        }
Esempio n. 3
0
        /// <summary>
        /// The get media exposure.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <MediaExposure> GetMediaExposure(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.MEDIA, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <MediaExposure> >(data));
            }

            return(null);
        }
Esempio n. 4
0
        /// <summary>
        /// The get most sentiment news.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <Event> GetMostSentimentNews(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.TOPSENTINEWS, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <Event> >(data));
            }

            return(null);
        }
Esempio n. 5
0
        /// <summary>
        /// The get age data.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <AgeDistribution> GetAgeData(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.AGE, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <AgeDistribution> >(data));
            }

            return(null);
        }
Esempio n. 6
0
        /// <summary>
        /// The get sentiments data.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <SentimentResult> GetSentimentsData(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.SENTIMENTS, date);

            if (data != null)
            {
                return(AnalysisDataConvert.FromCAData <List <SentimentResult> >(data));
            }

            return(null);
        }
Esempio n. 7
0
        /// <summary>
        /// The get top competitor news.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>The <see cref="List" />.</returns>
        public List <Event> GetTopCompetitorNews(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.TOPNEWS, date);

            if (data != null)
            {
                var model = AnalysisDataConvert.FromCAData <List <Event> >(data);
                return(model.OrderByDescending(i => i.Date).ToList());
            }

            return(null);
        }
Esempio n. 8
0
        /// <summary>
        /// Gets the weekly report.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns>WeeklyReportModel.</returns>
        public WeeklyReportModel GetWeeklyReport(DateTime date)
        {
            date = new DateTime(date.Year, date.Month, date.Day);
            var data = this.cadataManager.GetCaData(DataType.WEEKLYREPORT, date);

            if (data != null)
            {
                var model = AnalysisDataConvert.FromCAData <WeeklyReportModel>(data);
                return(model);
            }

            return(null);
        }