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 ;
23using Newtonsoft . Json ;
34
45namespace Notion . Client
@@ -8,6 +9,7 @@ namespace Notion.Client
89 [ JsonSubtypes . KnownSubType ( typeof ( UrlPropertyItem ) , "url" ) ]
910 [ JsonSubtypes . KnownSubType ( typeof ( SelectPropertyItem ) , "select" ) ]
1011 [ JsonSubtypes . KnownSubType ( typeof ( MultiSelectPropertyItem ) , "multi_select" ) ]
12+ [ JsonSubtypes . KnownSubType ( typeof ( StatusPropertyItem ) , "status" ) ]
1113 [ JsonSubtypes . KnownSubType ( typeof ( DatePropertyItem ) , "date" ) ]
1214 [ JsonSubtypes . KnownSubType ( typeof ( EmailPropertyItem ) , "email" ) ]
1315 [ 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