Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4605da3

Browse files
Merge pull request #174 from notion-dotnet/feature/171-add-support-to-pass-archive-property-when-updating-a-block
Add support to archive a block in update block API ✨
2 parents 525cd19 + a6be862 commit 4605da3

File tree

11 files changed

+21
-10
lines changed

11 files changed

+21
-10
lines changed

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/BulletedListItemUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class BulletedListItemUpdateBlock : IUpdateBlock
5+
public class BulletedListItemUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("bulleted_list_item")]
88
public TextContentUpdate BulletedListItem { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/CodeUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Notion.Client
55
{
6-
public class CodeUpdateBlock : IUpdateBlock
6+
public class CodeUpdateBlock : UpdateBlock,IUpdateBlock
77
{
88
[JsonProperty("code")]
99
public Info Code { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/HeadingOneUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class HeadingOneUpdateBlock : IUpdateBlock
5+
public class HeadingOneUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("heading_1")]
88
public TextContentUpdate Heading_1 { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/HeadingThreeeUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class HeadingThreeeUpdateBlock : IUpdateBlock
5+
public class HeadingThreeeUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("heading_3")]
88
public TextContentUpdate Heading_3 { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/HeadingTwoUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class HeadingTwoUpdateBlock : IUpdateBlock
5+
public class HeadingTwoUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("heading_2")]
88
public TextContentUpdate Heading_2 { get; set; }
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
namespace Notion.Client
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
24
{
35
public interface IUpdateBlock
46
{
7+
[JsonProperty("archived")]
8+
bool Archived { get; set; }
59
}
610
}

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/NumberedListItemUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class NumberedListItemUpdateBlock : IUpdateBlock
5+
public class NumberedListItemUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("numbered_list_item")]
88
public TextContentUpdate NumberedListItem { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/ParagraphUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class ParagraphUpdateBlock : IUpdateBlock
5+
public class ParagraphUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("paragraph")]
88
public TextContentUpdate Paragraph { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/ToDoUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Notion.Client
55
{
6-
public class ToDoUpdateBlock : IUpdateBlock
6+
public class ToDoUpdateBlock : UpdateBlock,IUpdateBlock
77
{
88
[JsonProperty("to_do")]
99
public Info ToDo { get; set; }

‎Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/ToggleUpdateBlock.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class ToggleUpdateBlock : IUpdateBlock
5+
public class ToggleUpdateBlock : UpdateBlock,IUpdateBlock
66
{
77
[JsonProperty("toggle")]
88
public TextContentUpdate Toggle { get; set; }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /