Esempio n. 1
0
        /// <summary>
        /// Reads single schedule.
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        public async Task <(ScheduleInfo Data, DataStatus Status)> DataReadScheduleAsync(Guid uuid)
        {
            var(schedule, status) = await ReadScheduleAsync(uuid, ScheduleFlags.ALL);

            if (status.IsGood)
            {
                Data.UpdateSchedules(schedule);
            }
            else
            {
                _logger?.LogError($"Error code {status.Code} in reading schedule: {status.Explanation}.");
            }

            Data.Status = status;
            return(schedule, Data.Status);
        }