Skip to content

Commit 3d98491

Browse files
Merge pull request #497 from kosaku-hayashi/475-add-VerificationProperty
add VerificationProperty
2 parents 755d02a + 8cd9754 commit 3d98491

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Src/Notion.Client/Models/Database/Properties/Property.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace Notion.Client
2727
[JsonSubtypes.KnownSubTypeAttribute(typeof(UrlProperty), PropertyType.Url)]
2828
[JsonSubtypes.KnownSubTypeAttribute(typeof(UniqueIdProperty), PropertyType.UniqueId)]
2929
[JsonSubtypes.KnownSubTypeAttribute(typeof(ButtonProperty), PropertyType.Button)]
30+
[JsonSubtypes.KnownSubTypeAttribute(typeof(VerificationProperty), PropertyType.Verification)]
3031
public class Property
3132
{
3233
[JsonProperty("id")]

Src/Notion.Client/Models/Database/Properties/PropertyType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,8 @@ public enum PropertyType
7474

7575
[EnumMember(Value = "button")]
7676
Button,
77+
78+
[EnumMember(Value = "verification")]
79+
Verification
7780
}
7881
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
4+
namespace Notion.Client
5+
{
6+
public class VerificationProperty : Property
7+
{
8+
public override PropertyType Type => PropertyType.Verification;
9+
10+
[JsonProperty("verification")]
11+
public Dictionary<string, object> Verification { get; set; }
12+
}
13+
}

0 commit comments

Comments
 (0)