Skip to content

Commit 46ac4b9

Browse files
Merge pull request #172 from notion-dotnet/feature/159-add-support-to-update-code-block
Add support to update code block ✨
2 parents 279f65a + d37dd32 commit 46ac4b9

File tree

1 file changed

+20
-0
lines changed
  • Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
4+
namespace Notion.Client
5+
{
6+
public class CodeUpdateBlock : IUpdateBlock
7+
{
8+
[JsonProperty("code")]
9+
public Info Code { get; set; }
10+
11+
public class Info
12+
{
13+
[JsonProperty("text")]
14+
public IEnumerable<RichTextBase> Text { get; set; }
15+
16+
[JsonProperty("language")]
17+
public string Language { get; set; }
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)