Exemplo n.º 1
0
        static void DisplayTasks(ILokadService service)
        {
            var tasks = service.GetTasks();
            var series = service.GetSeries().ToDictionary(s => s.SerieID);

            foreach (var task in tasks)
            {
                var serieForTask = series[task.SerieID];
                Console.WriteLine("Task for {0}: {1} x {2}", serieForTask.Name, task.FuturePeriods, task.Period);
            }
        }
Exemplo n.º 2
0
        static void DisplayTasks(ILokadService service)
        {
            var tasks  = service.GetTasks();
            var series = service.GetSeries().ToDictionary(s => s.SerieID);

            foreach (var task in tasks)
            {
                var serieForTask = series[task.SerieID];
                Console.WriteLine("Task for {0}: {1} x {2}", serieForTask.Name, task.FuturePeriods, task.Period);
            }
        }
Exemplo n.º 3
0
        public static void DisplaySeries(ILokadService api)
        {
            var series = api.GetSeries();

            var tags = api.GetTags(series).ToDictionary(t => t.SerieID);
            var events = api.GetEvents(series).ToDictionary(t => t.SerieID);
            series.ForEach(s =>
                {
                    Console.WriteLine(s.Name);
                    if (tags.ContainsKey(s.SerieID))
                        Console.WriteLine("   Tagged: {0}", tags[s.SerieID].Tags.Join(", "));
                    if (events.ContainsKey(s.SerieID))
                        Console.WriteLine("   With {0} events", events[s.SerieID].Events.Length);
                });
        }
Exemplo n.º 4
0
        public static void DisplaySeries(ILokadService api)
        {
            var series = api.GetSeries();

            var tags   = api.GetTags(series).ToDictionary(t => t.SerieID);
            var events = api.GetEvents(series).ToDictionary(t => t.SerieID);

            series.ForEach(s =>
            {
                Console.WriteLine(s.Name);
                if (tags.ContainsKey(s.SerieID))
                {
                    Console.WriteLine("   Tagged: {0}", tags[s.SerieID].Tags.Join(", "));
                }
                if (events.ContainsKey(s.SerieID))
                {
                    Console.WriteLine("   With {0} events", events[s.SerieID].Events.Length);
                }
            });
        }