File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Src/Notion.Client/Models/Blocks Expand file tree Collapse file tree 3 files changed +16
-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 AudioBlock : Block
6+ {
7+ public override BlockType Type => BlockType . Audio ;
8+
9+ [ JsonProperty ( "audio" ) ]
10+ public FileObject Audio { get ; set ; }
11+ }
12+ }
Original file line number Diff line number Diff line change 55namespace Notion . Client
66{
77 [ JsonConverter ( typeof ( JsonSubtypes ) , "type" ) ]
8+ [ JsonSubtypes . KnownSubType ( typeof ( AudioBlock ) , BlockType . Audio ) ]
89 [ JsonSubtypes . KnownSubType ( typeof ( BookmarkBlock ) , BlockType . Bookmark ) ]
910 [ JsonSubtypes . KnownSubType ( typeof ( BulletedListItemBlock ) , BlockType . BulletedListItem ) ]
1011 [ JsonSubtypes . KnownSubType ( typeof ( ChildPageBlock ) , BlockType . ChildPage ) ]
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ public enum BlockType
6464 [ EnumMember ( Value = "divider" ) ]
6565 Divider ,
6666
67+ [ EnumMember ( Value = "audio" ) ]
68+ Audio ,
69+
6770 [ EnumMember ( Value = "unsupported" ) ]
6871 Unsupported
6972 }
You can’t perform that action at this time.
0 commit comments