File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments