Skip to content

Commit 54d1cc6

Browse files
Move api request params into separate file & under client folder.
1 parent a51c9e9 commit 54d1cc6

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Notion.Client
2+
{
3+
public class DatabasesListParameters : IDatabasesListQueryParmaters
4+
{
5+
public string StartCursor { get; set; }
6+
public string PageSize { get; set; }
7+
}
8+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Collections.Generic;
2+
3+
namespace Notion.Client
4+
{
5+
public class DatabasesQueryParameters : IDatabaseQueryBodyParameters
6+
{
7+
public Filter Filter { get; set; }
8+
public List<Sort> Sorts { get; set; }
9+
public string StartCursor { get; set; }
10+
public string PageSize { get; set; }
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections.Generic;
2+
3+
namespace Notion.Client
4+
{
5+
public interface IDatabaseQueryBodyParameters : IPaginationParameters
6+
{
7+
Filter Filter { get; set; }
8+
List<Sort> Sorts { get; set; }
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Notion.Client
2+
{
3+
public interface IDatabasesListQueryParmaters : IPaginationParameters
4+
{
5+
}
6+
}

Src/Notion.Client/Models/Database/Database.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,6 @@
44

55
namespace Notion.Client
66
{
7-
public interface IDatabasesListQueryParmaters : IPaginationParameters
8-
{
9-
}
10-
11-
public class DatabasesListParameters : IDatabasesListQueryParmaters
12-
{
13-
public string StartCursor { get; set; }
14-
public string PageSize { get; set; }
15-
}
16-
17-
public interface IDatabaseQueryBodyParameters : IPaginationParameters
18-
{
19-
Filter Filter { get; set; }
20-
List<Sort> Sorts { get; set; }
21-
}
22-
23-
public class DatabasesQueryParameters : IDatabaseQueryBodyParameters
24-
{
25-
public Filter Filter { get; set; }
26-
public List<Sort> Sorts { get; set; }
27-
public string StartCursor { get; set; }
28-
public string PageSize { get; set; }
29-
}
30-
317
public class Database
328
{
339
public string Object => "database";

0 commit comments

Comments
 (0)