8000 Merge pull request #266 from notion-dotnet/248-formula-property-filte… · notion-dotnet/notion-sdk-net@9985c00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9985c00

Browse files
Merge pull request #266 from notion-dotnet/248-formula-property-filter-accept-string-instead-of-text-arg
Rename Text prop to String in Formula property filter 🚚
2 parents 433daa6 + 6d8a345 commit 9985c00

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Src/Notion.Client/Models/Filters/FormulaFilter.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public class FormulaFilter : SinglePropertyFilter
99

1010
public FormulaFilter(
1111
string propertyName,
12-
TextFilter.Condition text = null,
12+
TextFilter.Condition @string = null,
1313
CheckboxFilter.Condition checkbox = null,
1414
NumberFilter.Condition number = null,
1515
DateFilter.Condition date = null)
1616
{
1717
Property = propertyName;
1818
Formula = new Condition(
19-
text: text,
19+
@string: @string,
2020
checkbox: checkbox,
2121
number: number,
2222
date: date
@@ -25,8 +25,8 @@ public FormulaFilter(
2525

2626
public class Condition
2727
{
28-
[JsonProperty("text")]
29-
public TextFilter.Condition Text { get; set; }
28+
[JsonProperty("string")]
29+
public TextFilter.Condition String { get; set; }
3030

3131
[JsonProperty("checkbox")]
3232
public CheckboxFilter.Condition Checkbox { get; set; }
@@ -38,12 +38,12 @@ public class Condition
3838
public DateFilter.Condition Date { get; set; }
3939

4040
public Condition(
41-
TextFilter.Condition text = null,
41+
TextFilter.Condition @string = null,
4242
CheckboxFilter.Condition checkbox = null,
4343
NumberFilter.Condition number = null,
4444
DateFilter.Condition date = null)
4545
{
46-
Text = text;
46+
String = @string;
4747
Checkbox = checkbox;
4848
Number = number;
4949
Date = date;

0 commit comments

Comments
 (0)
0