File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace Notion . Client
66{
7- public class Database : IObject , IObjectModificationData
7+ public class Database : IObject , IObjectModificationData , IWikiDatabase
88 {
99 [ JsonProperty ( "title" ) ]
1010 public List < RichTextBase > Title { get ; set ; }
Original file line number Diff line number Diff line change 1+ using JsonSubTypes ;
2+ using Newtonsoft . Json ;
3+
4+ namespace Notion . Client
5+ {
6+ [ JsonConverter ( typeof ( JsonSubtypes ) , "object" ) ]
7+ [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( Page ) , ObjectType . Page ) ]
8+ [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( Database ) , ObjectType . Database ) ]
9+ public interface IWikiDatabase : IObject
10+ {
11+
12+ }
13+ }
Original file line number Diff line number Diff line change 44
55namespace Notion . Client
66{
7- public class Page : IObject , IObjectModificationData
7+ public class Page : IObject , IObjectModificationData , IWikiDatabase
88 {
99 /// <summary>
1010 /// The parent of this page. Can be a database, page, or workspace.
You can’t perform that action at this time.
0 commit comments