Skip to content

Commit 421f407

Browse files
Add StatusPropertyItem
1 parent ed18e1a commit 421f407

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Src/Notion.Client/Models/PropertyItems/SimplePropertyItem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using JsonSubTypes;
1+
using System.Collections;
2+
using JsonSubTypes;
23
using Newtonsoft.Json;
34

45
namespace 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")]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

0 commit comments

Comments
 (0)