File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Src/Notion.Client/Models/PropertyItems Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- using JsonSubTypes ;
1
+ using System . Collections ;
2
+ using JsonSubTypes ;
2
3
using Newtonsoft . Json ;
3
4
4
5
namespace Notion . Client
@@ -8,6 +9,7 @@ namespace Notion.Client
8
9
[ JsonSubtypes . KnownSubType ( typeof ( UrlPropertyItem ) , "url" ) ]
9
10
[ JsonSubtypes . KnownSubType ( typeof ( SelectPropertyItem ) , "select" ) ]
10
11
[ JsonSubtypes . KnownSubType ( typeof ( MultiSelectPropertyItem ) , "multi_select" ) ]
12
+ [ JsonSubtypes . KnownSubType ( typeof ( StatusPropertyItem ) , "status" ) ]
11
13
[ JsonSubtypes . KnownSubType ( typeof ( DatePropertyItem ) , "date" ) ]
12
14
[ JsonSubtypes . KnownSubType ( typeof ( EmailPropertyItem ) , "email" ) ]
13
15
[ JsonSubtypes . KnownSubType ( typeof ( PhoneNumberPropertyItem ) , "phone_number" ) ]
Original file line number Diff line number Diff line change
1
+ using Newtonsoft . Json ;
2
+
3
+ namespace Notion . Client
4
+ {
5
+ public class StatusPropertyItem : SimplePropertyItem
6
+ {
7
+ public override string Type => "status" ;
8
+
9
+ [ JsonProperty ( "status" ) ] public SelectOption Status { get ; set ; }
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments