Skip to content

Commit cd034b9

Browse files
Add support to update media types ✨
1 parent b5f9e9b commit cd034b9

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class FileUpdateBlock : UpdateBlock, IUpdateBlock
6+
{
7+
[JsonProperty("file")]
8+
public IFileObjectInput File { get; set; }
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class ImageUpdateBlock : UpdateBlock, IUpdateBlock
6+
{
7+
[JsonProperty("image")]
8+
public IFileObjectInput Image { get; set; }
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class PDFUpdateBlock : UpdateBlock, IUpdateBlock
6+
{
7+
[JsonProperty("pdf")]
8+
public IFileObjectInput PDF { get; set; }
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class VideoUpdateBlock : UpdateBlock, IUpdateBlock
6+
{
7+
[JsonProperty("video")]
8+
public IFileObjectInput Video { get; set; }
9+
}
10+
}

0 commit comments

Comments
 (0)