Ejemplo n.º 1
0
        internal async Task <List <Schedule> > GetSchedulesInternalAsync(ScheduleParameters parameters)
        {
            var schedules = await ObjectEngine.GetObjectsAsync <Schedule>(parameters).ConfigureAwait(false);

            await Task.WhenAll(schedules.Select(async schedule =>
            {
                var response = await GetObjectPropertiesRawInternalAsync(schedule.Id, ObjectType.Schedule).ConfigureAwait(false);
                ResponseParser.LoadTimeTable(schedule, response);
            })).ConfigureAwait(false);

            return(schedules);
        }
Ejemplo n.º 2
0
        //######################################
        // GetSchedulesInternal
        //######################################

        internal List <Schedule> GetSchedulesInternal(ScheduleParameters parameters)
        {
            var schedules = ObjectEngine.GetObjects <Schedule>(parameters);

            foreach (var schedule in schedules)
            {
                var response = GetObjectPropertiesRawInternal(schedule.Id, ObjectType.Schedule);
                ResponseParser.LoadTimeTable(schedule, response);
            }

            return(schedules);
        }