-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from notion-dotnet/325-add-missing-property-item
Add missing property item
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Src/Notion.Client/Models/PropertyItems/RollupPropertyItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Notion.Client | ||
{ | ||
public class RollupPropertyItem : SimplePropertyItem | ||
{ | ||
public override string Type => "rollup"; | ||
|
||
[JsonProperty("rollup")] public Data Rollup { get; set; } | ||
|
||
public class Data | ||
{ | ||
[JsonProperty("type")] public string Type { get; set; } | ||
|
||
[JsonProperty("function")] public string Function { get; set; } | ||
|
||
[JsonProperty("number")] public double? Number { get; set; } | ||
|
||
[JsonProperty("date")] public Date Date { get; set; } | ||
|
||
[JsonProperty("array")] public IEnumerable<Dictionary<string, object>> Array { get; set; } | ||
|
||
[JsonProperty("unsupported")] public Dictionary<string, object> Unsupported { get; set; } | ||
|
||
[JsonProperty("incomplete")] public Dictionary<string, object> Incomplete { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Src/Notion.Client/Models/PropertyItems/StatusPropertyItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Notion.Client | ||
{ | ||
public class StatusPropertyItem : SimplePropertyItem | ||
{ | ||
public override string Type => "status"; | ||
|
||
[JsonProperty("status")] public SelectOption Status { get; set; } | ||
} | ||
} |