Content-Length: 348861 | pFad | http://github.com/notion-dotnet/notion-sdk-net/commit/cba3a3ed41aad7eb303364e5bc35915c989eb1af

E8 fix: custom emoji support · notion-dotnet/notion-sdk-net@cba3a3e · GitHub
Skip to content

Commit cba3a3e

Browse files
committed
fix: custom emoji support
1 parent 3683693 commit cba3a3e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class CustomEmoji
6+
{
7+
[JsonProperty("id")]
8+
public string Id { get; set; }
9+
10+
[JsonProperty("name")]
11+
public string Name { get; set; }
12+
13+
[JsonProperty("url")]
14+
public string Url { get; set; }
15+
}
16+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class CustomEmojiObject : IPageIcon
6+
{
7+
[JsonProperty("custom_emoji")]
8+
public CustomEmoji CustomEmoji { get; set; }
9+
10+
[JsonProperty("type")]
11+
public string Type { get; set; }
12+
}
13+
}

Src/Notion.Client/Models/Page/IPageIcon.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace Notion.Client
55
{
66
[JsonConverter(typeof(JsonSubtypes), "type")]
77
[JsonSubtypes.KnownSubTypeAttribute(typeof(EmojiObject), "emoji")]
8+
[JsonSubtypes.KnownSubTypeAttribute(typeof(CustomEmojiObject), "custom_emoji")]
89
[JsonSubtypes.KnownSubTypeAttribute(typeof(FileObject), "file")]
910
[JsonSubtypes.KnownSubTypeAttribute(typeof(FileObject), "external")]
1011
public interface IPageIcon

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/notion-dotnet/notion-sdk-net/commit/cba3a3ed41aad7eb303364e5bc35915c989eb1af

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy