Skip to content

Commit 73c25bf

Browse files
Merge branch '3.1.0' into 254-add-support-for-creating-inline-database-with-is_inline
2 parents e994aa4 + 5def22b commit 73c25bf

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using Newtonsoft.Json;
32

43
namespace Notion.Client
54
{
@@ -24,9 +23,15 @@ public interface IDatabasesUpdateBodyParameters
2423
public class DatabasesUpdateParameters : IDatabasesUpdateBodyParameters
2524
{
2625
public Dictionary<string, IUpdatePropertySchema> Properties { get; set; }
26+
2727
public List<RichTextBaseInput> Title { get; set; }
28+
2829
public IPageIcon Icon { get; set; }
30+
2931
public FileObject Cover { get; set; }
32+
33+
public bool Archived { get; set; }
34+
3035
public bool? IsInline { get; set; }
3136
}
3237
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
4+
namespace Notion.Client
5+
{
6+
public interface IDatabasesUpdateBodyParameters
7+
{
8+
[JsonProperty("properties")]
9+
Dictionary<string, IUpdatePropertySchema> Properties { get; set; }
10+
11+
[JsonProperty("title")]
12+
List<RichTextBaseInput> Title { get; set; }
13+
14+
[JsonProperty("icon")]
15+
IPageIcon Icon { get; set; }
16+
17+
[JsonProperty("cover")]
18+
FileObject Cover { get; set; }
19+
20+
[JsonProperty("archived")]
21+
bool Archived { get; set; }
22+
}
23+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ public class Database : IObject, IObjectModificationData
3737
[JsonProperty("url")]
3838
public string Url { get; set; }
3939

40+
/// <summary>
41+
/// The archived status of the database.
42+
/// </summary>
43+
[JsonProperty("archived")]
44+
public bool Archived { get; set; }
45+
4046
public PartialUser CreatedBy { get; set; }
4147

4248
public PartialUser LastEditedBy { get; set; }

0 commit comments

Comments
 (0)