@@ -7,53 +7,53 @@ namespace Notion.Client
77{
88 public class DateFilter : SinglePropertyFilter
99 {
10- public DateFilterCondition Date { get ; set ; }
11- }
10+ public Condition Date { get ; set ; }
1211
13- public class DateFilterCondition
14- {
15- [ JsonProperty ( "equals" ) ]
16- [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
17- public Nullable < DateTime > Equal { get ; set ; }
12+ public class Condition
13+ {
14+ [ JsonProperty ( "equals" ) ]
15+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
16+ public Nullable < DateTime > Equal { get ; set ; }
1817
19- [ JsonProperty ( "before" ) ]
20- [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
21- public Nullable < DateTime > Before { get ; set ; }
18+ [ JsonProperty ( "before" ) ]
19+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
20+ public Nullable < DateTime > Before { get ; set ; }
2221
23- [ JsonProperty ( "after" ) ]
24- [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
25- public Nullable < DateTime > After { get ; set ; }
22+ [ JsonProperty ( "after" ) ]
23+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
24+ public Nullable < DateTime > After { get ; set ; }
2625
27- [ JsonProperty ( "on_or_before" ) ]
28- [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
29- public Nullable < DateTime > OnOrBefore { get ; set ; }
26+ [ JsonProperty ( "on_or_before" ) ]
27+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
28+ public Nullable < DateTime > OnOrBefore { get ; set ; }
3029
31- [ JsonProperty ( "on_or_after" ) ]
32- [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
33- public Nullable < DateTime > OnOrAfter { get ; set ; }
30+ [ JsonProperty ( "on_or_after" ) ]
31+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
32+ public Nullable < DateTime > OnOrAfter { get ; set ; }
3433
35- [ JsonProperty ( "past_week" ) ]
36- public Dictionary < string , object > PastWeek { get ; set ; }
34+ [ JsonProperty ( "past_week" ) ]
35+ public Dictionary < string , object > PastWeek { get ; set ; }
3736
38- [ JsonProperty ( "past_month" ) ]
39- public Dictionary < string , object > PastMonth { get ; set ; }
37+ [ JsonProperty ( "past_month" ) ]
38+ public Dictionary < string , object > PastMonth { get ; set ; }
4039
41- [ JsonProperty ( "past_year" ) ]
42- public Dictionary < string , object > PastYear { get ; set ; }
40+ [ JsonProperty ( "past_year" ) ]
41+ public Dictionary < string , object > PastYear { get ; set ; }
4342
44- [ JsonProperty ( "next_week" ) ]
45- public Dictionary < string , object > NextWeek { get ; set ; }
43+ [ JsonProperty ( "next_week" ) ]
44+ public Dictionary < string , object > NextWeek { get ; set ; }
4645
47- [ JsonProperty ( "next_month" ) ]
48- public Dictionary < string , object > NextMonth { get ; set ; }
46+ [ JsonProperty ( "next_month" ) ]
47+ public Dictionary < string , object > NextMonth { get ; set ; }
4948
50- [ JsonProperty ( "next_year" ) ]
51- public Dictionary < string , object > NextYear { get ; set ; }
49+ [ JsonProperty ( "next_year" ) ]
50+ public Dictionary < string , object > NextYear { get ; set ; }
5251
53- [ JsonProperty ( "is_empty" ) ]
54- public Nullable < bool > IsEmpty { get ; set ; }
52+ [ JsonProperty ( "is_empty" ) ]
53+ public Nullable < bool > IsEmpty { get ; set ; }
5554
56- [ JsonProperty ( "is_not_empty" ) ]
57- public Nullable < bool > IsNotEmpty { get ; set ; }
55+ [ JsonProperty ( "is_not_empty" ) ]
56+ public Nullable < bool > IsNotEmpty { get ; set ; }
57+ }
5858 }
5959}
0 commit comments