Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers.PolicyHelpers.GetPSLTRWeeklySchedule C# (CSharp) Method

GetPSLTRWeeklySchedule() private static method

private static GetPSLTRWeeklySchedule ( Microsoft.Azure.Management.RecoveryServices.Backup.Models serviceClientWeekly ) : WeeklyRetentionSchedule
serviceClientWeekly Microsoft.Azure.Management.RecoveryServices.Backup.Models
return WeeklyRetentionSchedule
        private static WeeklyRetentionSchedule GetPSLTRWeeklySchedule(ServiceClientModel.WeeklyRetentionSchedule serviceClientWeekly)
        {
            if (serviceClientWeekly == null)
            {
                return null;
            }

            WeeklyRetentionSchedule psWeekly = new WeeklyRetentionSchedule();

            psWeekly.DurationCountInWeeks = GetRetentionDurationInWeeks(serviceClientWeekly.RetentionDuration);
            psWeekly.RetentionTimes = ParseDateTimesToUTC(serviceClientWeekly.RetentionTimes);
            psWeekly.DaysOfTheWeek = HelperUtils.GetEnumListFromStringList<DayOfWeek>(serviceClientWeekly.DaysOfTheWeek);

            return psWeekly;
        }