Skip to content

Commit c9bb91b

Browse files
Add support for Breadcrumb block type ✨
1 parent bc97ff5 commit c9bb91b

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class BreadcrumbUpdateBlock : IUpdateBlock
6+
{
7+
public bool Archived { get; set; }
8+
9+
[JsonProperty("breadcrumb")]
10+
public Data Breadcrumb { get; set; }
11+
12+
public class Data
13+
{
14+
}
15+
16+
public BreadcrumbUpdateBlock()
17+
{
18+
Breadcrumb = new Data();
19+
}
20+
}
21+
}

Src/Notion.Client/Models/Blocks/BlockType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public enum BlockType
5858
[EnumMember(Value = "equation")]
5959
Equation,
6060

61+
[EnumMember(Value = "breadcrumb")]
62+
Breadcrumb,
63+
6164
[EnumMember(Value = "unsupported")]
6265
Unsupported
6366
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class BreadcrumbBlock : Block
6+
{
7+
public override BlockType Type => BlockType.Breadcrumb;
8+
9+
[JsonProperty("breadcrumb")]
10+
public Data Breadcrumb { get; set; }
11+
12+
public class Data
13+
{
14+
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)