Skip to content

Commit 2219fc4

Browse files
rename text property of blocks to rich_text
1 parent 9ca4c5e commit 2219fc4

File tree

14 files changed

+42
-42
lines changed

14 files changed

+42
-42
lines changed

Src/Notion.Client/Models/Blocks/BulletedListItemBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class BulletedListItemBlock : Block, IColumnChildrenBlock, INonColumnBloc
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("children")]
1919
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/CalloutBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class CalloutBlock : Block, IColumnChildrenBlock, INonColumnBlock
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("icon")]
1919
public IPageIcon Icon { get; set; }

Src/Notion.Client/Models/Blocks/CodeBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class CodeBlock : Block, IColumnChildrenBlock, INonColumnBlock
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("language")]
1919
public string Language { get; set; }

Src/Notion.Client/Models/Blocks/HeadingOneBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class HeadingOneBlock : Block, IColumnChildrenBlock, INonColumnBlock
1414

1515
public class Info
1616
{
17-
[JsonProperty("text")]
18-
public IEnumerable<RichTextBase> Text { get; set; }
17+
[JsonProperty("rich_text")]
18+
public IEnumerable<RichTextBase> RichText { get; set; }
1919
}
2020
}
2121
}

Src/Notion.Client/Models/Blocks/HeadingThreeeBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class HeadingThreeeBlock : Block, IColumnChildrenBlock, INonColumnBlock
1414

1515
public class Info
1616
{
17-
[JsonProperty("text")]
18-
public IEnumerable<RichTextBase> Text { get; set; }
17+
[JsonProperty("rich_text")]
18+
public IEnumerable<RichTextBase> RichText { get; set; }
1919
}
2020
}
2121
}

Src/Notion.Client/Models/Blocks/HeadingTwoBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class HeadingTwoBlock : Block, IColumnChildrenBlock, INonColumnBlock
1414

1515
public class Info
1616
{
17-
[JsonProperty("text")]
18-
public IEnumerable<RichTextBase> Text { get; set; }
17+
[JsonProperty("rich_text")]
18+
public IEnumerable<RichTextBase> RichText { get; set; }
1919
}
2020
}
2121
}

Src/Notion.Client/Models/Blocks/NumberedListItemBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class NumberedListItemBlock : Block, IColumnChildrenBlock, INonColumnBloc
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("children")]
1919
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/ParagraphBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class ParagraphBlock : Block, IColumnChildrenBlock, INonColumnBlock
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("children")]
1919
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/QuoteBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class QuoteBlock : Block, IColumnChildrenBlock, INonColumnBlock
1212

1313
public class Info
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("children")]
1919
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/TemplateBlock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class TemplateBlock : Block, IColumnChildrenBlock, INonColumnBlock
1212

1313
public class Data
1414
{
15-
[JsonProperty("text")]
16-
public IEnumerable<RichTextBase> Text { get; set; }
15+
[JsonProperty("rich_text")]
16+
public IEnumerable<RichTextBase> RichText { get; set; }
1717

1818
[JsonProperty("children")]
1919
public IEnumerable<ITemplateChildrendBlock> Children { get; set; }

0 commit comments

Comments
 (0)