File tree Expand file tree Collapse file tree 2 files changed +4
-28
lines changed Expand file tree Collapse file tree 2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -19,33 +19,21 @@ public partial class TimeRange
19
19
/// <summary>
20
20
/// Initializes a new instance of the TimeRange class.
21
21
/// </summary>
22
- [ JsonConstructor ]
23
22
public TimeRange ( ) { }
24
23
25
- /// <summary>
26
- /// Initializes a new instance of the TimeRange class.
27
- /// </summary>
28
- /// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29
- /// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30
- public TimeRange ( long from , long until )
31
- {
32
- From = from ;
33
- Until = until ;
34
- }
35
-
36
24
/// <summary>
37
25
/// When the rule should start to be active, in Unix epoch time.
38
26
/// </summary>
39
27
/// <value>When the rule should start to be active, in Unix epoch time.</value>
40
28
[ JsonPropertyName ( "from" ) ]
41
- public long From { get ; set ; }
29
+ public long ? From { get ; set ; }
42
30
43
31
/// <summary>
44
32
/// When the rule should stop to be active, in Unix epoch time.
45
33
/// </summary>
46
34
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
47
35
[ JsonPropertyName ( "until" ) ]
48
- public long Until { get ; set ; }
36
+ public long ? Until { get ; set ; }
49
37
50
38
/// <summary>
51
39
/// Returns the string presentation of the object
Original file line number Diff line number Diff line change @@ -19,33 +19,21 @@ public partial class TimeRange
19
19
/// <summary>
20
20
/// Initializes a new instance of the TimeRange class.
21
21
/// </summary>
22
- [ JsonConstructor ]
23
22
public TimeRange ( ) { }
24
23
25
- /// <summary>
26
- /// Initializes a new instance of the TimeRange class.
27
- /// </summary>
28
- /// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29
- /// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30
- public TimeRange ( long from , long until )
31
- {
32
- From = from ;
33
- Until = until ;
34
- }
35
-
36
24
/// <summary>
37
25
/// When the rule should start to be active, in Unix epoch time.
38
26
/// </summary>
39
27
/// <value>When the rule should start to be active, in Unix epoch time.</value>
40
28
[ JsonPropertyName ( "from" ) ]
41
- public long From { get ; set ; }
29
+ public long ? From { get ; set ; }
42
30
43
31
/// <summary>
44
32
/// When the rule should stop to be active, in Unix epoch time.
45
33
/// </summary>
46
34
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
47
35
[ JsonPropertyName ( "until" ) ]
48
- public long Until { get ; set ; }
36
+ public long ? Until { get ; set ; }
49
37
50
38
/// <summary>
51
39
/// Returns the string presentation of the object
You can’t perform that action at this time.
0 commit comments