Skip to content

Commit 4bb2731

Browse files
Add Comments API to NotionClient
1 parent 807a538 commit 4bb2731

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Src/Notion.Client/NotionClient.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public interface INotionClient
77
IPagesClient Pages { get; }
88
ISearchClient Search { get; }
99
IBlocksClient Blocks { get; }
10+
ICommentsClient Comments { get; }
1011
IRestClient RestClient { get; }
1112
}
1213

@@ -18,13 +19,15 @@ public NotionClient(
1819
DatabasesClient databases,
1920
PagesClient pages,
2021
SearchClient search,
22+
CommentsClient comments,
2123
BlocksClient blocks)
2224
{
2325
RestClient = restClient;
2426
Users = users;
2527
Databases = databases;
2628
Pages = pages;
2729
Search = search;
30+
Comments = comments;
2831
Blocks = blocks;
2932
}
3033

@@ -33,6 +36,7 @@ public NotionClient(
3336
public IPagesClient Pages { get; }
3437
public ISearchClient Search { get; }
3538
public IBlocksClient Blocks { get; }
39+
public ICommentsClient Comments { get; }
3640
public IRestClient RestClient { get; }
3741
}
3842
}

Src/Notion.Client/NotionClientFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public static NotionClient Create(ClientOptions options)
1313
, pages: new PagesClient(restClient)
1414
, search: new SearchClient(restClient)
1515
, blocks: new BlocksClient(restClient)
16+
, comments: new CommentsClient(restClient)
1617
);
1718
}
1819
}

0 commit comments

Comments
 (0)