File tree 3 files changed +30
-0
lines changed
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
5
5
{
6
6
[ JsonConverter ( typeof ( JsonSubtypes ) , "type" ) ]
7
7
[ JsonSubtypes . KnownSubTypeAttribute ( typeof ( EmojiObject ) , "emoji" ) ]
8
+ [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( CustomEmojiObject ) , "custom_emoji" ) ]
8
9
[ JsonSubtypes . KnownSubTypeAttribute ( typeof ( FileObject ) , "file" ) ]
9
10
[ JsonSubtypes . KnownSubTypeAttribute ( typeof ( FileObject ) , "external" ) ]
10
11
public interface IPageIcon
You can’t perform that action at this time.
0 commit comments