10000 Add support to archive a block in update block API by KoditkarVedant · Pull Request #174 · notion-dotnet/notion-sdk-net · GitHub
[go: up one dir, main page]

Skip to content

Add support to archive a block in update block API #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class BulletedListItemUpdateBlock : IUpdateBlock
public class BulletedListItemUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("bulleted_list_item")]
public TextContentUpdate BulletedListItem { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Notion.Client
{
public class CodeUpdateBlock : IUpdateBlock
public class CodeUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("code")]
public Info Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class HeadingOneUpdateBlock : IUpdateBlock
public class HeadingOneUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("heading_1")]
public TextContentUpdate Heading_1 { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class HeadingThreeeUpdateBlock : IUpdateBlock
public class HeadingThreeeUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("heading_3")]
public TextContentUpdate Heading_3 { get; set; }
Expand Down
8000
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class HeadingTwoUpdateBlock : IUpdateBlock
public class HeadingTwoUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("heading_2")]
public TextContentUpdate Heading_2 { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
namespace Notion.Client
using Newtonsoft.Json;

namespace Notion.Client
{
public interface IUpdateBlock
{
[JsonProperty("archived")]
bool Archived { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class NumberedListItemUpdateBlock : IUpdateBlock
public class NumberedListItemUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("numbered_list_item")]
public TextContentUpdate NumberedListItem { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class ParagraphUpdateBlock : IUpdateBlock
public class ParagraphUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("paragraph")]
public TextContentUpdate Paragraph { get; set; }
Expand Down
A3DB
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Notion.Client
{
public class ToDoUpdateBlock : IUpdateBlock
public class ToDoUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("to_do")]
public Info ToDo { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Notion.Client
{
public class ToggleUpdateBlock : IUpdateBlock
public class ToggleUpdateBlock : UpdateBlock, IUpdateBlock
{
[JsonProperty("toggle")]
public TextContentUpdate Toggle { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Notion.Client
{
public abstract class UpdateBlock : IUpdateBlock
{
public bool Archived { get; set; }
}
}
0