Skip to content

Commit 9d98ea1

Browse files
Rename block retrieve api method to RetrieveAsync
1 parent fe52c8d commit 9d98ea1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Src/Notion.Client/Api/Blocks/BlocksClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task<Block> AppendChildrenAsync(string blockId, BlocksAppendChildre
4848
return await _client.PatchAsync<Block>(url, body);
4949
}
5050

51-
public async Task<Block> Retrieve(string blockId)
51+
public async Task<Block> RetrieveAsync(string blockId)
5252
{
5353
if (string.IsNullOrWhiteSpace(blockId))
5454
{

Src/Notion.Client/Api/Blocks/IBlocksClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface IBlocksClient
99
/// </summary>
1010
/// <param name="blockId"></param>
1111
/// <returns>Block</returns>
12-
Task<Block> Retrieve(string blockId);
12+
Task<Block> RetrieveAsync(string blockId);
1313

1414
Task<Block> UpdateAsync(string blockId, IUpdateBlock updateBlock);
1515

Test/Notion.UnitTests/BlocksClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public async Task RetrieveAsync()
7575
.WithBody(jsonData)
7676
);
7777

78-
var block = await _client.Retrieve(blockId);
78+
var block = await _client.RetrieveAsync(blockId);
7979

8080
block.Id.Should().Be(blockId);
8181
block.HasChildren.Should().BeFalse();

0 commit comments

Comments
 (0)