-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoogleObject.cs
303 lines (279 loc) · 9.77 KB
/
GoogleObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
public class Url
{
public string type { get; set; }
public string template { get; set; }
}
public class Request
{
public string title { get; set; }
public string totalResults { get; set; }
public string searchTerms { get; set; }
public int count { get; set; }
public int startIndex { get; set; }
public string inputEncoding { get; set; }
public string outputEncoding { get; set; }
public string safe { get; set; }
public string cx { get; set; }
}
public class NextPage
{
public string title { get; set; }
public string totalResults { get; set; }
public string searchTerms { get; set; }
public int count { get; set; }
public int startIndex { get; set; }
public string inputEncoding { get; set; }
public string outputEncoding { get; set; }
public string safe { get; set; }
public string cx { get; set; }
}
public class Queries
{
public List<Request> request { get; set; }
public List<NextPage> nextPage { get; set; }
}
public class Context
{
public string title { get; set; }
}
public class SearchInformation
{
public double searchTime { get; set; }
public string formattedSearchTime { get; set; }
public string totalResults { get; set; }
public string formattedTotalResults { get; set; }
}
public class CseThumbnail
{
public string src { get; set; }
public string width { get; set; }
public string height { get; set; }
}
public class Imageobject
{
public string width { get; set; }
public string url { get; set; }
public string height { get; set; }
public string logo { get; set; }
}
public class Person
{
public string name { get; set; }
}
public class Organization
{
public string name { get; set; }
}
public class Metatag
{
public string viewport { get; set; }
[JsonProperty("msapplication-tileimage")]
public string MsapplicationTileimage { get; set; }
[JsonProperty("og:image")]
public string OgImage { get; set; }
[JsonProperty("apple-itunes-app")]
public string AppleItunesApp { get; set; }
[JsonProperty("theme-color")]
public string ThemeColor { get; set; }
[JsonProperty("twitter:title")]
public string TwitterTitle { get; set; }
[JsonProperty("al:ios:app_name")]
public string AlIosAppName { get; set; }
[JsonProperty("msvalidate.01")]
public string Msvalidate01 { get; set; }
[JsonProperty("og:title")]
public string OgTitle { get; set; }
[JsonProperty("al:android:package")]
public string AlAndroidPackage { get; set; }
[JsonProperty("fb:pages")]
public string FbPages { get; set; }
[JsonProperty("og:description")]
public string OgDescription { get; set; }
[JsonProperty("twitter:dnt")]
public string TwitterDnt { get; set; }
[JsonProperty("al:ios:app_store_id")]
public string AlIosAppStoreId { get; set; }
[JsonProperty("al:android:url")]
public string AlAndroidUrl { get; set; }
[JsonProperty("fb:app_id")]
public string FbAppId { get; set; }
[JsonProperty("oath:guce:consent-host")]
public string OathGuceConsentHost { get; set; }
[JsonProperty("twitter:site")]
public string TwitterSite { get; set; }
[JsonProperty("twitter:description")]
public string TwitterDescription { get; set; }
[JsonProperty("al:android:app_name")]
public string AlAndroidAppName { get; set; }
[JsonProperty("application-name")]
public string ApplicationName { get; set; }
[JsonProperty("og:type")]
public string OgType { get; set; }
[JsonProperty("og:image:width")]
public string OgImageWidth { get; set; }
[JsonProperty("twitter:card")]
public string TwitterCard { get; set; }
[JsonProperty("apple-mobile-web-app-title")]
public string AppleMobileWebAppTitle { get; set; }
[JsonProperty("og:image:height")]
public string OgImageHeight { get; set; }
[JsonProperty("twitter:image")]
public string TwitterImage { get; set; }
public string referrer { get; set; }
[JsonProperty("apple-mobile-web-app-status-bar-style")]
public string AppleMobileWebAppStatusBarStyle { get; set; }
[JsonProperty("msapplication-tap-highlight")]
public string MsapplicationTapHighlight { get; set; }
[JsonProperty("apple-mobile-web-app-capable")]
public string AppleMobileWebAppCapable { get; set; }
[JsonProperty("mobile-web-app-capable")]
public string MobileWebAppCapable { get; set; }
[JsonProperty("og:url")]
public string OgUrl { get; set; }
[JsonProperty("format-detection")]
public string FormatDetection { get; set; }
[JsonProperty("og:site_name")]
public string OgSiteName { get; set; }
public string handheldfriendly { get; set; }
[JsonProperty("og:locale")]
public string OgLocale { get; set; }
public string baidu_union_verify { get; set; }
[JsonProperty("twitter:creator")]
public string TwitterCreator { get; set; }
public string news_keywords { get; set; }
public DateTime? revision_date { get; set; }
[JsonProperty("fb:admins")]
public string FbAdmins { get; set; }
public string headline { get; set; }
[JsonProperty("yandex-verification")]
public string YandexVerification { get; set; }
[JsonProperty("dc.date.issued")]
public object DcDateIssued { get; set; }
public string scripdelaytimer { get; set; }
public string originalpublicationdate { get; set; }
public string ticker { get; set; }
public string author { get; set; }
[JsonProperty("og:article:published_time")]
public string OgArticlePublishedTime { get; set; }
public string title { get; set; }
[JsonProperty("og:article:tag")]
public string OgArticleTag { get; set; }
[JsonProperty("original-source")]
public string OriginalSource { get; set; }
[JsonProperty("og:article:author")]
public string OgArticleAuthor { get; set; }
[JsonProperty("next-head-count")]
public string NextHeadCount { get; set; }
public string contenttype { get; set; }
}
public class Webpage
{
public string maincontentofpage { get; set; }
public string headline { get; set; }
}
public class Creativework
{
public string datemodified { get; set; }
public string name { get; set; }
public string text { get; set; }
public string headline { get; set; }
public DateTime datepublished { get; set; }
public string mainentityofpage { get; set; }
}
public class CseImage
{
public string src { get; set; }
}
public class Blogposting
{
public string datemodified { get; set; }
public string author { get; set; }
public string name { get; set; }
public string headline { get; set; }
public string datepublished { get; set; }
public string mainentityofpage { get; set; }
}
public class Sitenavigationelement
{
public string url { get; set; }
}
public class Listitem
{
public string name { get; set; }
public string position { get; set; }
public string url { get; set; }
}
public class Corporation
{
public string tickersymbol { get; set; }
public string name { get; set; }
}
public class Article
{
public string image { get; set; }
public string articlebody { get; set; }
public string author { get; set; }
public string headline { get; set; }
public string datepublished { get; set; }
}
public class Newsarticle
{
public string wordcount { get; set; }
public string isfamilyfriendly { get; set; }
public string inlanguage { get; set; }
public string dateline { get; set; }
public string copyrightyear { get; set; }
public string contentlocation { get; set; }
public string author { get; set; }
public string description { get; set; }
public string copyrightholder { get; set; }
public string articlebody { get; set; }
public string datemodified { get; set; }
public string provider { get; set; }
public string headline { get; set; }
public string datepublished { get; set; }
}
public class Pagemap
{
public List<CseThumbnail> cse_thumbnail { get; set; }
public List<Imageobject> imageobject { get; set; }
public List<Person> person { get; set; }
public List<Organization> organization { get; set; }
public List<Metatag> metatags { get; set; }
public List<Webpage> webpage { get; set; }
public List<Creativework> creativework { get; set; }
public List<CseImage> cse_image { get; set; }
public List<Blogposting> blogposting { get; set; }
public List<Sitenavigationelement> sitenavigationelement { get; set; }
public List<Listitem> listitem { get; set; }
public List<Corporation> corporation { get; set; }
public List<Article> article { get; set; }
public List<Newsarticle> newsarticle { get; set; }
}
public class Item
{
public string kind { get; set; }
public string title { get; set; }
public string htmlTitle { get; set; }
public string link { get; set; }
public string displayLink { get; set; }
public string snippet { get; set; }
public string htmlSnippet { get; set; }
public string cacheId { get; set; }
public string formattedUrl { get; set; }
public string htmlFormattedUrl { get; set; }
public Pagemap pagemap { get; set; }
}
public class Root
{
public string kind { get; set; }
public Url url { get; set; }
public Queries queries { get; set; }
public Context context { get; set; }
public SearchInformation searchInformation { get; set; }
public List<Item> items { get; set; }
}