1+ using System ;
2+ using System . Collections . Generic ;
3+ using Newtonsoft . Json ;
4+ using Newtonsoft . Json . Converters ;
5+
6+ namespace Notion . Client
7+ {
8+ public class DateFilter : SinglePropertyFilter
9+ {
10+ [ JsonProperty ( "equals" ) ]
11+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
12+ public DateTime Equal { get ; set ; }
13+
14+ [ JsonProperty ( "before" ) ]
15+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
16+ public DateTime Before { get ; set ; }
17+
18+ [ JsonProperty ( "after" ) ]
19+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
20+ public DateTime After { get ; set ; }
21+
22+ [ JsonProperty ( "on_or_before" ) ]
23+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
24+ public DateTime OnOrBefore { get ; set ; }
25+
26+ [ JsonProperty ( "on_or_after" ) ]
27+ [ JsonConverter ( typeof ( IsoDateTimeConverter ) ) ]
28+ public DateTime OnOrAfter { get ; set ; }
29+
30+ [ JsonProperty ( "past_week" ) ]
31+ public Dictionary < string , object > PastWeek { get ; set ; }
32+
33+ [ JsonProperty ( "past_month" ) ]
34+ public Dictionary < string , object > PastMonth { get ; set ; }
35+
36+ [ JsonProperty ( "past_year" ) ]
37+ public Dictionary < string , object > PastYear { get ; set ; }
38+
39+ [ JsonProperty ( "next_week" ) ]
40+ public Dictionary < string , object > NextWeek { get ; set ; }
41+
42+ [ JsonProperty ( "next_month" ) ]
43+ public Dictionary < string , object > NextMonth { get ; set ; }
44+
45+ [ JsonProperty ( "next_year" ) ]
46+ public Dictionary < string , object > NextYear { get ; set ; }
47+
48+ [ JsonProperty ( "is_empty" ) ]
49+ public bool IsEmpty => true ;
50+
51+ [ JsonProperty ( "is_not_empty" ) ]
52+ public bool IsNotEmpty => true ;
53+ }
54+ }
0 commit comments