Skip to content

Commit f65fe9b

Browse files
Add support to update bookmark block
1 parent 82e978d commit f65fe9b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
4+
namespace Notion.Client
5+
{
6+
public class BookmarkUpdateBlock : IUpdateBlock
7+
{
8+
public bool Archived { get; set; }
9+
10+
[JsonProperty("bookmark")]
11+
public Data Bookmark { get; set; }
12+
13+
public class Data
14+
{
15+
[JsonProperty("url")]
16+
public string Url { get; set; }
17+
18+
[JsonProperty("caption")]
19+
public IEnumerable<RichTextBaseInput> Caption { get; set; }
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)