Skip to content

Commit db1681d

Browse files
Merge pull request #379 from notion-dotnet/372-add-public_url-on-page-and-database
Add public_url on Page and Database
2 parents 7193f39 + a4e06fc commit db1681d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ public class Database : IObject, IObjectModificationData
5252
public PartialUser CreatedBy { get; set; }
5353

5454
public PartialUser LastEditedBy { get; set; }
55+
56+
/// <summary>
57+
/// The public page URL if the page has been published to the web. Otherwise, null.
58+
/// </summary>
59+
[JsonProperty("public_url")]
60+
public string PublicUrl { get; set; }
5561
}
5662
}

Src/Notion.Client/Models/Page/Page.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,11 @@ public class Page : IObject, IObjectModificationData
6767
public PartialUser CreatedBy { get; set; }
6868

6969
public PartialUser LastEditedBy { get; set; }
70+
71+
/// <summary>
72+
/// The public page URL if the page has been published to the web. Otherwise, null.
73+
/// </summary>
74+
[JsonProperty("public_url")]
75+
public string PublicUrl { get; set; }
7076
}
7177
}

0 commit comments

Comments
 (0)