private static DailyRetentionFormat GetPSLTRDailyRetentionFormat( ServiceClientModel.DailyRetentionFormat serviceClientFormat) { if (serviceClientFormat == null) { return(null); } DailyRetentionFormat psFormat = new DailyRetentionFormat(); if (serviceClientFormat.DaysOfTheMonth != null) { psFormat.DaysOfTheMonth = new List <Day>(); foreach (ServiceClientModel.Day serviceClientDay in serviceClientFormat.DaysOfTheMonth) { Day psDay = new Day() { Date = GetIntegerFromNullableIntgerValue(serviceClientDay.Date), IsLast = serviceClientDay.IsLast.HasValue ? (bool)serviceClientDay.IsLast : default(bool) }; psFormat.DaysOfTheMonth.Add(psDay); } } return(psFormat); }
private static ServiceClientModel.DailyRetentionFormat GetServiceClientLTRDailyRetentionFormat( DailyRetentionFormat psFormat) { if (psFormat == null) { return(null); } ServiceClientModel.DailyRetentionFormat serviceClientFormat = new ServiceClientModel.DailyRetentionFormat(); if (psFormat.DaysOfTheMonth != null) { serviceClientFormat.DaysOfTheMonth = new List <ServiceClientModel.Day>(); foreach (Day psDay in psFormat.DaysOfTheMonth) { ServiceClientModel.Day serviceClientDay = new ServiceClientModel.Day() { Date = psDay.Date, IsLast = psDay.IsLast }; serviceClientFormat.DaysOfTheMonth.Add(serviceClientDay); } } return(serviceClientFormat); }
private static DailyRetentionFormat GetPSLTRDailyRetentionFormat( ServiceClientModel.DailyRetentionFormat serviceClientFormat) { if (serviceClientFormat == null) { return(null); } DailyRetentionFormat psFormat = new DailyRetentionFormat(); if (serviceClientFormat.DaysOfTheMonth != null) { psFormat.DaysOfTheMonth = new List <Day>(); foreach (ServiceClientModel.Day serviceClientDay in serviceClientFormat.DaysOfTheMonth) { Day psDay = new Day() { Date = serviceClientDay.Date, IsLast = serviceClientDay.IsLast }; psFormat.DaysOfTheMonth.Add(psDay); } } return(psFormat); }
private static ServiceClientModel.DailyRetentionFormat GetServiceClientLTRDailyRetentionFormat( DailyRetentionFormat psFormat) { if (psFormat == null) { return null; } ServiceClientModel.DailyRetentionFormat serviceClientFormat = new ServiceClientModel.DailyRetentionFormat(); if (psFormat.DaysOfTheMonth != null) { serviceClientFormat.DaysOfTheMonth = new List<ServiceClientModel.Day>(); foreach (Day psDay in psFormat.DaysOfTheMonth) { ServiceClientModel.Day serviceClientDay = new ServiceClientModel.Day() { Date = psDay.Date, IsLast = psDay.IsLast }; serviceClientFormat.DaysOfTheMonth.Add(serviceClientDay); } } return serviceClientFormat; }
private static DailyRetentionFormat GetPSLTRDailyRetentionFormat( ServiceClientModel.DailyRetentionFormat serviceClientFormat) { if (serviceClientFormat == null) { return null; } DailyRetentionFormat psFormat = new DailyRetentionFormat(); if (serviceClientFormat.DaysOfTheMonth != null) { psFormat.DaysOfTheMonth = new List<Day>(); foreach (ServiceClientModel.Day serviceClientDay in serviceClientFormat.DaysOfTheMonth) { Day psDay = new Day() { Date = serviceClientDay.Date, IsLast = serviceClientDay.IsLast }; psFormat.DaysOfTheMonth.Add(psDay); } } return psFormat; }