File tree Expand file tree Collapse file tree 3 files changed +41
-2
lines changed
Src/Notion.Client/Models/File Expand file tree Collapse file tree 3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 1
- using JsonSubTypes ;
1
+ using System . Collections . Generic ;
2
+ using JsonSubTypes ;
2
3
using Newtonsoft . Json ;
3
4
4
5
namespace Notion . Client
@@ -10,5 +11,8 @@ public abstract class FileObject : IPageIcon
10
11
{
11
12
[ JsonProperty ( "type" ) ]
12
13
public virtual string Type { get ; set ; }
14
+
15
+ [ JsonProperty ( "caption" ) ]
16
+ public IEnumerable < RichTextBase > Caption { get ; set ; }
13
17
}
14
18
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public async Task RetrieveBlockChildren()
38
38
39
39
// Assert
40
40
var children = childrenResult . Results ;
41
- children . Should ( ) . HaveCount ( 7 ) ;
41
+ children . Should ( ) . HaveCount ( 8 ) ;
42
42
}
43
43
44
44
[ Fact ]
Original file line number Diff line number Diff line change 120
120
"paragraph" : {
121
121
"text" : []
122
122
}
123
+ },
124
+ {
125
+ "object" : " block" ,
126
+ "id" : " ABD0E698-ABE6-42F2-80B1-24497AAE16F1" ,
127
+ "created_time" : " 2022-05-03T13:28:00.000Z" ,
128
+ "last_edited_time" : " 2022-05-03T13:29:00.000Z" ,
129
+ "has_children" : false ,
130
+ "archived" : false ,
131
+ "type" : " image" ,
132
+ "image" : {
133
+ "caption" : [
134
+ {
135
+ "type" : " text" ,
136
+ "text" : {
137
+ "content" : " caption text" ,
138
+ "link" : null
139
+ },
140
+ "annotations" : {
141
+ "bold" : false ,
142
+ "italic" : false ,
143
+ "strikethrough" : false ,
144
+ "underline" : false ,
145
+ "code" : false ,
146
+ "color" : " default"
147
+ },
148
+ "plain_text" : " caption text" ,
149
+ "href" : null
150
+ }
151
+ ],
152
+ "type" : " file" ,
153
+ "file" : {
154
+ "url" : " https://s3.us-west-2.amazonaws.com/secure.notion-static.com/xxx" ,
155
+ "expiry_time" : " 2022-05-11T17:55:32.613Z"
156
+ }
157
+ }
123
158
}
124
159
],
125
160
"next_cursor" : null ,
You can’t perform that action at this time.
0 commit comments