|
1 | 1 | using System.Runtime.Serialization;
|
| 2 | +using Umbraco.Cms.Core.Models.Entities; |
2 | 3 |
|
3 | 4 | namespace Umbraco.Cms.Core.Models.ContentEditing
|
4 | 5 | {
|
5 | 6 | [DataContract(Name = "historyCleanup", Namespace = "")]
|
6 |
| - public class HistoryCleanup |
| 7 | + public class HistoryCleanup : BeingDirtyBase |
7 | 8 | {
|
| 9 | + private bool _preventCleanup; |
| 10 | + private int? _keepAllVersionsNewerThanDays; |
| 11 | + private int? _keepLatestVersionPerDayForDays; |
| 12 | + |
8 | 13 | [DataMember(Name = "preventCleanup")]
|
9 |
| - public bool PreventCleanup { get; set; } |
| 14 | + public bool PreventCleanup |
| 15 | + { |
| 16 | + get => _preventCleanup; |
| 17 | + set => SetPropertyValueAndDetectChanges(value, ref _preventCleanup, nameof(PreventCleanup)); |
| 18 | + } |
10 | 19 |
|
11 | 20 | [DataMember(Name = "keepAllVersionsNewerThanDays")]
|
12 |
| - public int? KeepAllVersionsNewerThanDays { get; set; } |
| 21 | + public int? KeepAllVersionsNewerThanDays |
| 22 | + { |
| 23 | + get => _keepAllVersionsNewerThanDays; |
| 24 | + set => SetPropertyValueAndDetectChanges(value, ref _keepAllVersionsNewerThanDays, nameof(KeepAllVersionsNewerThanDays)); |
| 25 | + } |
13 | 26 |
|
14 | 27 | [DataMember(Name = "keepLatestVersionPerDayForDays")]
|
15 |
| - public int? KeepLatestVersionPerDayForDays { get; set; } |
| 28 | + public int? KeepLatestVersionPerDayForDays |
| 29 | + { |
| 30 | + get => _keepLatestVersionPerDayForDays; |
| 31 | + set => SetPropertyValueAndDetectChanges(value, ref _keepLatestVersionPerDayForDays, nameof(KeepLatestVersionPerDayForDays)); |
| 32 | + } |
16 | 33 | }
|
17 | 34 | }
|
0 commit comments