notion-sdk-net
notion-sdk-net copied to clipboard
DatabaseQueryResponse.Results returns a PaginatedList<IWikidatabase> -> code is not compiling
Describe the bug
In Code Snippet the object queryResults has no ** Properties** property so is not compiling and providing the right function.
changing the class back to Page (instead of an interface) makes it work.
namespace Notion.Client { // ReSharper disable once ClassNeverInstantiated.Global // BUG: public class DatabaseQueryResponse : PaginatedList<IWikiDatabase>
public class DatabaseQueryResponse : PaginatedList<Page>
{
[JsonProperty("database")]
public Dictionary<string, object> Database { get; set; }
}
}
Additional context Maybe the code intension was to introduce an abstract interface.