Skip to content

Commit 3a8be28

Browse files
Merge pull request #284 from notion-dotnet/254-add-support-for-creating-inline-database-with-is_inline
Add support to create, update inline databases
2 parents 8d57943 + ae577a6 commit 3a8be28

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/DatabasesCreateParameters.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ public class DatabasesCreateParameters : IDatabasesCreateBodyParameters, IDataba
1919

2020
[JsonProperty("cover")]
2121
public FileObject Cover { get; set; }
22+
23+
public bool? IsInline { get; set; }
2224
}
2325
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/IDatabasesCreateBodyParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ public interface IDatabasesCreateBodyParameters
1313

1414
[JsonProperty("title")]
1515
List<RichTextBaseInput> Title { get; set; }
16+
17+
[JsonProperty("is_inline")]
18+
bool? IsInline { get; set; }
1619
}
1720
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesUpdateParameters/DatabasesUpdateParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using Newtonsoft.Json;
23

34
namespace Notion.Client
45
{
@@ -13,5 +14,7 @@ public class DatabasesUpdateParameters : IDatabasesUpdateBodyParameters
1314
public FileObject Cover { get; set; }
1415

1516
public bool Archived { get; set; }
17+
18+
public bool? IsInline { get; set; }
1619
}
1720
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesUpdateParameters/IDatabasesUpdateBodyParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ public interface IDatabasesUpdateBodyParameters
1919

2020
[JsonProperty("archived")]
2121
bool Archived { get; set; }
22+
23+
[JsonProperty("is_inline")]
24+
bool? IsInline { get; set; }
2225
}
2326
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@ public class Database : IObject, IObjectModificationData
4646
public PartialUser CreatedBy { get; set; }
4747

4848
public PartialUser LastEditedBy { get; set; }
49+
50+
[JsonProperty("is_inline")]
51+
public bool IsInline { get; set; }
4952
}
5053
}

0 commit comments

Comments
 (0)