@@ -7,8 +7,8 @@ namespace Notion.Client
77{
88 public interface IBlocksClient
99 {
10- Task < PaginatedList < BlockBase > > RetrieveChildrenAsync ( string blockId , BlocksRetrieveChildrenParameters parameters = null ) ;
11- Task < BlockBase > AppendChildrenAsync ( string blockId , BlocksAppendChildrenParameters parameters = null ) ;
10+ Task < PaginatedList < Block > > RetrieveChildrenAsync ( string blockId , BlocksRetrieveChildrenParameters parameters = null ) ;
11+ Task < Block > AppendChildrenAsync ( string blockId , BlocksAppendChildrenParameters parameters = null ) ;
1212 }
1313
1414 public class BlocksClient : IBlocksClient
@@ -20,7 +20,7 @@ public BlocksClient(IRestClient client)
2020 _client = client ;
2121 }
2222
23- public async Task < PaginatedList < BlockBase > > RetrieveChildrenAsync ( string blockId , BlocksRetrieveChildrenParameters parameters = null )
23+ public async Task < PaginatedList < Block > > RetrieveChildrenAsync ( string blockId , BlocksRetrieveChildrenParameters parameters = null )
2424 {
2525 if ( string . IsNullOrWhiteSpace ( blockId ) )
2626 {
@@ -37,10 +37,10 @@ public async Task<PaginatedList<BlockBase>> RetrieveChildrenAsync(string blockId
3737 { "page_size" , queryParameters ? . PageSize ? . ToString ( ) }
3838 } ;
3939
40- return await _client . GetAsync < PaginatedList < BlockBase > > ( url , queryParams ) ;
40+ return await _client . GetAsync < PaginatedList < Block > > ( url , queryParams ) ;
4141 }
4242
43- public async Task < BlockBase > AppendChildrenAsync ( string blockId , BlocksAppendChildrenParameters parameters = null )
43+ public async Task < Block > AppendChildrenAsync ( string blockId , BlocksAppendChildrenParameters parameters = null )
4444 {
4545 if ( string . IsNullOrWhiteSpace ( blockId ) )
4646 {
@@ -51,7 +51,7 @@ public async Task<BlockBase> AppendChildrenAsync(string blockId, BlocksAppendChi
5151
5252 var body = ( IBlocksAppendChildrenBodyParameters ) parameters ;
5353
54- return await _client . PatchAsync < BlockBase > ( url , body ) ;
54+ return await _client . PatchAsync < Block > ( url , body ) ;
5555 }
5656 }
5757}
0 commit comments