8000 Merge branch '3.1.0' into 255-add-support-to-create-update-descriptio… · notion-dotnet/notion-sdk-net@fd4c0ec · GitHub
[go: up one dir, main page]

Skip to content

Commit fd4c0ec

Browse files
Merge branch '3.1.0' into 255-add-support-to-create-update-description-property-on-database-object
2 parents ad3a7e2 + 8d57943 commit fd4c0ec

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
namespace Notion.Client
6+
{
7+
public class TimestampCreatedTimeFilter : Filter
8+
{
9+
[JsonProperty("timestamp")]
10+
public string Timestamp = "created_time";
11+
12+
[JsonProperty("created_time")]
13+
public DateFilter.Condition CreatedTime { get; set; }
14+
15+
public TimestampCreatedTimeFilter(
16+
DateTime? equal = null,
17+
DateTime? before = null,
18+
DateTime? after = null,
19+
DateTime? onOrBefore = null,
20+
DateTime? onOrAfter = null,
21+
Dictionary<string, object> pastWeek = null,
22+
Dictionary<string, object> pastMonth = null,
23+
Dictionary<string, object> pastYear = null,
24+
Dictionary<string, object> nextWeek = null,
25+
Dictionary<string, object> nextMonth = null,
26+
Dictionary<string, object> nextYear = null,
27+
bool? isEmpty = null,
28+
bool? isNotEmpty = null)
29+
{
30+
CreatedTime = new DateFilter.Condition(
31+
equal: equal,
32+
before: before,
33+
after: after,
34+
onOrBefore: onOrBefore,
35+
onOrAfter: onOrAfter,
36+
pastWeek: pastWeek,
37+
pastMonth: pastMonth,
38+
pastYear: pastYear,
39+
nextWeek: nextWeek,
40+
nextMonth: nextMonth,
41+
nextYear: nextYear,
42+
isEmpty: isEmpty,
43+
isNotEmpty: isNotEmpty
44+
);
45+
}
46+
}
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
namespace Notion.Client
6+
{
7+
public class TimestampLastEditedTimeFilter : Filter
8+
{
9+
[JsonProperty("timestamp")]
10+
public string Timestamp = "last_modified_time";
11+
12+
[JsonProperty("last_edited_time")]
13+
public DateFilter.Condition LastEditedTime { get; set; FFB2 }
14+
15+
public TimestampLastEditedTimeFilter(
16+
DateTime? equal = null,
17+
DateTime? before = null,
18+
DateTime? after = null,
19+
DateTime? onOrBefore = null,
20+
DateTime? onOrAfter = null,
21+
Dictionary<string, object> pastWeek = null,
22+
Dictionary<string, object> pastMonth = null,
23+
Dictionary<string, object> pastYear = null,
24+
Dictionary<string, object> nextWeek = null,
25+
Dictionary<string, object> nextMonth = null,
26+
Dictionary<string, object> nextYear = null,
27+
bool? isEmpty = null,
28+
bool? isNotEmpty = null)
29+
{
30+
LastEditedTime = new DateFilter.Condition(
31+
equal: equal,
32+
before: before,
33+
after: after,
34+
onOrBefore: onOrBefore,
35+
onOrAfter: onOrAfter,
36+
pastWeek: pastWeek,
37+
pastMonth: pastMonth,
38+
pastYear: pastYear,
39+
nextWeek: nextWeek,
40+
nextMonth: nextMonth,
41+
nextYear: nextYear,
42+
isEmpty: isEmpty,
43+
isNotEmpty: isNotEmpty
44+
);
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)
0