OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.plusDomains.v1; | 3 library googleapis.plusDomains.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 show |
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ApiRequestError, |
15 ByteRange; | 15 DetailedApiRequestError, |
| 16 Media, |
| 17 UploadOptions, |
| 18 ResumableUploadOptions, |
| 19 DownloadOptions, |
| 20 PartialDownloadOptions, |
| 21 ByteRange; |
16 | 22 |
17 const core.String USER_AGENT = 'dart-api-client plusDomains/v1'; | 23 const core.String USER_AGENT = 'dart-api-client plusDomains/v1'; |
18 | 24 |
19 /** Builds on top of the Google+ platform for Google Apps Domains. */ | 25 /// Builds on top of the Google+ platform for Google Apps Domains. |
20 class PlusDomainsApi { | 26 class PlusDomainsApi { |
21 /** View your circles and the people and pages in them */ | 27 /// View your circles and the people and pages in them |
22 static const PlusCirclesReadScope = "https://www.googleapis.com/auth/plus.circ
les.read"; | 28 static const PlusCirclesReadScope = |
| 29 "https://www.googleapis.com/auth/plus.circles.read"; |
23 | 30 |
24 /** | 31 /// Manage your circles and add people and pages. People and pages you add to |
25 * Manage your circles and add people and pages. People and pages you add to | 32 /// your circles will be notified. Others may see this information publicly. |
26 * your circles will be notified. Others may see this information publicly. | 33 /// People you add to circles can use Hangouts with you. |
27 * People you add to circles can use Hangouts with you. | 34 static const PlusCirclesWriteScope = |
28 */ | 35 "https://www.googleapis.com/auth/plus.circles.write"; |
29 static const PlusCirclesWriteScope = "https://www.googleapis.com/auth/plus.cir
cles.write"; | |
30 | 36 |
31 /** Know the list of people in your circles, your age range, and language */ | 37 /// Know the list of people in your circles, your age range, and language |
32 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 38 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
33 | 39 |
34 /** Know who you are on Google */ | 40 /// Know who you are on Google |
35 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; | 41 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; |
36 | 42 |
37 /** Send your photos and videos to Google+ */ | 43 /// Send your photos and videos to Google+ |
38 static const PlusMediaUploadScope = "https://www.googleapis.com/auth/plus.medi
a.upload"; | 44 static const PlusMediaUploadScope = |
| 45 "https://www.googleapis.com/auth/plus.media.upload"; |
39 | 46 |
40 /** View your own Google+ profile and profiles visible to you */ | 47 /// View your own Google+ profile and profiles visible to you |
41 static const PlusProfilesReadScope = "https://www.googleapis.com/auth/plus.pro
files.read"; | 48 static const PlusProfilesReadScope = |
| 49 "https://www.googleapis.com/auth/plus.profiles.read"; |
42 | 50 |
43 /** View your Google+ posts, comments, and stream */ | 51 /// View your Google+ posts, comments, and stream |
44 static const PlusStreamReadScope = "https://www.googleapis.com/auth/plus.strea
m.read"; | 52 static const PlusStreamReadScope = |
| 53 "https://www.googleapis.com/auth/plus.stream.read"; |
45 | 54 |
46 /** Manage your Google+ posts, comments, and stream */ | 55 /// Manage your Google+ posts, comments, and stream |
47 static const PlusStreamWriteScope = "https://www.googleapis.com/auth/plus.stre
am.write"; | 56 static const PlusStreamWriteScope = |
| 57 "https://www.googleapis.com/auth/plus.stream.write"; |
48 | 58 |
49 /** View your email address */ | 59 /// View your email address |
50 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em
ail"; | 60 static const UserinfoEmailScope = |
| 61 "https://www.googleapis.com/auth/userinfo.email"; |
51 | 62 |
52 /** View your basic profile info */ | 63 /// View your basic profile info |
53 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; | 64 static const UserinfoProfileScope = |
54 | 65 "https://www.googleapis.com/auth/userinfo.profile"; |
55 | 66 |
56 final commons.ApiRequester _requester; | 67 final commons.ApiRequester _requester; |
57 | 68 |
58 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 69 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
59 AudiencesResourceApi get audiences => new AudiencesResourceApi(_requester); | 70 AudiencesResourceApi get audiences => new AudiencesResourceApi(_requester); |
60 CirclesResourceApi get circles => new CirclesResourceApi(_requester); | 71 CirclesResourceApi get circles => new CirclesResourceApi(_requester); |
61 CommentsResourceApi get comments => new CommentsResourceApi(_requester); | 72 CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
62 MediaResourceApi get media => new MediaResourceApi(_requester); | 73 MediaResourceApi get media => new MediaResourceApi(_requester); |
63 PeopleResourceApi get people => new PeopleResourceApi(_requester); | 74 PeopleResourceApi get people => new PeopleResourceApi(_requester); |
64 | 75 |
65 PlusDomainsApi(http.Client client, {core.String rootUrl: "https://www.googleap
is.com/", core.String servicePath: "plusDomains/v1/"}) : | 76 PlusDomainsApi(http.Client client, |
66 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 77 {core.String rootUrl: "https://www.googleapis.com/", |
| 78 core.String servicePath: "plusDomains/v1/"}) |
| 79 : _requester = |
| 80 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
67 } | 81 } |
68 | 82 |
69 | |
70 class ActivitiesResourceApi { | 83 class ActivitiesResourceApi { |
71 final commons.ApiRequester _requester; | 84 final commons.ApiRequester _requester; |
72 | 85 |
73 ActivitiesResourceApi(commons.ApiRequester client) : | 86 ActivitiesResourceApi(commons.ApiRequester client) : _requester = client; |
74 _requester = client; | |
75 | 87 |
76 /** | 88 /// Get an activity. |
77 * Get an activity. | 89 /// |
78 * | 90 /// Request parameters: |
79 * Request parameters: | 91 /// |
80 * | 92 /// [activityId] - The ID of the activity to get. |
81 * [activityId] - The ID of the activity to get. | 93 /// |
82 * | 94 /// Completes with a [Activity]. |
83 * Completes with a [Activity]. | 95 /// |
84 * | 96 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 97 /// an error. |
86 * error. | 98 /// |
87 * | 99 /// If the used [http.Client] completes with an error when making a REST |
88 * If the used [http.Client] completes with an error when making a REST call, | 100 /// call, this method will complete with the same error. |
89 * this method will complete with the same error. | |
90 */ | |
91 async.Future<Activity> get(core.String activityId) { | 101 async.Future<Activity> get(core.String activityId) { |
92 var _url = null; | 102 var _url = null; |
93 var _queryParams = new core.Map(); | 103 var _queryParams = new core.Map(); |
94 var _uploadMedia = null; | 104 var _uploadMedia = null; |
95 var _uploadOptions = null; | 105 var _uploadOptions = null; |
96 var _downloadOptions = commons.DownloadOptions.Metadata; | 106 var _downloadOptions = commons.DownloadOptions.Metadata; |
97 var _body = null; | 107 var _body = null; |
98 | 108 |
99 if (activityId == null) { | 109 if (activityId == null) { |
100 throw new core.ArgumentError("Parameter activityId is required."); | 110 throw new core.ArgumentError("Parameter activityId is required."); |
101 } | 111 } |
102 | 112 |
103 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId'); | 113 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId'); |
104 | 114 |
105 var _response = _requester.request(_url, | 115 var _response = _requester.request(_url, "GET", |
106 "GET", | 116 body: _body, |
107 body: _body, | 117 queryParams: _queryParams, |
108 queryParams: _queryParams, | 118 uploadOptions: _uploadOptions, |
109 uploadOptions: _uploadOptions, | 119 uploadMedia: _uploadMedia, |
110 uploadMedia: _uploadMedia, | 120 downloadOptions: _downloadOptions); |
111 downloadOptions: _downloadOptions); | |
112 return _response.then((data) => new Activity.fromJson(data)); | 121 return _response.then((data) => new Activity.fromJson(data)); |
113 } | 122 } |
114 | 123 |
115 /** | 124 /// Create a new activity for the authenticated user. |
116 * Create a new activity for the authenticated user. | 125 /// |
117 * | 126 /// [request] - The metadata request object. |
118 * [request] - The metadata request object. | 127 /// |
119 * | 128 /// Request parameters: |
120 * Request parameters: | 129 /// |
121 * | 130 /// [userId] - The ID of the user to create the activity on behalf of. Its |
122 * [userId] - The ID of the user to create the activity on behalf of. Its | 131 /// value should be "me", to indicate the authenticated user. |
123 * value should be "me", to indicate the authenticated user. | 132 /// |
124 * | 133 /// [preview] - If "true", extract the potential media attachments for a URL. |
125 * [preview] - If "true", extract the potential media attachments for a URL. | 134 /// The response will include all possible attachments for a URL, including |
126 * The response will include all possible attachments for a URL, including | 135 /// video, photos, and articles based on the content of the page. |
127 * video, photos, and articles based on the content of the page. | 136 /// |
128 * | 137 /// Completes with a [Activity]. |
129 * Completes with a [Activity]. | 138 /// |
130 * | 139 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 140 /// an error. |
132 * error. | 141 /// |
133 * | 142 /// If the used [http.Client] completes with an error when making a REST |
134 * If the used [http.Client] completes with an error when making a REST call, | 143 /// call, this method will complete with the same error. |
135 * this method will complete with the same error. | 144 async.Future<Activity> insert(Activity request, core.String userId, |
136 */ | 145 {core.bool preview}) { |
137 async.Future<Activity> insert(Activity request, core.String userId, {core.bool
preview}) { | |
138 var _url = null; | 146 var _url = null; |
139 var _queryParams = new core.Map(); | 147 var _queryParams = new core.Map(); |
140 var _uploadMedia = null; | 148 var _uploadMedia = null; |
141 var _uploadOptions = null; | 149 var _uploadOptions = null; |
142 var _downloadOptions = commons.DownloadOptions.Metadata; | 150 var _downloadOptions = commons.DownloadOptions.Metadata; |
143 var _body = null; | 151 var _body = null; |
144 | 152 |
145 if (request != null) { | 153 if (request != null) { |
146 _body = convert.JSON.encode((request).toJson()); | 154 _body = convert.JSON.encode((request).toJson()); |
147 } | 155 } |
148 if (userId == null) { | 156 if (userId == null) { |
149 throw new core.ArgumentError("Parameter userId is required."); | 157 throw new core.ArgumentError("Parameter userId is required."); |
150 } | 158 } |
151 if (preview != null) { | 159 if (preview != null) { |
152 _queryParams["preview"] = ["${preview}"]; | 160 _queryParams["preview"] = ["${preview}"]; |
153 } | 161 } |
154 | 162 |
155 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities'; | 163 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities'; |
156 | 164 |
157 var _response = _requester.request(_url, | 165 var _response = _requester.request(_url, "POST", |
158 "POST", | 166 body: _body, |
159 body: _body, | 167 queryParams: _queryParams, |
160 queryParams: _queryParams, | 168 uploadOptions: _uploadOptions, |
161 uploadOptions: _uploadOptions, | 169 uploadMedia: _uploadMedia, |
162 uploadMedia: _uploadMedia, | 170 downloadOptions: _downloadOptions); |
163 downloadOptions: _downloadOptions); | |
164 return _response.then((data) => new Activity.fromJson(data)); | 171 return _response.then((data) => new Activity.fromJson(data)); |
165 } | 172 } |
166 | 173 |
167 /** | 174 /// List all of the activities in the specified collection for a particular |
168 * List all of the activities in the specified collection for a particular | 175 /// user. |
169 * user. | 176 /// |
170 * | 177 /// Request parameters: |
171 * Request parameters: | 178 /// |
172 * | 179 /// [userId] - The ID of the user to get activities for. The special value |
173 * [userId] - The ID of the user to get activities for. The special value "me" | 180 /// "me" can be used to indicate the authenticated user. |
174 * can be used to indicate the authenticated user. | 181 /// |
175 * | 182 /// [collection] - The collection of activities to list. |
176 * [collection] - The collection of activities to list. | 183 /// Possible string values are: |
177 * Possible string values are: | 184 /// - "user" : All activities created by the specified user that the |
178 * - "user" : All activities created by the specified user that the | 185 /// authenticated user is authorized to view. |
179 * authenticated user is authorized to view. | 186 /// |
180 * | 187 /// [maxResults] - The maximum number of activities to include in the |
181 * [maxResults] - The maximum number of activities to include in the response, | 188 /// response, which is used for paging. For any response, the actual number |
182 * which is used for paging. For any response, the actual number returned | 189 /// returned might be less than the specified maxResults. |
183 * might be less than the specified maxResults. | 190 /// Value must be between "1" and "100". |
184 * Value must be between "1" and "100". | 191 /// |
185 * | 192 /// [pageToken] - The continuation token, which is used to page through large |
186 * [pageToken] - The continuation token, which is used to page through large | 193 /// result sets. To get the next page of results, set this parameter to the |
187 * result sets. To get the next page of results, set this parameter to the | 194 /// value of "nextPageToken" from the previous response. |
188 * value of "nextPageToken" from the previous response. | 195 /// |
189 * | 196 /// Completes with a [ActivityFeed]. |
190 * Completes with a [ActivityFeed]. | 197 /// |
191 * | 198 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 199 /// an error. |
193 * error. | 200 /// |
194 * | 201 /// If the used [http.Client] completes with an error when making a REST |
195 * If the used [http.Client] completes with an error when making a REST call, | 202 /// call, this method will complete with the same error. |
196 * this method will complete with the same error. | 203 async.Future<ActivityFeed> list(core.String userId, core.String collection, |
197 */ | 204 {core.int maxResults, core.String pageToken}) { |
198 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c
ore.int maxResults, core.String pageToken}) { | |
199 var _url = null; | 205 var _url = null; |
200 var _queryParams = new core.Map(); | 206 var _queryParams = new core.Map(); |
201 var _uploadMedia = null; | 207 var _uploadMedia = null; |
202 var _uploadOptions = null; | 208 var _uploadOptions = null; |
203 var _downloadOptions = commons.DownloadOptions.Metadata; | 209 var _downloadOptions = commons.DownloadOptions.Metadata; |
204 var _body = null; | 210 var _body = null; |
205 | 211 |
206 if (userId == null) { | 212 if (userId == null) { |
207 throw new core.ArgumentError("Parameter userId is required."); | 213 throw new core.ArgumentError("Parameter userId is required."); |
208 } | 214 } |
209 if (collection == null) { | 215 if (collection == null) { |
210 throw new core.ArgumentError("Parameter collection is required."); | 216 throw new core.ArgumentError("Parameter collection is required."); |
211 } | 217 } |
212 if (maxResults != null) { | 218 if (maxResults != null) { |
213 _queryParams["maxResults"] = ["${maxResults}"]; | 219 _queryParams["maxResults"] = ["${maxResults}"]; |
214 } | 220 } |
215 if (pageToken != null) { | 221 if (pageToken != null) { |
216 _queryParams["pageToken"] = [pageToken]; | 222 _queryParams["pageToken"] = [pageToken]; |
217 } | 223 } |
218 | 224 |
219 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities/'
+ commons.Escaper.ecapeVariable('$collection'); | 225 _url = 'people/' + |
| 226 commons.Escaper.ecapeVariable('$userId') + |
| 227 '/activities/' + |
| 228 commons.Escaper.ecapeVariable('$collection'); |
220 | 229 |
221 var _response = _requester.request(_url, | 230 var _response = _requester.request(_url, "GET", |
222 "GET", | 231 body: _body, |
223 body: _body, | 232 queryParams: _queryParams, |
224 queryParams: _queryParams, | 233 uploadOptions: _uploadOptions, |
225 uploadOptions: _uploadOptions, | 234 uploadMedia: _uploadMedia, |
226 uploadMedia: _uploadMedia, | 235 downloadOptions: _downloadOptions); |
227 downloadOptions: _downloadOptions); | |
228 return _response.then((data) => new ActivityFeed.fromJson(data)); | 236 return _response.then((data) => new ActivityFeed.fromJson(data)); |
229 } | 237 } |
230 | |
231 } | 238 } |
232 | 239 |
233 | |
234 class AudiencesResourceApi { | 240 class AudiencesResourceApi { |
235 final commons.ApiRequester _requester; | 241 final commons.ApiRequester _requester; |
236 | 242 |
237 AudiencesResourceApi(commons.ApiRequester client) : | 243 AudiencesResourceApi(commons.ApiRequester client) : _requester = client; |
238 _requester = client; | |
239 | 244 |
240 /** | 245 /// List all of the audiences to which a user can share. |
241 * List all of the audiences to which a user can share. | 246 /// |
242 * | 247 /// Request parameters: |
243 * Request parameters: | 248 /// |
244 * | 249 /// [userId] - The ID of the user to get audiences for. The special value |
245 * [userId] - The ID of the user to get audiences for. The special value "me" | 250 /// "me" can be used to indicate the authenticated user. |
246 * can be used to indicate the authenticated user. | 251 /// |
247 * | 252 /// [maxResults] - The maximum number of circles to include in the response, |
248 * [maxResults] - The maximum number of circles to include in the response, | 253 /// which is used for paging. For any response, the actual number returned |
249 * which is used for paging. For any response, the actual number returned | 254 /// might be less than the specified maxResults. |
250 * might be less than the specified maxResults. | 255 /// Value must be between "1" and "100". |
251 * Value must be between "1" and "100". | 256 /// |
252 * | 257 /// [pageToken] - The continuation token, which is used to page through large |
253 * [pageToken] - The continuation token, which is used to page through large | 258 /// result sets. To get the next page of results, set this parameter to the |
254 * result sets. To get the next page of results, set this parameter to the | 259 /// value of "nextPageToken" from the previous response. |
255 * value of "nextPageToken" from the previous response. | 260 /// |
256 * | 261 /// Completes with a [AudiencesFeed]. |
257 * Completes with a [AudiencesFeed]. | 262 /// |
258 * | 263 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
259 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 264 /// an error. |
260 * error. | 265 /// |
261 * | 266 /// If the used [http.Client] completes with an error when making a REST |
262 * If the used [http.Client] completes with an error when making a REST call, | 267 /// call, this method will complete with the same error. |
263 * this method will complete with the same error. | 268 async.Future<AudiencesFeed> list(core.String userId, |
264 */ | 269 {core.int maxResults, core.String pageToken}) { |
265 async.Future<AudiencesFeed> list(core.String userId, {core.int maxResults, cor
e.String pageToken}) { | |
266 var _url = null; | 270 var _url = null; |
267 var _queryParams = new core.Map(); | 271 var _queryParams = new core.Map(); |
268 var _uploadMedia = null; | 272 var _uploadMedia = null; |
269 var _uploadOptions = null; | 273 var _uploadOptions = null; |
270 var _downloadOptions = commons.DownloadOptions.Metadata; | 274 var _downloadOptions = commons.DownloadOptions.Metadata; |
271 var _body = null; | 275 var _body = null; |
272 | 276 |
273 if (userId == null) { | 277 if (userId == null) { |
274 throw new core.ArgumentError("Parameter userId is required."); | 278 throw new core.ArgumentError("Parameter userId is required."); |
275 } | 279 } |
276 if (maxResults != null) { | 280 if (maxResults != null) { |
277 _queryParams["maxResults"] = ["${maxResults}"]; | 281 _queryParams["maxResults"] = ["${maxResults}"]; |
278 } | 282 } |
279 if (pageToken != null) { | 283 if (pageToken != null) { |
280 _queryParams["pageToken"] = [pageToken]; | 284 _queryParams["pageToken"] = [pageToken]; |
281 } | 285 } |
282 | 286 |
283 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/audiences'; | 287 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/audiences'; |
284 | 288 |
285 var _response = _requester.request(_url, | 289 var _response = _requester.request(_url, "GET", |
286 "GET", | 290 body: _body, |
287 body: _body, | 291 queryParams: _queryParams, |
288 queryParams: _queryParams, | 292 uploadOptions: _uploadOptions, |
289 uploadOptions: _uploadOptions, | 293 uploadMedia: _uploadMedia, |
290 uploadMedia: _uploadMedia, | 294 downloadOptions: _downloadOptions); |
291 downloadOptions: _downloadOptions); | |
292 return _response.then((data) => new AudiencesFeed.fromJson(data)); | 295 return _response.then((data) => new AudiencesFeed.fromJson(data)); |
293 } | 296 } |
294 | |
295 } | 297 } |
296 | 298 |
297 | |
298 class CirclesResourceApi { | 299 class CirclesResourceApi { |
299 final commons.ApiRequester _requester; | 300 final commons.ApiRequester _requester; |
300 | 301 |
301 CirclesResourceApi(commons.ApiRequester client) : | 302 CirclesResourceApi(commons.ApiRequester client) : _requester = client; |
302 _requester = client; | |
303 | 303 |
304 /** | 304 /// Add a person to a circle. Google+ limits certain circle operations, |
305 * Add a person to a circle. Google+ limits certain circle operations, | 305 /// including the number of circle adds. Learn More. |
306 * including the number of circle adds. Learn More. | 306 /// |
307 * | 307 /// Request parameters: |
308 * Request parameters: | 308 /// |
309 * | 309 /// [circleId] - The ID of the circle to add the person to. |
310 * [circleId] - The ID of the circle to add the person to. | 310 /// |
311 * | 311 /// [email] - Email of the people to add to the circle. Optional, can be |
312 * [email] - Email of the people to add to the circle. Optional, can be | 312 /// repeated. |
313 * repeated. | 313 /// |
314 * | 314 /// [userId] - IDs of the people to add to the circle. Optional, can be |
315 * [userId] - IDs of the people to add to the circle. Optional, can be | 315 /// repeated. |
316 * repeated. | 316 /// |
317 * | 317 /// Completes with a [Circle]. |
318 * Completes with a [Circle]. | 318 /// |
319 * | 319 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
320 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 320 /// an error. |
321 * error. | 321 /// |
322 * | 322 /// If the used [http.Client] completes with an error when making a REST |
323 * If the used [http.Client] completes with an error when making a REST call, | 323 /// call, this method will complete with the same error. |
324 * this method will complete with the same error. | 324 async.Future<Circle> addPeople(core.String circleId, |
325 */ | 325 {core.List<core.String> email, core.List<core.String> userId}) { |
326 async.Future<Circle> addPeople(core.String circleId, {core.List<core.String> e
mail, core.List<core.String> userId}) { | |
327 var _url = null; | 326 var _url = null; |
328 var _queryParams = new core.Map(); | 327 var _queryParams = new core.Map(); |
329 var _uploadMedia = null; | 328 var _uploadMedia = null; |
330 var _uploadOptions = null; | 329 var _uploadOptions = null; |
331 var _downloadOptions = commons.DownloadOptions.Metadata; | 330 var _downloadOptions = commons.DownloadOptions.Metadata; |
332 var _body = null; | 331 var _body = null; |
333 | 332 |
334 if (circleId == null) { | 333 if (circleId == null) { |
335 throw new core.ArgumentError("Parameter circleId is required."); | 334 throw new core.ArgumentError("Parameter circleId is required."); |
336 } | 335 } |
337 if (email != null) { | 336 if (email != null) { |
338 _queryParams["email"] = email; | 337 _queryParams["email"] = email; |
339 } | 338 } |
340 if (userId != null) { | 339 if (userId != null) { |
341 _queryParams["userId"] = userId; | 340 _queryParams["userId"] = userId; |
342 } | 341 } |
343 | 342 |
344 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; | 343 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; |
345 | 344 |
346 var _response = _requester.request(_url, | 345 var _response = _requester.request(_url, "PUT", |
347 "PUT", | 346 body: _body, |
348 body: _body, | 347 queryParams: _queryParams, |
349 queryParams: _queryParams, | 348 uploadOptions: _uploadOptions, |
350 uploadOptions: _uploadOptions, | 349 uploadMedia: _uploadMedia, |
351 uploadMedia: _uploadMedia, | 350 downloadOptions: _downloadOptions); |
352 downloadOptions: _downloadOptions); | |
353 return _response.then((data) => new Circle.fromJson(data)); | 351 return _response.then((data) => new Circle.fromJson(data)); |
354 } | 352 } |
355 | 353 |
356 /** | 354 /// Get a circle. |
357 * Get a circle. | 355 /// |
358 * | 356 /// Request parameters: |
359 * Request parameters: | 357 /// |
360 * | 358 /// [circleId] - The ID of the circle to get. |
361 * [circleId] - The ID of the circle to get. | 359 /// |
362 * | 360 /// Completes with a [Circle]. |
363 * Completes with a [Circle]. | 361 /// |
364 * | 362 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 363 /// an error. |
366 * error. | 364 /// |
367 * | 365 /// If the used [http.Client] completes with an error when making a REST |
368 * If the used [http.Client] completes with an error when making a REST call, | 366 /// call, this method will complete with the same error. |
369 * this method will complete with the same error. | |
370 */ | |
371 async.Future<Circle> get(core.String circleId) { | 367 async.Future<Circle> get(core.String circleId) { |
372 var _url = null; | 368 var _url = null; |
373 var _queryParams = new core.Map(); | 369 var _queryParams = new core.Map(); |
374 var _uploadMedia = null; | 370 var _uploadMedia = null; |
375 var _uploadOptions = null; | 371 var _uploadOptions = null; |
376 var _downloadOptions = commons.DownloadOptions.Metadata; | 372 var _downloadOptions = commons.DownloadOptions.Metadata; |
377 var _body = null; | 373 var _body = null; |
378 | 374 |
379 if (circleId == null) { | 375 if (circleId == null) { |
380 throw new core.ArgumentError("Parameter circleId is required."); | 376 throw new core.ArgumentError("Parameter circleId is required."); |
381 } | 377 } |
382 | 378 |
383 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); | 379 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); |
384 | 380 |
385 var _response = _requester.request(_url, | 381 var _response = _requester.request(_url, "GET", |
386 "GET", | 382 body: _body, |
387 body: _body, | 383 queryParams: _queryParams, |
388 queryParams: _queryParams, | 384 uploadOptions: _uploadOptions, |
389 uploadOptions: _uploadOptions, | 385 uploadMedia: _uploadMedia, |
390 uploadMedia: _uploadMedia, | 386 downloadOptions: _downloadOptions); |
391 downloadOptions: _downloadOptions); | |
392 return _response.then((data) => new Circle.fromJson(data)); | 387 return _response.then((data) => new Circle.fromJson(data)); |
393 } | 388 } |
394 | 389 |
395 /** | 390 /// Create a new circle for the authenticated user. |
396 * Create a new circle for the authenticated user. | 391 /// |
397 * | 392 /// [request] - The metadata request object. |
398 * [request] - The metadata request object. | 393 /// |
399 * | 394 /// Request parameters: |
400 * Request parameters: | 395 /// |
401 * | 396 /// [userId] - The ID of the user to create the circle on behalf of. The |
402 * [userId] - The ID of the user to create the circle on behalf of. The value | 397 /// value "me" can be used to indicate the authenticated user. |
403 * "me" can be used to indicate the authenticated user. | 398 /// |
404 * | 399 /// Completes with a [Circle]. |
405 * Completes with a [Circle]. | 400 /// |
406 * | 401 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 402 /// an error. |
408 * error. | 403 /// |
409 * | 404 /// If the used [http.Client] completes with an error when making a REST |
410 * If the used [http.Client] completes with an error when making a REST call, | 405 /// call, this method will complete with the same error. |
411 * this method will complete with the same error. | |
412 */ | |
413 async.Future<Circle> insert(Circle request, core.String userId) { | 406 async.Future<Circle> insert(Circle request, core.String userId) { |
414 var _url = null; | 407 var _url = null; |
415 var _queryParams = new core.Map(); | 408 var _queryParams = new core.Map(); |
416 var _uploadMedia = null; | 409 var _uploadMedia = null; |
417 var _uploadOptions = null; | 410 var _uploadOptions = null; |
418 var _downloadOptions = commons.DownloadOptions.Metadata; | 411 var _downloadOptions = commons.DownloadOptions.Metadata; |
419 var _body = null; | 412 var _body = null; |
420 | 413 |
421 if (request != null) { | 414 if (request != null) { |
422 _body = convert.JSON.encode((request).toJson()); | 415 _body = convert.JSON.encode((request).toJson()); |
423 } | 416 } |
424 if (userId == null) { | 417 if (userId == null) { |
425 throw new core.ArgumentError("Parameter userId is required."); | 418 throw new core.ArgumentError("Parameter userId is required."); |
426 } | 419 } |
427 | 420 |
428 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles'; | 421 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles'; |
429 | 422 |
430 var _response = _requester.request(_url, | 423 var _response = _requester.request(_url, "POST", |
431 "POST", | 424 body: _body, |
432 body: _body, | 425 queryParams: _queryParams, |
433 queryParams: _queryParams, | 426 uploadOptions: _uploadOptions, |
434 uploadOptions: _uploadOptions, | 427 uploadMedia: _uploadMedia, |
435 uploadMedia: _uploadMedia, | 428 downloadOptions: _downloadOptions); |
436 downloadOptions: _downloadOptions); | |
437 return _response.then((data) => new Circle.fromJson(data)); | 429 return _response.then((data) => new Circle.fromJson(data)); |
438 } | 430 } |
439 | 431 |
440 /** | 432 /// List all of the circles for a user. |
441 * List all of the circles for a user. | 433 /// |
442 * | 434 /// Request parameters: |
443 * Request parameters: | 435 /// |
444 * | 436 /// [userId] - The ID of the user to get circles for. The special value "me" |
445 * [userId] - The ID of the user to get circles for. The special value "me" | 437 /// can be used to indicate the authenticated user. |
446 * can be used to indicate the authenticated user. | 438 /// |
447 * | 439 /// [maxResults] - The maximum number of circles to include in the response, |
448 * [maxResults] - The maximum number of circles to include in the response, | 440 /// which is used for paging. For any response, the actual number returned |
449 * which is used for paging. For any response, the actual number returned | 441 /// might be less than the specified maxResults. |
450 * might be less than the specified maxResults. | 442 /// Value must be between "1" and "100". |
451 * Value must be between "1" and "100". | 443 /// |
452 * | 444 /// [pageToken] - The continuation token, which is used to page through large |
453 * [pageToken] - The continuation token, which is used to page through large | 445 /// result sets. To get the next page of results, set this parameter to the |
454 * result sets. To get the next page of results, set this parameter to the | 446 /// value of "nextPageToken" from the previous response. |
455 * value of "nextPageToken" from the previous response. | 447 /// |
456 * | 448 /// Completes with a [CircleFeed]. |
457 * Completes with a [CircleFeed]. | 449 /// |
458 * | 450 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 451 /// an error. |
460 * error. | 452 /// |
461 * | 453 /// If the used [http.Client] completes with an error when making a REST |
462 * If the used [http.Client] completes with an error when making a REST call, | 454 /// call, this method will complete with the same error. |
463 * this method will complete with the same error. | 455 async.Future<CircleFeed> list(core.String userId, |
464 */ | 456 {core.int maxResults, core.String pageToken}) { |
465 async.Future<CircleFeed> list(core.String userId, {core.int maxResults, core.S
tring pageToken}) { | |
466 var _url = null; | 457 var _url = null; |
467 var _queryParams = new core.Map(); | 458 var _queryParams = new core.Map(); |
468 var _uploadMedia = null; | 459 var _uploadMedia = null; |
469 var _uploadOptions = null; | 460 var _uploadOptions = null; |
470 var _downloadOptions = commons.DownloadOptions.Metadata; | 461 var _downloadOptions = commons.DownloadOptions.Metadata; |
471 var _body = null; | 462 var _body = null; |
472 | 463 |
473 if (userId == null) { | 464 if (userId == null) { |
474 throw new core.ArgumentError("Parameter userId is required."); | 465 throw new core.ArgumentError("Parameter userId is required."); |
475 } | 466 } |
476 if (maxResults != null) { | 467 if (maxResults != null) { |
477 _queryParams["maxResults"] = ["${maxResults}"]; | 468 _queryParams["maxResults"] = ["${maxResults}"]; |
478 } | 469 } |
479 if (pageToken != null) { | 470 if (pageToken != null) { |
480 _queryParams["pageToken"] = [pageToken]; | 471 _queryParams["pageToken"] = [pageToken]; |
481 } | 472 } |
482 | 473 |
483 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles'; | 474 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles'; |
484 | 475 |
485 var _response = _requester.request(_url, | 476 var _response = _requester.request(_url, "GET", |
486 "GET", | 477 body: _body, |
487 body: _body, | 478 queryParams: _queryParams, |
488 queryParams: _queryParams, | 479 uploadOptions: _uploadOptions, |
489 uploadOptions: _uploadOptions, | 480 uploadMedia: _uploadMedia, |
490 uploadMedia: _uploadMedia, | 481 downloadOptions: _downloadOptions); |
491 downloadOptions: _downloadOptions); | |
492 return _response.then((data) => new CircleFeed.fromJson(data)); | 482 return _response.then((data) => new CircleFeed.fromJson(data)); |
493 } | 483 } |
494 | 484 |
495 /** | 485 /// Update a circle's description. This method supports patch semantics. |
496 * Update a circle's description. This method supports patch semantics. | 486 /// |
497 * | 487 /// [request] - The metadata request object. |
498 * [request] - The metadata request object. | 488 /// |
499 * | 489 /// Request parameters: |
500 * Request parameters: | 490 /// |
501 * | 491 /// [circleId] - The ID of the circle to update. |
502 * [circleId] - The ID of the circle to update. | 492 /// |
503 * | 493 /// Completes with a [Circle]. |
504 * Completes with a [Circle]. | 494 /// |
505 * | 495 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
506 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 496 /// an error. |
507 * error. | 497 /// |
508 * | 498 /// If the used [http.Client] completes with an error when making a REST |
509 * If the used [http.Client] completes with an error when making a REST call, | 499 /// call, this method will complete with the same error. |
510 * this method will complete with the same error. | |
511 */ | |
512 async.Future<Circle> patch(Circle request, core.String circleId) { | 500 async.Future<Circle> patch(Circle request, core.String circleId) { |
513 var _url = null; | 501 var _url = null; |
514 var _queryParams = new core.Map(); | 502 var _queryParams = new core.Map(); |
515 var _uploadMedia = null; | 503 var _uploadMedia = null; |
516 var _uploadOptions = null; | 504 var _uploadOptions = null; |
517 var _downloadOptions = commons.DownloadOptions.Metadata; | 505 var _downloadOptions = commons.DownloadOptions.Metadata; |
518 var _body = null; | 506 var _body = null; |
519 | 507 |
520 if (request != null) { | 508 if (request != null) { |
521 _body = convert.JSON.encode((request).toJson()); | 509 _body = convert.JSON.encode((request).toJson()); |
522 } | 510 } |
523 if (circleId == null) { | 511 if (circleId == null) { |
524 throw new core.ArgumentError("Parameter circleId is required."); | 512 throw new core.ArgumentError("Parameter circleId is required."); |
525 } | 513 } |
526 | 514 |
527 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); | 515 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); |
528 | 516 |
529 var _response = _requester.request(_url, | 517 var _response = _requester.request(_url, "PATCH", |
530 "PATCH", | 518 body: _body, |
531 body: _body, | 519 queryParams: _queryParams, |
532 queryParams: _queryParams, | 520 uploadOptions: _uploadOptions, |
533 uploadOptions: _uploadOptions, | 521 uploadMedia: _uploadMedia, |
534 uploadMedia: _uploadMedia, | 522 downloadOptions: _downloadOptions); |
535 downloadOptions: _downloadOptions); | |
536 return _response.then((data) => new Circle.fromJson(data)); | 523 return _response.then((data) => new Circle.fromJson(data)); |
537 } | 524 } |
538 | 525 |
539 /** | 526 /// Delete a circle. |
540 * Delete a circle. | 527 /// |
541 * | 528 /// Request parameters: |
542 * Request parameters: | 529 /// |
543 * | 530 /// [circleId] - The ID of the circle to delete. |
544 * [circleId] - The ID of the circle to delete. | 531 /// |
545 * | 532 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 533 /// an error. |
547 * error. | 534 /// |
548 * | 535 /// If the used [http.Client] completes with an error when making a REST |
549 * If the used [http.Client] completes with an error when making a REST call, | 536 /// call, this method will complete with the same error. |
550 * this method will complete with the same error. | |
551 */ | |
552 async.Future remove(core.String circleId) { | 537 async.Future remove(core.String circleId) { |
553 var _url = null; | 538 var _url = null; |
554 var _queryParams = new core.Map(); | 539 var _queryParams = new core.Map(); |
555 var _uploadMedia = null; | 540 var _uploadMedia = null; |
556 var _uploadOptions = null; | 541 var _uploadOptions = null; |
557 var _downloadOptions = commons.DownloadOptions.Metadata; | 542 var _downloadOptions = commons.DownloadOptions.Metadata; |
558 var _body = null; | 543 var _body = null; |
559 | 544 |
560 if (circleId == null) { | 545 if (circleId == null) { |
561 throw new core.ArgumentError("Parameter circleId is required."); | 546 throw new core.ArgumentError("Parameter circleId is required."); |
562 } | 547 } |
563 | 548 |
564 _downloadOptions = null; | 549 _downloadOptions = null; |
565 | 550 |
566 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); | 551 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); |
567 | 552 |
568 var _response = _requester.request(_url, | 553 var _response = _requester.request(_url, "DELETE", |
569 "DELETE", | 554 body: _body, |
570 body: _body, | 555 queryParams: _queryParams, |
571 queryParams: _queryParams, | 556 uploadOptions: _uploadOptions, |
572 uploadOptions: _uploadOptions, | 557 uploadMedia: _uploadMedia, |
573 uploadMedia: _uploadMedia, | 558 downloadOptions: _downloadOptions); |
574 downloadOptions: _downloadOptions); | |
575 return _response.then((data) => null); | 559 return _response.then((data) => null); |
576 } | 560 } |
577 | 561 |
578 /** | 562 /// Remove a person from a circle. |
579 * Remove a person from a circle. | 563 /// |
580 * | 564 /// Request parameters: |
581 * Request parameters: | 565 /// |
582 * | 566 /// [circleId] - The ID of the circle to remove the person from. |
583 * [circleId] - The ID of the circle to remove the person from. | 567 /// |
584 * | 568 /// [email] - Email of the people to add to the circle. Optional, can be |
585 * [email] - Email of the people to add to the circle. Optional, can be | 569 /// repeated. |
586 * repeated. | 570 /// |
587 * | 571 /// [userId] - IDs of the people to remove from the circle. Optional, can be |
588 * [userId] - IDs of the people to remove from the circle. Optional, can be | 572 /// repeated. |
589 * repeated. | 573 /// |
590 * | 574 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 575 /// an error. |
592 * error. | 576 /// |
593 * | 577 /// If the used [http.Client] completes with an error when making a REST |
594 * If the used [http.Client] completes with an error when making a REST call, | 578 /// call, this method will complete with the same error. |
595 * this method will complete with the same error. | 579 async.Future removePeople(core.String circleId, |
596 */ | 580 {core.List<core.String> email, core.List<core.String> userId}) { |
597 async.Future removePeople(core.String circleId, {core.List<core.String> email,
core.List<core.String> userId}) { | |
598 var _url = null; | 581 var _url = null; |
599 var _queryParams = new core.Map(); | 582 var _queryParams = new core.Map(); |
600 var _uploadMedia = null; | 583 var _uploadMedia = null; |
601 var _uploadOptions = null; | 584 var _uploadOptions = null; |
602 var _downloadOptions = commons.DownloadOptions.Metadata; | 585 var _downloadOptions = commons.DownloadOptions.Metadata; |
603 var _body = null; | 586 var _body = null; |
604 | 587 |
605 if (circleId == null) { | 588 if (circleId == null) { |
606 throw new core.ArgumentError("Parameter circleId is required."); | 589 throw new core.ArgumentError("Parameter circleId is required."); |
607 } | 590 } |
608 if (email != null) { | 591 if (email != null) { |
609 _queryParams["email"] = email; | 592 _queryParams["email"] = email; |
610 } | 593 } |
611 if (userId != null) { | 594 if (userId != null) { |
612 _queryParams["userId"] = userId; | 595 _queryParams["userId"] = userId; |
613 } | 596 } |
614 | 597 |
615 _downloadOptions = null; | 598 _downloadOptions = null; |
616 | 599 |
617 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; | 600 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; |
618 | 601 |
619 var _response = _requester.request(_url, | 602 var _response = _requester.request(_url, "DELETE", |
620 "DELETE", | 603 body: _body, |
621 body: _body, | 604 queryParams: _queryParams, |
622 queryParams: _queryParams, | 605 uploadOptions: _uploadOptions, |
623 uploadOptions: _uploadOptions, | 606 uploadMedia: _uploadMedia, |
624 uploadMedia: _uploadMedia, | 607 downloadOptions: _downloadOptions); |
625 downloadOptions: _downloadOptions); | |
626 return _response.then((data) => null); | 608 return _response.then((data) => null); |
627 } | 609 } |
628 | 610 |
629 /** | 611 /// Update a circle's description. |
630 * Update a circle's description. | 612 /// |
631 * | 613 /// [request] - The metadata request object. |
632 * [request] - The metadata request object. | 614 /// |
633 * | 615 /// Request parameters: |
634 * Request parameters: | 616 /// |
635 * | 617 /// [circleId] - The ID of the circle to update. |
636 * [circleId] - The ID of the circle to update. | 618 /// |
637 * | 619 /// Completes with a [Circle]. |
638 * Completes with a [Circle]. | 620 /// |
639 * | 621 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
640 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 622 /// an error. |
641 * error. | 623 /// |
642 * | 624 /// If the used [http.Client] completes with an error when making a REST |
643 * If the used [http.Client] completes with an error when making a REST call, | 625 /// call, this method will complete with the same error. |
644 * this method will complete with the same error. | |
645 */ | |
646 async.Future<Circle> update(Circle request, core.String circleId) { | 626 async.Future<Circle> update(Circle request, core.String circleId) { |
647 var _url = null; | 627 var _url = null; |
648 var _queryParams = new core.Map(); | 628 var _queryParams = new core.Map(); |
649 var _uploadMedia = null; | 629 var _uploadMedia = null; |
650 var _uploadOptions = null; | 630 var _uploadOptions = null; |
651 var _downloadOptions = commons.DownloadOptions.Metadata; | 631 var _downloadOptions = commons.DownloadOptions.Metadata; |
652 var _body = null; | 632 var _body = null; |
653 | 633 |
654 if (request != null) { | 634 if (request != null) { |
655 _body = convert.JSON.encode((request).toJson()); | 635 _body = convert.JSON.encode((request).toJson()); |
656 } | 636 } |
657 if (circleId == null) { | 637 if (circleId == null) { |
658 throw new core.ArgumentError("Parameter circleId is required."); | 638 throw new core.ArgumentError("Parameter circleId is required."); |
659 } | 639 } |
660 | 640 |
661 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); | 641 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId'); |
662 | 642 |
663 var _response = _requester.request(_url, | 643 var _response = _requester.request(_url, "PUT", |
664 "PUT", | 644 body: _body, |
665 body: _body, | 645 queryParams: _queryParams, |
666 queryParams: _queryParams, | 646 uploadOptions: _uploadOptions, |
667 uploadOptions: _uploadOptions, | 647 uploadMedia: _uploadMedia, |
668 uploadMedia: _uploadMedia, | 648 downloadOptions: _downloadOptions); |
669 downloadOptions: _downloadOptions); | |
670 return _response.then((data) => new Circle.fromJson(data)); | 649 return _response.then((data) => new Circle.fromJson(data)); |
671 } | 650 } |
672 | |
673 } | 651 } |
674 | 652 |
675 | |
676 class CommentsResourceApi { | 653 class CommentsResourceApi { |
677 final commons.ApiRequester _requester; | 654 final commons.ApiRequester _requester; |
678 | 655 |
679 CommentsResourceApi(commons.ApiRequester client) : | 656 CommentsResourceApi(commons.ApiRequester client) : _requester = client; |
680 _requester = client; | |
681 | 657 |
682 /** | 658 /// Get a comment. |
683 * Get a comment. | 659 /// |
684 * | 660 /// Request parameters: |
685 * Request parameters: | 661 /// |
686 * | 662 /// [commentId] - The ID of the comment to get. |
687 * [commentId] - The ID of the comment to get. | 663 /// |
688 * | 664 /// Completes with a [Comment]. |
689 * Completes with a [Comment]. | 665 /// |
690 * | 666 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
691 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 667 /// an error. |
692 * error. | 668 /// |
693 * | 669 /// If the used [http.Client] completes with an error when making a REST |
694 * If the used [http.Client] completes with an error when making a REST call, | 670 /// call, this method will complete with the same error. |
695 * this method will complete with the same error. | |
696 */ | |
697 async.Future<Comment> get(core.String commentId) { | 671 async.Future<Comment> get(core.String commentId) { |
698 var _url = null; | 672 var _url = null; |
699 var _queryParams = new core.Map(); | 673 var _queryParams = new core.Map(); |
700 var _uploadMedia = null; | 674 var _uploadMedia = null; |
701 var _uploadOptions = null; | 675 var _uploadOptions = null; |
702 var _downloadOptions = commons.DownloadOptions.Metadata; | 676 var _downloadOptions = commons.DownloadOptions.Metadata; |
703 var _body = null; | 677 var _body = null; |
704 | 678 |
705 if (commentId == null) { | 679 if (commentId == null) { |
706 throw new core.ArgumentError("Parameter commentId is required."); | 680 throw new core.ArgumentError("Parameter commentId is required."); |
707 } | 681 } |
708 | 682 |
709 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId'); | 683 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId'); |
710 | 684 |
711 var _response = _requester.request(_url, | 685 var _response = _requester.request(_url, "GET", |
712 "GET", | 686 body: _body, |
713 body: _body, | 687 queryParams: _queryParams, |
714 queryParams: _queryParams, | 688 uploadOptions: _uploadOptions, |
715 uploadOptions: _uploadOptions, | 689 uploadMedia: _uploadMedia, |
716 uploadMedia: _uploadMedia, | 690 downloadOptions: _downloadOptions); |
717 downloadOptions: _downloadOptions); | |
718 return _response.then((data) => new Comment.fromJson(data)); | 691 return _response.then((data) => new Comment.fromJson(data)); |
719 } | 692 } |
720 | 693 |
721 /** | 694 /// Create a new comment in reply to an activity. |
722 * Create a new comment in reply to an activity. | 695 /// |
723 * | 696 /// [request] - The metadata request object. |
724 * [request] - The metadata request object. | 697 /// |
725 * | 698 /// Request parameters: |
726 * Request parameters: | 699 /// |
727 * | 700 /// [activityId] - The ID of the activity to reply to. |
728 * [activityId] - The ID of the activity to reply to. | 701 /// |
729 * | 702 /// Completes with a [Comment]. |
730 * Completes with a [Comment]. | 703 /// |
731 * | 704 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
732 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 705 /// an error. |
733 * error. | 706 /// |
734 * | 707 /// If the used [http.Client] completes with an error when making a REST |
735 * If the used [http.Client] completes with an error when making a REST call, | 708 /// call, this method will complete with the same error. |
736 * this method will complete with the same error. | |
737 */ | |
738 async.Future<Comment> insert(Comment request, core.String activityId) { | 709 async.Future<Comment> insert(Comment request, core.String activityId) { |
739 var _url = null; | 710 var _url = null; |
740 var _queryParams = new core.Map(); | 711 var _queryParams = new core.Map(); |
741 var _uploadMedia = null; | 712 var _uploadMedia = null; |
742 var _uploadOptions = null; | 713 var _uploadOptions = null; |
743 var _downloadOptions = commons.DownloadOptions.Metadata; | 714 var _downloadOptions = commons.DownloadOptions.Metadata; |
744 var _body = null; | 715 var _body = null; |
745 | 716 |
746 if (request != null) { | 717 if (request != null) { |
747 _body = convert.JSON.encode((request).toJson()); | 718 _body = convert.JSON.encode((request).toJson()); |
748 } | 719 } |
749 if (activityId == null) { | 720 if (activityId == null) { |
750 throw new core.ArgumentError("Parameter activityId is required."); | 721 throw new core.ArgumentError("Parameter activityId is required."); |
751 } | 722 } |
752 | 723 |
753 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm
ents'; | 724 _url = 'activities/' + |
| 725 commons.Escaper.ecapeVariable('$activityId') + |
| 726 '/comments'; |
754 | 727 |
755 var _response = _requester.request(_url, | 728 var _response = _requester.request(_url, "POST", |
756 "POST", | 729 body: _body, |
757 body: _body, | 730 queryParams: _queryParams, |
758 queryParams: _queryParams, | 731 uploadOptions: _uploadOptions, |
759 uploadOptions: _uploadOptions, | 732 uploadMedia: _uploadMedia, |
760 uploadMedia: _uploadMedia, | 733 downloadOptions: _downloadOptions); |
761 downloadOptions: _downloadOptions); | |
762 return _response.then((data) => new Comment.fromJson(data)); | 734 return _response.then((data) => new Comment.fromJson(data)); |
763 } | 735 } |
764 | 736 |
765 /** | 737 /// List all of the comments for an activity. |
766 * List all of the comments for an activity. | 738 /// |
767 * | 739 /// Request parameters: |
768 * Request parameters: | 740 /// |
769 * | 741 /// [activityId] - The ID of the activity to get comments for. |
770 * [activityId] - The ID of the activity to get comments for. | 742 /// |
771 * | 743 /// [maxResults] - The maximum number of comments to include in the response, |
772 * [maxResults] - The maximum number of comments to include in the response, | 744 /// which is used for paging. For any response, the actual number returned |
773 * which is used for paging. For any response, the actual number returned | 745 /// might be less than the specified maxResults. |
774 * might be less than the specified maxResults. | 746 /// Value must be between "0" and "500". |
775 * Value must be between "0" and "500". | 747 /// |
776 * | 748 /// [pageToken] - The continuation token, which is used to page through large |
777 * [pageToken] - The continuation token, which is used to page through large | 749 /// result sets. To get the next page of results, set this parameter to the |
778 * result sets. To get the next page of results, set this parameter to the | 750 /// value of "nextPageToken" from the previous response. |
779 * value of "nextPageToken" from the previous response. | 751 /// |
780 * | 752 /// [sortOrder] - The order in which to sort the list of comments. |
781 * [sortOrder] - The order in which to sort the list of comments. | 753 /// Possible string values are: |
782 * Possible string values are: | 754 /// - "ascending" : Sort oldest comments first. |
783 * - "ascending" : Sort oldest comments first. | 755 /// - "descending" : Sort newest comments first. |
784 * - "descending" : Sort newest comments first. | 756 /// |
785 * | 757 /// Completes with a [CommentFeed]. |
786 * Completes with a [CommentFeed]. | 758 /// |
787 * | 759 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
788 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 760 /// an error. |
789 * error. | 761 /// |
790 * | 762 /// If the used [http.Client] completes with an error when making a REST |
791 * If the used [http.Client] completes with an error when making a REST call, | 763 /// call, this method will complete with the same error. |
792 * this method will complete with the same error. | 764 async.Future<CommentFeed> list(core.String activityId, |
793 */ | 765 {core.int maxResults, core.String pageToken, core.String sortOrder}) { |
794 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c
ore.String pageToken, core.String sortOrder}) { | |
795 var _url = null; | 766 var _url = null; |
796 var _queryParams = new core.Map(); | 767 var _queryParams = new core.Map(); |
797 var _uploadMedia = null; | 768 var _uploadMedia = null; |
798 var _uploadOptions = null; | 769 var _uploadOptions = null; |
799 var _downloadOptions = commons.DownloadOptions.Metadata; | 770 var _downloadOptions = commons.DownloadOptions.Metadata; |
800 var _body = null; | 771 var _body = null; |
801 | 772 |
802 if (activityId == null) { | 773 if (activityId == null) { |
803 throw new core.ArgumentError("Parameter activityId is required."); | 774 throw new core.ArgumentError("Parameter activityId is required."); |
804 } | 775 } |
805 if (maxResults != null) { | 776 if (maxResults != null) { |
806 _queryParams["maxResults"] = ["${maxResults}"]; | 777 _queryParams["maxResults"] = ["${maxResults}"]; |
807 } | 778 } |
808 if (pageToken != null) { | 779 if (pageToken != null) { |
809 _queryParams["pageToken"] = [pageToken]; | 780 _queryParams["pageToken"] = [pageToken]; |
810 } | 781 } |
811 if (sortOrder != null) { | 782 if (sortOrder != null) { |
812 _queryParams["sortOrder"] = [sortOrder]; | 783 _queryParams["sortOrder"] = [sortOrder]; |
813 } | 784 } |
814 | 785 |
815 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm
ents'; | 786 _url = 'activities/' + |
| 787 commons.Escaper.ecapeVariable('$activityId') + |
| 788 '/comments'; |
816 | 789 |
817 var _response = _requester.request(_url, | 790 var _response = _requester.request(_url, "GET", |
818 "GET", | 791 body: _body, |
819 body: _body, | 792 queryParams: _queryParams, |
820 queryParams: _queryParams, | 793 uploadOptions: _uploadOptions, |
821 uploadOptions: _uploadOptions, | 794 uploadMedia: _uploadMedia, |
822 uploadMedia: _uploadMedia, | 795 downloadOptions: _downloadOptions); |
823 downloadOptions: _downloadOptions); | |
824 return _response.then((data) => new CommentFeed.fromJson(data)); | 796 return _response.then((data) => new CommentFeed.fromJson(data)); |
825 } | 797 } |
826 | |
827 } | 798 } |
828 | 799 |
829 | |
830 class MediaResourceApi { | 800 class MediaResourceApi { |
831 final commons.ApiRequester _requester; | 801 final commons.ApiRequester _requester; |
832 | 802 |
833 MediaResourceApi(commons.ApiRequester client) : | 803 MediaResourceApi(commons.ApiRequester client) : _requester = client; |
834 _requester = client; | |
835 | 804 |
836 /** | 805 /// Add a new media item to an album. The current upload size limitations are |
837 * Add a new media item to an album. The current upload size limitations are | 806 /// 36MB for a photo and 1GB for a video. Uploads do not count against quota |
838 * 36MB for a photo and 1GB for a video. Uploads do not count against quota if | 807 /// if photos are less than 2048 pixels on their longest side or videos are |
839 * photos are less than 2048 pixels on their longest side or videos are less | 808 /// less than 15 minutes in length. |
840 * than 15 minutes in length. | 809 /// |
841 * | 810 /// [request] - The metadata request object. |
842 * [request] - The metadata request object. | 811 /// |
843 * | 812 /// Request parameters: |
844 * Request parameters: | 813 /// |
845 * | 814 /// [userId] - The ID of the user to create the activity on behalf of. |
846 * [userId] - The ID of the user to create the activity on behalf of. | 815 /// |
847 * | 816 /// [collection] - null |
848 * [collection] - null | 817 /// Possible string values are: |
849 * Possible string values are: | 818 /// - "cloud" : Upload the media to share on Google+. |
850 * - "cloud" : Upload the media to share on Google+. | 819 /// |
851 * | 820 /// [uploadMedia] - The media to upload. |
852 * [uploadMedia] - The media to upload. | 821 /// |
853 * | 822 /// [uploadOptions] - Options for the media upload. Streaming Media without |
854 * [uploadOptions] - Options for the media upload. Streaming Media without the | 823 /// the length being known ahead of time is only supported via resumable |
855 * length being known ahead of time is only supported via resumable uploads. | 824 /// uploads. |
856 * | 825 /// |
857 * Completes with a [Media]. | 826 /// Completes with a [Media]. |
858 * | 827 /// |
859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 828 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
860 * error. | 829 /// an error. |
861 * | 830 /// |
862 * If the used [http.Client] completes with an error when making a REST call, | 831 /// If the used [http.Client] completes with an error when making a REST |
863 * this method will complete with the same error. | 832 /// call, this method will complete with the same error. |
864 */ | 833 async.Future<Media> insert( |
865 async.Future<Media> insert(Media request, core.String userId, core.String coll
ection, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, co
mmons.Media uploadMedia}) { | 834 Media request, core.String userId, core.String collection, |
| 835 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 836 commons.Media uploadMedia}) { |
866 var _url = null; | 837 var _url = null; |
867 var _queryParams = new core.Map(); | 838 var _queryParams = new core.Map(); |
868 var _uploadMedia = null; | 839 var _uploadMedia = null; |
869 var _uploadOptions = null; | 840 var _uploadOptions = null; |
870 var _downloadOptions = commons.DownloadOptions.Metadata; | 841 var _downloadOptions = commons.DownloadOptions.Metadata; |
871 var _body = null; | 842 var _body = null; |
872 | 843 |
873 if (request != null) { | 844 if (request != null) { |
874 _body = convert.JSON.encode((request).toJson()); | 845 _body = convert.JSON.encode((request).toJson()); |
875 } | 846 } |
876 if (userId == null) { | 847 if (userId == null) { |
877 throw new core.ArgumentError("Parameter userId is required."); | 848 throw new core.ArgumentError("Parameter userId is required."); |
878 } | 849 } |
879 if (collection == null) { | 850 if (collection == null) { |
880 throw new core.ArgumentError("Parameter collection is required."); | 851 throw new core.ArgumentError("Parameter collection is required."); |
881 } | 852 } |
882 | 853 |
883 _uploadMedia = uploadMedia; | 854 _uploadMedia = uploadMedia; |
884 _uploadOptions = uploadOptions; | 855 _uploadOptions = uploadOptions; |
885 | 856 |
886 if (_uploadMedia == null) { | 857 if (_uploadMedia == null) { |
887 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/media/' +
commons.Escaper.ecapeVariable('$collection'); | 858 _url = 'people/' + |
| 859 commons.Escaper.ecapeVariable('$userId') + |
| 860 '/media/' + |
| 861 commons.Escaper.ecapeVariable('$collection'); |
888 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 862 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
889 _url = '/resumable/upload/plusDomains/v1/people/' + commons.Escaper.ecapeV
ariable('$userId') + '/media/' + commons.Escaper.ecapeVariable('$collection'); | 863 _url = '/resumable/upload/plusDomains/v1/people/' + |
| 864 commons.Escaper.ecapeVariable('$userId') + |
| 865 '/media/' + |
| 866 commons.Escaper.ecapeVariable('$collection'); |
890 } else { | 867 } else { |
891 _url = '/upload/plusDomains/v1/people/' + commons.Escaper.ecapeVariable('$
userId') + '/media/' + commons.Escaper.ecapeVariable('$collection'); | 868 _url = '/upload/plusDomains/v1/people/' + |
| 869 commons.Escaper.ecapeVariable('$userId') + |
| 870 '/media/' + |
| 871 commons.Escaper.ecapeVariable('$collection'); |
892 } | 872 } |
893 | 873 |
894 | 874 var _response = _requester.request(_url, "POST", |
895 var _response = _requester.request(_url, | 875 body: _body, |
896 "POST", | 876 queryParams: _queryParams, |
897 body: _body, | 877 uploadOptions: _uploadOptions, |
898 queryParams: _queryParams, | 878 uploadMedia: _uploadMedia, |
899 uploadOptions: _uploadOptions, | 879 downloadOptions: _downloadOptions); |
900 uploadMedia: _uploadMedia, | |
901 downloadOptions: _downloadOptions); | |
902 return _response.then((data) => new Media.fromJson(data)); | 880 return _response.then((data) => new Media.fromJson(data)); |
903 } | 881 } |
904 | |
905 } | 882 } |
906 | 883 |
907 | |
908 class PeopleResourceApi { | 884 class PeopleResourceApi { |
909 final commons.ApiRequester _requester; | 885 final commons.ApiRequester _requester; |
910 | 886 |
911 PeopleResourceApi(commons.ApiRequester client) : | 887 PeopleResourceApi(commons.ApiRequester client) : _requester = client; |
912 _requester = client; | |
913 | 888 |
914 /** | 889 /// Get a person's profile. |
915 * Get a person's profile. | 890 /// |
916 * | 891 /// Request parameters: |
917 * Request parameters: | 892 /// |
918 * | 893 /// [userId] - The ID of the person to get the profile for. The special value |
919 * [userId] - The ID of the person to get the profile for. The special value | 894 /// "me" can be used to indicate the authenticated user. |
920 * "me" can be used to indicate the authenticated user. | 895 /// |
921 * | 896 /// Completes with a [Person]. |
922 * Completes with a [Person]. | 897 /// |
923 * | 898 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
924 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 899 /// an error. |
925 * error. | 900 /// |
926 * | 901 /// If the used [http.Client] completes with an error when making a REST |
927 * If the used [http.Client] completes with an error when making a REST call, | 902 /// call, this method will complete with the same error. |
928 * this method will complete with the same error. | |
929 */ | |
930 async.Future<Person> get(core.String userId) { | 903 async.Future<Person> get(core.String userId) { |
931 var _url = null; | 904 var _url = null; |
932 var _queryParams = new core.Map(); | 905 var _queryParams = new core.Map(); |
933 var _uploadMedia = null; | 906 var _uploadMedia = null; |
934 var _uploadOptions = null; | 907 var _uploadOptions = null; |
935 var _downloadOptions = commons.DownloadOptions.Metadata; | 908 var _downloadOptions = commons.DownloadOptions.Metadata; |
936 var _body = null; | 909 var _body = null; |
937 | 910 |
938 if (userId == null) { | 911 if (userId == null) { |
939 throw new core.ArgumentError("Parameter userId is required."); | 912 throw new core.ArgumentError("Parameter userId is required."); |
940 } | 913 } |
941 | 914 |
942 _url = 'people/' + commons.Escaper.ecapeVariable('$userId'); | 915 _url = 'people/' + commons.Escaper.ecapeVariable('$userId'); |
943 | 916 |
944 var _response = _requester.request(_url, | 917 var _response = _requester.request(_url, "GET", |
945 "GET", | 918 body: _body, |
946 body: _body, | 919 queryParams: _queryParams, |
947 queryParams: _queryParams, | 920 uploadOptions: _uploadOptions, |
948 uploadOptions: _uploadOptions, | 921 uploadMedia: _uploadMedia, |
949 uploadMedia: _uploadMedia, | 922 downloadOptions: _downloadOptions); |
950 downloadOptions: _downloadOptions); | |
951 return _response.then((data) => new Person.fromJson(data)); | 923 return _response.then((data) => new Person.fromJson(data)); |
952 } | 924 } |
953 | 925 |
954 /** | 926 /// List all of the people in the specified collection. |
955 * List all of the people in the specified collection. | 927 /// |
956 * | 928 /// Request parameters: |
957 * Request parameters: | 929 /// |
958 * | 930 /// [userId] - Get the collection of people for the person identified. Use |
959 * [userId] - Get the collection of people for the person identified. Use "me" | 931 /// "me" to indicate the authenticated user. |
960 * to indicate the authenticated user. | 932 /// |
961 * | 933 /// [collection] - The collection of people to list. |
962 * [collection] - The collection of people to list. | 934 /// Possible string values are: |
963 * Possible string values are: | 935 /// - "circled" : The list of people who this user has added to one or more |
964 * - "circled" : The list of people who this user has added to one or more | 936 /// circles. |
965 * circles. | 937 /// |
966 * | 938 /// [maxResults] - The maximum number of people to include in the response, |
967 * [maxResults] - The maximum number of people to include in the response, | 939 /// which is used for paging. For any response, the actual number returned |
968 * which is used for paging. For any response, the actual number returned | 940 /// might be less than the specified maxResults. |
969 * might be less than the specified maxResults. | 941 /// Value must be between "1" and "100". |
970 * Value must be between "1" and "100". | 942 /// |
971 * | 943 /// [orderBy] - The order to return people in. |
972 * [orderBy] - The order to return people in. | 944 /// Possible string values are: |
973 * Possible string values are: | 945 /// - "alphabetical" : Order the people by their display name. |
974 * - "alphabetical" : Order the people by their display name. | 946 /// - "best" : Order people based on the relevence to the viewer. |
975 * - "best" : Order people based on the relevence to the viewer. | 947 /// |
976 * | 948 /// [pageToken] - The continuation token, which is used to page through large |
977 * [pageToken] - The continuation token, which is used to page through large | 949 /// result sets. To get the next page of results, set this parameter to the |
978 * result sets. To get the next page of results, set this parameter to the | 950 /// value of "nextPageToken" from the previous response. |
979 * value of "nextPageToken" from the previous response. | 951 /// |
980 * | 952 /// Completes with a [PeopleFeed]. |
981 * Completes with a [PeopleFeed]. | 953 /// |
982 * | 954 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 955 /// an error. |
984 * error. | 956 /// |
985 * | 957 /// If the used [http.Client] completes with an error when making a REST |
986 * If the used [http.Client] completes with an error when making a REST call, | 958 /// call, this method will complete with the same error. |
987 * this method will complete with the same error. | 959 async.Future<PeopleFeed> list(core.String userId, core.String collection, |
988 */ | 960 {core.int maxResults, core.String orderBy, core.String pageToken}) { |
989 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor
e.int maxResults, core.String orderBy, core.String pageToken}) { | |
990 var _url = null; | 961 var _url = null; |
991 var _queryParams = new core.Map(); | 962 var _queryParams = new core.Map(); |
992 var _uploadMedia = null; | 963 var _uploadMedia = null; |
993 var _uploadOptions = null; | 964 var _uploadOptions = null; |
994 var _downloadOptions = commons.DownloadOptions.Metadata; | 965 var _downloadOptions = commons.DownloadOptions.Metadata; |
995 var _body = null; | 966 var _body = null; |
996 | 967 |
997 if (userId == null) { | 968 if (userId == null) { |
998 throw new core.ArgumentError("Parameter userId is required."); | 969 throw new core.ArgumentError("Parameter userId is required."); |
999 } | 970 } |
1000 if (collection == null) { | 971 if (collection == null) { |
1001 throw new core.ArgumentError("Parameter collection is required."); | 972 throw new core.ArgumentError("Parameter collection is required."); |
1002 } | 973 } |
1003 if (maxResults != null) { | 974 if (maxResults != null) { |
1004 _queryParams["maxResults"] = ["${maxResults}"]; | 975 _queryParams["maxResults"] = ["${maxResults}"]; |
1005 } | 976 } |
1006 if (orderBy != null) { | 977 if (orderBy != null) { |
1007 _queryParams["orderBy"] = [orderBy]; | 978 _queryParams["orderBy"] = [orderBy]; |
1008 } | 979 } |
1009 if (pageToken != null) { | 980 if (pageToken != null) { |
1010 _queryParams["pageToken"] = [pageToken]; | 981 _queryParams["pageToken"] = [pageToken]; |
1011 } | 982 } |
1012 | 983 |
1013 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/people/' + c
ommons.Escaper.ecapeVariable('$collection'); | 984 _url = 'people/' + |
| 985 commons.Escaper.ecapeVariable('$userId') + |
| 986 '/people/' + |
| 987 commons.Escaper.ecapeVariable('$collection'); |
1014 | 988 |
1015 var _response = _requester.request(_url, | 989 var _response = _requester.request(_url, "GET", |
1016 "GET", | 990 body: _body, |
1017 body: _body, | 991 queryParams: _queryParams, |
1018 queryParams: _queryParams, | 992 uploadOptions: _uploadOptions, |
1019 uploadOptions: _uploadOptions, | 993 uploadMedia: _uploadMedia, |
1020 uploadMedia: _uploadMedia, | 994 downloadOptions: _downloadOptions); |
1021 downloadOptions: _downloadOptions); | |
1022 return _response.then((data) => new PeopleFeed.fromJson(data)); | 995 return _response.then((data) => new PeopleFeed.fromJson(data)); |
1023 } | 996 } |
1024 | 997 |
1025 /** | 998 /// List all of the people in the specified collection for a particular |
1026 * List all of the people in the specified collection for a particular | 999 /// activity. |
1027 * activity. | 1000 /// |
1028 * | 1001 /// Request parameters: |
1029 * Request parameters: | 1002 /// |
1030 * | 1003 /// [activityId] - The ID of the activity to get the list of people for. |
1031 * [activityId] - The ID of the activity to get the list of people for. | 1004 /// |
1032 * | 1005 /// [collection] - The collection of people to list. |
1033 * [collection] - The collection of people to list. | 1006 /// Possible string values are: |
1034 * Possible string values are: | 1007 /// - "plusoners" : List all people who have +1'd this activity. |
1035 * - "plusoners" : List all people who have +1'd this activity. | 1008 /// - "resharers" : List all people who have reshared this activity. |
1036 * - "resharers" : List all people who have reshared this activity. | 1009 /// - "sharedto" : List all people who this activity was shared to. |
1037 * - "sharedto" : List all people who this activity was shared to. | 1010 /// |
1038 * | 1011 /// [maxResults] - The maximum number of people to include in the response, |
1039 * [maxResults] - The maximum number of people to include in the response, | 1012 /// which is used for paging. For any response, the actual number returned |
1040 * which is used for paging. For any response, the actual number returned | 1013 /// might be less than the specified maxResults. |
1041 * might be less than the specified maxResults. | 1014 /// Value must be between "1" and "100". |
1042 * Value must be between "1" and "100". | 1015 /// |
1043 * | 1016 /// [pageToken] - The continuation token, which is used to page through large |
1044 * [pageToken] - The continuation token, which is used to page through large | 1017 /// result sets. To get the next page of results, set this parameter to the |
1045 * result sets. To get the next page of results, set this parameter to the | 1018 /// value of "nextPageToken" from the previous response. |
1046 * value of "nextPageToken" from the previous response. | 1019 /// |
1047 * | 1020 /// Completes with a [PeopleFeed]. |
1048 * Completes with a [PeopleFeed]. | 1021 /// |
1049 * | 1022 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1050 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1023 /// an error. |
1051 * error. | 1024 /// |
1052 * | 1025 /// If the used [http.Client] completes with an error when making a REST |
1053 * If the used [http.Client] completes with an error when making a REST call, | 1026 /// call, this method will complete with the same error. |
1054 * this method will complete with the same error. | 1027 async.Future<PeopleFeed> listByActivity( |
1055 */ | 1028 core.String activityId, core.String collection, |
1056 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co
llection, {core.int maxResults, core.String pageToken}) { | 1029 {core.int maxResults, core.String pageToken}) { |
1057 var _url = null; | 1030 var _url = null; |
1058 var _queryParams = new core.Map(); | 1031 var _queryParams = new core.Map(); |
1059 var _uploadMedia = null; | 1032 var _uploadMedia = null; |
1060 var _uploadOptions = null; | 1033 var _uploadOptions = null; |
1061 var _downloadOptions = commons.DownloadOptions.Metadata; | 1034 var _downloadOptions = commons.DownloadOptions.Metadata; |
1062 var _body = null; | 1035 var _body = null; |
1063 | 1036 |
1064 if (activityId == null) { | 1037 if (activityId == null) { |
1065 throw new core.ArgumentError("Parameter activityId is required."); | 1038 throw new core.ArgumentError("Parameter activityId is required."); |
1066 } | 1039 } |
1067 if (collection == null) { | 1040 if (collection == null) { |
1068 throw new core.ArgumentError("Parameter collection is required."); | 1041 throw new core.ArgumentError("Parameter collection is required."); |
1069 } | 1042 } |
1070 if (maxResults != null) { | 1043 if (maxResults != null) { |
1071 _queryParams["maxResults"] = ["${maxResults}"]; | 1044 _queryParams["maxResults"] = ["${maxResults}"]; |
1072 } | 1045 } |
1073 if (pageToken != null) { | 1046 if (pageToken != null) { |
1074 _queryParams["pageToken"] = [pageToken]; | 1047 _queryParams["pageToken"] = [pageToken]; |
1075 } | 1048 } |
1076 | 1049 |
1077 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/peop
le/' + commons.Escaper.ecapeVariable('$collection'); | 1050 _url = 'activities/' + |
| 1051 commons.Escaper.ecapeVariable('$activityId') + |
| 1052 '/people/' + |
| 1053 commons.Escaper.ecapeVariable('$collection'); |
1078 | 1054 |
1079 var _response = _requester.request(_url, | 1055 var _response = _requester.request(_url, "GET", |
1080 "GET", | 1056 body: _body, |
1081 body: _body, | 1057 queryParams: _queryParams, |
1082 queryParams: _queryParams, | 1058 uploadOptions: _uploadOptions, |
1083 uploadOptions: _uploadOptions, | 1059 uploadMedia: _uploadMedia, |
1084 uploadMedia: _uploadMedia, | 1060 downloadOptions: _downloadOptions); |
1085 downloadOptions: _downloadOptions); | |
1086 return _response.then((data) => new PeopleFeed.fromJson(data)); | 1061 return _response.then((data) => new PeopleFeed.fromJson(data)); |
1087 } | 1062 } |
1088 | 1063 |
1089 /** | 1064 /// List all of the people who are members of a circle. |
1090 * List all of the people who are members of a circle. | 1065 /// |
1091 * | 1066 /// Request parameters: |
1092 * Request parameters: | 1067 /// |
1093 * | 1068 /// [circleId] - The ID of the circle to get the members of. |
1094 * [circleId] - The ID of the circle to get the members of. | 1069 /// |
1095 * | 1070 /// [maxResults] - The maximum number of people to include in the response, |
1096 * [maxResults] - The maximum number of people to include in the response, | 1071 /// which is used for paging. For any response, the actual number returned |
1097 * which is used for paging. For any response, the actual number returned | 1072 /// might be less than the specified maxResults. |
1098 * might be less than the specified maxResults. | 1073 /// Value must be between "1" and "100". |
1099 * Value must be between "1" and "100". | 1074 /// |
1100 * | 1075 /// [pageToken] - The continuation token, which is used to page through large |
1101 * [pageToken] - The continuation token, which is used to page through large | 1076 /// result sets. To get the next page of results, set this parameter to the |
1102 * result sets. To get the next page of results, set this parameter to the | 1077 /// value of "nextPageToken" from the previous response. |
1103 * value of "nextPageToken" from the previous response. | 1078 /// |
1104 * | 1079 /// Completes with a [PeopleFeed]. |
1105 * Completes with a [PeopleFeed]. | 1080 /// |
1106 * | 1081 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1082 /// an error. |
1108 * error. | 1083 /// |
1109 * | 1084 /// If the used [http.Client] completes with an error when making a REST |
1110 * If the used [http.Client] completes with an error when making a REST call, | 1085 /// call, this method will complete with the same error. |
1111 * this method will complete with the same error. | 1086 async.Future<PeopleFeed> listByCircle(core.String circleId, |
1112 */ | 1087 {core.int maxResults, core.String pageToken}) { |
1113 async.Future<PeopleFeed> listByCircle(core.String circleId, {core.int maxResul
ts, core.String pageToken}) { | |
1114 var _url = null; | 1088 var _url = null; |
1115 var _queryParams = new core.Map(); | 1089 var _queryParams = new core.Map(); |
1116 var _uploadMedia = null; | 1090 var _uploadMedia = null; |
1117 var _uploadOptions = null; | 1091 var _uploadOptions = null; |
1118 var _downloadOptions = commons.DownloadOptions.Metadata; | 1092 var _downloadOptions = commons.DownloadOptions.Metadata; |
1119 var _body = null; | 1093 var _body = null; |
1120 | 1094 |
1121 if (circleId == null) { | 1095 if (circleId == null) { |
1122 throw new core.ArgumentError("Parameter circleId is required."); | 1096 throw new core.ArgumentError("Parameter circleId is required."); |
1123 } | 1097 } |
1124 if (maxResults != null) { | 1098 if (maxResults != null) { |
1125 _queryParams["maxResults"] = ["${maxResults}"]; | 1099 _queryParams["maxResults"] = ["${maxResults}"]; |
1126 } | 1100 } |
1127 if (pageToken != null) { | 1101 if (pageToken != null) { |
1128 _queryParams["pageToken"] = [pageToken]; | 1102 _queryParams["pageToken"] = [pageToken]; |
1129 } | 1103 } |
1130 | 1104 |
1131 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; | 1105 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people'; |
1132 | 1106 |
1133 var _response = _requester.request(_url, | 1107 var _response = _requester.request(_url, "GET", |
1134 "GET", | 1108 body: _body, |
1135 body: _body, | 1109 queryParams: _queryParams, |
1136 queryParams: _queryParams, | 1110 uploadOptions: _uploadOptions, |
1137 uploadOptions: _uploadOptions, | 1111 uploadMedia: _uploadMedia, |
1138 uploadMedia: _uploadMedia, | 1112 downloadOptions: _downloadOptions); |
1139 downloadOptions: _downloadOptions); | |
1140 return _response.then((data) => new PeopleFeed.fromJson(data)); | 1113 return _response.then((data) => new PeopleFeed.fromJson(data)); |
1141 } | 1114 } |
1142 | |
1143 } | 1115 } |
1144 | 1116 |
| 1117 class Acl { |
| 1118 /// Description of the access granted, suitable for display. |
| 1119 core.String description; |
1145 | 1120 |
| 1121 /// Whether access is restricted to the domain. |
| 1122 core.bool domainRestricted; |
1146 | 1123 |
1147 class Acl { | 1124 /// The list of access entries. |
1148 /** Description of the access granted, suitable for display. */ | |
1149 core.String description; | |
1150 /** Whether access is restricted to the domain. */ | |
1151 core.bool domainRestricted; | |
1152 /** The list of access entries. */ | |
1153 core.List<PlusDomainsAclentryResource> items; | 1125 core.List<PlusDomainsAclentryResource> items; |
1154 /** | 1126 |
1155 * Identifies this resource as a collection of access controls. Value: | 1127 /// Identifies this resource as a collection of access controls. Value: |
1156 * "plus#acl". | 1128 /// "plus#acl". |
1157 */ | |
1158 core.String kind; | 1129 core.String kind; |
1159 | 1130 |
1160 Acl(); | 1131 Acl(); |
1161 | 1132 |
1162 Acl.fromJson(core.Map _json) { | 1133 Acl.fromJson(core.Map _json) { |
1163 if (_json.containsKey("description")) { | 1134 if (_json.containsKey("description")) { |
1164 description = _json["description"]; | 1135 description = _json["description"]; |
1165 } | 1136 } |
1166 if (_json.containsKey("domainRestricted")) { | 1137 if (_json.containsKey("domainRestricted")) { |
1167 domainRestricted = _json["domainRestricted"]; | 1138 domainRestricted = _json["domainRestricted"]; |
1168 } | 1139 } |
1169 if (_json.containsKey("items")) { | 1140 if (_json.containsKey("items")) { |
1170 items = _json["items"].map((value) => new PlusDomainsAclentryResource.from
Json(value)).toList(); | 1141 items = _json["items"] |
| 1142 .map((value) => new PlusDomainsAclentryResource.fromJson(value)) |
| 1143 .toList(); |
1171 } | 1144 } |
1172 if (_json.containsKey("kind")) { | 1145 if (_json.containsKey("kind")) { |
1173 kind = _json["kind"]; | 1146 kind = _json["kind"]; |
1174 } | 1147 } |
1175 } | 1148 } |
1176 | 1149 |
1177 core.Map<core.String, core.Object> toJson() { | 1150 core.Map<core.String, core.Object> toJson() { |
1178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1151 final core.Map<core.String, core.Object> _json = |
| 1152 new core.Map<core.String, core.Object>(); |
1179 if (description != null) { | 1153 if (description != null) { |
1180 _json["description"] = description; | 1154 _json["description"] = description; |
1181 } | 1155 } |
1182 if (domainRestricted != null) { | 1156 if (domainRestricted != null) { |
1183 _json["domainRestricted"] = domainRestricted; | 1157 _json["domainRestricted"] = domainRestricted; |
1184 } | 1158 } |
1185 if (items != null) { | 1159 if (items != null) { |
1186 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1160 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1187 } | 1161 } |
1188 if (kind != null) { | 1162 if (kind != null) { |
1189 _json["kind"] = kind; | 1163 _json["kind"] = kind; |
1190 } | 1164 } |
1191 return _json; | 1165 return _json; |
1192 } | 1166 } |
1193 } | 1167 } |
1194 | 1168 |
1195 /** Actor info specific to YouTube clients. */ | 1169 /// Actor info specific to YouTube clients. |
1196 class ActivityActorClientSpecificActorInfoYoutubeActorInfo { | 1170 class ActivityActorClientSpecificActorInfoYoutubeActorInfo { |
1197 /** ID of the YouTube channel owned by the Actor. */ | 1171 /// ID of the YouTube channel owned by the Actor. |
1198 core.String channelId; | 1172 core.String channelId; |
1199 | 1173 |
1200 ActivityActorClientSpecificActorInfoYoutubeActorInfo(); | 1174 ActivityActorClientSpecificActorInfoYoutubeActorInfo(); |
1201 | 1175 |
1202 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json)
{ | 1176 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson( |
| 1177 core.Map _json) { |
1203 if (_json.containsKey("channelId")) { | 1178 if (_json.containsKey("channelId")) { |
1204 channelId = _json["channelId"]; | 1179 channelId = _json["channelId"]; |
1205 } | 1180 } |
1206 } | 1181 } |
1207 | 1182 |
1208 core.Map<core.String, core.Object> toJson() { | 1183 core.Map<core.String, core.Object> toJson() { |
1209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1184 final core.Map<core.String, core.Object> _json = |
| 1185 new core.Map<core.String, core.Object>(); |
1210 if (channelId != null) { | 1186 if (channelId != null) { |
1211 _json["channelId"] = channelId; | 1187 _json["channelId"] = channelId; |
1212 } | 1188 } |
1213 return _json; | 1189 return _json; |
1214 } | 1190 } |
1215 } | 1191 } |
1216 | 1192 |
1217 /** Actor info specific to particular clients. */ | 1193 /// Actor info specific to particular clients. |
1218 class ActivityActorClientSpecificActorInfo { | 1194 class ActivityActorClientSpecificActorInfo { |
1219 /** Actor info specific to YouTube clients. */ | 1195 /// Actor info specific to YouTube clients. |
1220 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 1196 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
1221 | 1197 |
1222 ActivityActorClientSpecificActorInfo(); | 1198 ActivityActorClientSpecificActorInfo(); |
1223 | 1199 |
1224 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) { | 1200 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) { |
1225 if (_json.containsKey("youtubeActorInfo")) { | 1201 if (_json.containsKey("youtubeActorInfo")) { |
1226 youtubeActorInfo = new ActivityActorClientSpecificActorInfoYoutubeActorInf
o.fromJson(_json["youtubeActorInfo"]); | 1202 youtubeActorInfo = |
| 1203 new ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson( |
| 1204 _json["youtubeActorInfo"]); |
1227 } | 1205 } |
1228 } | 1206 } |
1229 | 1207 |
1230 core.Map<core.String, core.Object> toJson() { | 1208 core.Map<core.String, core.Object> toJson() { |
1231 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1209 final core.Map<core.String, core.Object> _json = |
| 1210 new core.Map<core.String, core.Object>(); |
1232 if (youtubeActorInfo != null) { | 1211 if (youtubeActorInfo != null) { |
1233 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 1212 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
1234 } | 1213 } |
1235 return _json; | 1214 return _json; |
1236 } | 1215 } |
1237 } | 1216 } |
1238 | 1217 |
1239 /** The image representation of the actor. */ | 1218 /// The image representation of the actor. |
1240 class ActivityActorImage { | 1219 class ActivityActorImage { |
1241 /** | 1220 /// The URL of the actor's profile photo. To resize the image and crop it to |
1242 * The URL of the actor's profile photo. To resize the image and crop it to a | 1221 /// a square, append the query string ?sz=x, where x is the dimension in |
1243 * square, append the query string ?sz=x, where x is the dimension in pixels | 1222 /// pixels of each side. |
1244 * of each side. | |
1245 */ | |
1246 core.String url; | 1223 core.String url; |
1247 | 1224 |
1248 ActivityActorImage(); | 1225 ActivityActorImage(); |
1249 | 1226 |
1250 ActivityActorImage.fromJson(core.Map _json) { | 1227 ActivityActorImage.fromJson(core.Map _json) { |
1251 if (_json.containsKey("url")) { | 1228 if (_json.containsKey("url")) { |
1252 url = _json["url"]; | 1229 url = _json["url"]; |
1253 } | 1230 } |
1254 } | 1231 } |
1255 | 1232 |
1256 core.Map<core.String, core.Object> toJson() { | 1233 core.Map<core.String, core.Object> toJson() { |
1257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1234 final core.Map<core.String, core.Object> _json = |
| 1235 new core.Map<core.String, core.Object>(); |
1258 if (url != null) { | 1236 if (url != null) { |
1259 _json["url"] = url; | 1237 _json["url"] = url; |
1260 } | 1238 } |
1261 return _json; | 1239 return _json; |
1262 } | 1240 } |
1263 } | 1241 } |
1264 | 1242 |
1265 /** An object representation of the individual components of name. */ | 1243 /// An object representation of the individual components of name. |
1266 class ActivityActorName { | 1244 class ActivityActorName { |
1267 /** The family name ("last name") of the actor. */ | 1245 /// The family name ("last name") of the actor. |
1268 core.String familyName; | 1246 core.String familyName; |
1269 /** The given name ("first name") of the actor. */ | 1247 |
| 1248 /// The given name ("first name") of the actor. |
1270 core.String givenName; | 1249 core.String givenName; |
1271 | 1250 |
1272 ActivityActorName(); | 1251 ActivityActorName(); |
1273 | 1252 |
1274 ActivityActorName.fromJson(core.Map _json) { | 1253 ActivityActorName.fromJson(core.Map _json) { |
1275 if (_json.containsKey("familyName")) { | 1254 if (_json.containsKey("familyName")) { |
1276 familyName = _json["familyName"]; | 1255 familyName = _json["familyName"]; |
1277 } | 1256 } |
1278 if (_json.containsKey("givenName")) { | 1257 if (_json.containsKey("givenName")) { |
1279 givenName = _json["givenName"]; | 1258 givenName = _json["givenName"]; |
1280 } | 1259 } |
1281 } | 1260 } |
1282 | 1261 |
1283 core.Map<core.String, core.Object> toJson() { | 1262 core.Map<core.String, core.Object> toJson() { |
1284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1263 final core.Map<core.String, core.Object> _json = |
| 1264 new core.Map<core.String, core.Object>(); |
1285 if (familyName != null) { | 1265 if (familyName != null) { |
1286 _json["familyName"] = familyName; | 1266 _json["familyName"] = familyName; |
1287 } | 1267 } |
1288 if (givenName != null) { | 1268 if (givenName != null) { |
1289 _json["givenName"] = givenName; | 1269 _json["givenName"] = givenName; |
1290 } | 1270 } |
1291 return _json; | 1271 return _json; |
1292 } | 1272 } |
1293 } | 1273 } |
1294 | 1274 |
1295 /** Verification status of actor. */ | 1275 /// Verification status of actor. |
1296 class ActivityActorVerification { | 1276 class ActivityActorVerification { |
1297 /** Verification for one-time or manual processes. */ | 1277 /// Verification for one-time or manual processes. |
1298 core.String adHocVerified; | 1278 core.String adHocVerified; |
1299 | 1279 |
1300 ActivityActorVerification(); | 1280 ActivityActorVerification(); |
1301 | 1281 |
1302 ActivityActorVerification.fromJson(core.Map _json) { | 1282 ActivityActorVerification.fromJson(core.Map _json) { |
1303 if (_json.containsKey("adHocVerified")) { | 1283 if (_json.containsKey("adHocVerified")) { |
1304 adHocVerified = _json["adHocVerified"]; | 1284 adHocVerified = _json["adHocVerified"]; |
1305 } | 1285 } |
1306 } | 1286 } |
1307 | 1287 |
1308 core.Map<core.String, core.Object> toJson() { | 1288 core.Map<core.String, core.Object> toJson() { |
1309 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1289 final core.Map<core.String, core.Object> _json = |
| 1290 new core.Map<core.String, core.Object>(); |
1310 if (adHocVerified != null) { | 1291 if (adHocVerified != null) { |
1311 _json["adHocVerified"] = adHocVerified; | 1292 _json["adHocVerified"] = adHocVerified; |
1312 } | 1293 } |
1313 return _json; | 1294 return _json; |
1314 } | 1295 } |
1315 } | 1296 } |
1316 | 1297 |
1317 /** The person who performed this activity. */ | 1298 /// The person who performed this activity. |
1318 class ActivityActor { | 1299 class ActivityActor { |
1319 /** Actor info specific to particular clients. */ | 1300 /// Actor info specific to particular clients. |
1320 ActivityActorClientSpecificActorInfo clientSpecificActorInfo; | 1301 ActivityActorClientSpecificActorInfo clientSpecificActorInfo; |
1321 /** The name of the actor, suitable for display. */ | 1302 |
| 1303 /// The name of the actor, suitable for display. |
1322 core.String displayName; | 1304 core.String displayName; |
1323 /** The ID of the actor's Person resource. */ | 1305 |
| 1306 /// The ID of the actor's Person resource. |
1324 core.String id; | 1307 core.String id; |
1325 /** The image representation of the actor. */ | 1308 |
| 1309 /// The image representation of the actor. |
1326 ActivityActorImage image; | 1310 ActivityActorImage image; |
1327 /** An object representation of the individual components of name. */ | 1311 |
| 1312 /// An object representation of the individual components of name. |
1328 ActivityActorName name; | 1313 ActivityActorName name; |
1329 /** The link to the actor's Google profile. */ | 1314 |
| 1315 /// The link to the actor's Google profile. |
1330 core.String url; | 1316 core.String url; |
1331 /** Verification status of actor. */ | 1317 |
| 1318 /// Verification status of actor. |
1332 ActivityActorVerification verification; | 1319 ActivityActorVerification verification; |
1333 | 1320 |
1334 ActivityActor(); | 1321 ActivityActor(); |
1335 | 1322 |
1336 ActivityActor.fromJson(core.Map _json) { | 1323 ActivityActor.fromJson(core.Map _json) { |
1337 if (_json.containsKey("clientSpecificActorInfo")) { | 1324 if (_json.containsKey("clientSpecificActorInfo")) { |
1338 clientSpecificActorInfo = new ActivityActorClientSpecificActorInfo.fromJso
n(_json["clientSpecificActorInfo"]); | 1325 clientSpecificActorInfo = |
| 1326 new ActivityActorClientSpecificActorInfo.fromJson( |
| 1327 _json["clientSpecificActorInfo"]); |
1339 } | 1328 } |
1340 if (_json.containsKey("displayName")) { | 1329 if (_json.containsKey("displayName")) { |
1341 displayName = _json["displayName"]; | 1330 displayName = _json["displayName"]; |
1342 } | 1331 } |
1343 if (_json.containsKey("id")) { | 1332 if (_json.containsKey("id")) { |
1344 id = _json["id"]; | 1333 id = _json["id"]; |
1345 } | 1334 } |
1346 if (_json.containsKey("image")) { | 1335 if (_json.containsKey("image")) { |
1347 image = new ActivityActorImage.fromJson(_json["image"]); | 1336 image = new ActivityActorImage.fromJson(_json["image"]); |
1348 } | 1337 } |
1349 if (_json.containsKey("name")) { | 1338 if (_json.containsKey("name")) { |
1350 name = new ActivityActorName.fromJson(_json["name"]); | 1339 name = new ActivityActorName.fromJson(_json["name"]); |
1351 } | 1340 } |
1352 if (_json.containsKey("url")) { | 1341 if (_json.containsKey("url")) { |
1353 url = _json["url"]; | 1342 url = _json["url"]; |
1354 } | 1343 } |
1355 if (_json.containsKey("verification")) { | 1344 if (_json.containsKey("verification")) { |
1356 verification = new ActivityActorVerification.fromJson(_json["verification"
]); | 1345 verification = |
| 1346 new ActivityActorVerification.fromJson(_json["verification"]); |
1357 } | 1347 } |
1358 } | 1348 } |
1359 | 1349 |
1360 core.Map<core.String, core.Object> toJson() { | 1350 core.Map<core.String, core.Object> toJson() { |
1361 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1351 final core.Map<core.String, core.Object> _json = |
| 1352 new core.Map<core.String, core.Object>(); |
1362 if (clientSpecificActorInfo != null) { | 1353 if (clientSpecificActorInfo != null) { |
1363 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 1354 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
1364 } | 1355 } |
1365 if (displayName != null) { | 1356 if (displayName != null) { |
1366 _json["displayName"] = displayName; | 1357 _json["displayName"] = displayName; |
1367 } | 1358 } |
1368 if (id != null) { | 1359 if (id != null) { |
1369 _json["id"] = id; | 1360 _json["id"] = id; |
1370 } | 1361 } |
1371 if (image != null) { | 1362 if (image != null) { |
1372 _json["image"] = (image).toJson(); | 1363 _json["image"] = (image).toJson(); |
1373 } | 1364 } |
1374 if (name != null) { | 1365 if (name != null) { |
1375 _json["name"] = (name).toJson(); | 1366 _json["name"] = (name).toJson(); |
1376 } | 1367 } |
1377 if (url != null) { | 1368 if (url != null) { |
1378 _json["url"] = url; | 1369 _json["url"] = url; |
1379 } | 1370 } |
1380 if (verification != null) { | 1371 if (verification != null) { |
1381 _json["verification"] = (verification).toJson(); | 1372 _json["verification"] = (verification).toJson(); |
1382 } | 1373 } |
1383 return _json; | 1374 return _json; |
1384 } | 1375 } |
1385 } | 1376 } |
1386 | 1377 |
1387 /** Actor info specific to YouTube clients. */ | 1378 /// Actor info specific to YouTube clients. |
1388 class ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo { | 1379 class ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo { |
1389 /** ID of the YouTube channel owned by the Actor. */ | 1380 /// ID of the YouTube channel owned by the Actor. |
1390 core.String channelId; | 1381 core.String channelId; |
1391 | 1382 |
1392 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); | 1383 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); |
1393 | 1384 |
1394 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _
json) { | 1385 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson( |
| 1386 core.Map _json) { |
1395 if (_json.containsKey("channelId")) { | 1387 if (_json.containsKey("channelId")) { |
1396 channelId = _json["channelId"]; | 1388 channelId = _json["channelId"]; |
1397 } | 1389 } |
1398 } | 1390 } |
1399 | 1391 |
1400 core.Map<core.String, core.Object> toJson() { | 1392 core.Map<core.String, core.Object> toJson() { |
1401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1393 final core.Map<core.String, core.Object> _json = |
| 1394 new core.Map<core.String, core.Object>(); |
1402 if (channelId != null) { | 1395 if (channelId != null) { |
1403 _json["channelId"] = channelId; | 1396 _json["channelId"] = channelId; |
1404 } | 1397 } |
1405 return _json; | 1398 return _json; |
1406 } | 1399 } |
1407 } | 1400 } |
1408 | 1401 |
1409 /** Actor info specific to particular clients. */ | 1402 /// Actor info specific to particular clients. |
1410 class ActivityObjectActorClientSpecificActorInfo { | 1403 class ActivityObjectActorClientSpecificActorInfo { |
1411 /** Actor info specific to YouTube clients. */ | 1404 /// Actor info specific to YouTube clients. |
1412 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 1405 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
1413 | 1406 |
1414 ActivityObjectActorClientSpecificActorInfo(); | 1407 ActivityObjectActorClientSpecificActorInfo(); |
1415 | 1408 |
1416 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) { | 1409 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) { |
1417 if (_json.containsKey("youtubeActorInfo")) { | 1410 if (_json.containsKey("youtubeActorInfo")) { |
1418 youtubeActorInfo = new ActivityObjectActorClientSpecificActorInfoYoutubeAc
torInfo.fromJson(_json["youtubeActorInfo"]); | 1411 youtubeActorInfo = |
| 1412 new ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo |
| 1413 .fromJson(_json["youtubeActorInfo"]); |
1419 } | 1414 } |
1420 } | 1415 } |
1421 | 1416 |
1422 core.Map<core.String, core.Object> toJson() { | 1417 core.Map<core.String, core.Object> toJson() { |
1423 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1418 final core.Map<core.String, core.Object> _json = |
| 1419 new core.Map<core.String, core.Object>(); |
1424 if (youtubeActorInfo != null) { | 1420 if (youtubeActorInfo != null) { |
1425 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 1421 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
1426 } | 1422 } |
1427 return _json; | 1423 return _json; |
1428 } | 1424 } |
1429 } | 1425 } |
1430 | 1426 |
1431 /** The image representation of the original actor. */ | 1427 /// The image representation of the original actor. |
1432 class ActivityObjectActorImage { | 1428 class ActivityObjectActorImage { |
1433 /** A URL that points to a thumbnail photo of the original actor. */ | 1429 /// A URL that points to a thumbnail photo of the original actor. |
1434 core.String url; | 1430 core.String url; |
1435 | 1431 |
1436 ActivityObjectActorImage(); | 1432 ActivityObjectActorImage(); |
1437 | 1433 |
1438 ActivityObjectActorImage.fromJson(core.Map _json) { | 1434 ActivityObjectActorImage.fromJson(core.Map _json) { |
1439 if (_json.containsKey("url")) { | 1435 if (_json.containsKey("url")) { |
1440 url = _json["url"]; | 1436 url = _json["url"]; |
1441 } | 1437 } |
1442 } | 1438 } |
1443 | 1439 |
1444 core.Map<core.String, core.Object> toJson() { | 1440 core.Map<core.String, core.Object> toJson() { |
1445 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1441 final core.Map<core.String, core.Object> _json = |
| 1442 new core.Map<core.String, core.Object>(); |
1446 if (url != null) { | 1443 if (url != null) { |
1447 _json["url"] = url; | 1444 _json["url"] = url; |
1448 } | 1445 } |
1449 return _json; | 1446 return _json; |
1450 } | 1447 } |
1451 } | 1448 } |
1452 | 1449 |
1453 /** Verification status of actor. */ | 1450 /// Verification status of actor. |
1454 class ActivityObjectActorVerification { | 1451 class ActivityObjectActorVerification { |
1455 /** Verification for one-time or manual processes. */ | 1452 /// Verification for one-time or manual processes. |
1456 core.String adHocVerified; | 1453 core.String adHocVerified; |
1457 | 1454 |
1458 ActivityObjectActorVerification(); | 1455 ActivityObjectActorVerification(); |
1459 | 1456 |
1460 ActivityObjectActorVerification.fromJson(core.Map _json) { | 1457 ActivityObjectActorVerification.fromJson(core.Map _json) { |
1461 if (_json.containsKey("adHocVerified")) { | 1458 if (_json.containsKey("adHocVerified")) { |
1462 adHocVerified = _json["adHocVerified"]; | 1459 adHocVerified = _json["adHocVerified"]; |
1463 } | 1460 } |
1464 } | 1461 } |
1465 | 1462 |
1466 core.Map<core.String, core.Object> toJson() { | 1463 core.Map<core.String, core.Object> toJson() { |
1467 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1464 final core.Map<core.String, core.Object> _json = |
| 1465 new core.Map<core.String, core.Object>(); |
1468 if (adHocVerified != null) { | 1466 if (adHocVerified != null) { |
1469 _json["adHocVerified"] = adHocVerified; | 1467 _json["adHocVerified"] = adHocVerified; |
1470 } | 1468 } |
1471 return _json; | 1469 return _json; |
1472 } | 1470 } |
1473 } | 1471 } |
1474 | 1472 |
1475 /** | 1473 /// If this activity's object is itself another activity, such as when a person |
1476 * If this activity's object is itself another activity, such as when a person | 1474 /// reshares an activity, this property specifies the original activity's |
1477 * reshares an activity, this property specifies the original activity's actor. | 1475 /// actor. |
1478 */ | |
1479 class ActivityObjectActor { | 1476 class ActivityObjectActor { |
1480 /** Actor info specific to particular clients. */ | 1477 /// Actor info specific to particular clients. |
1481 ActivityObjectActorClientSpecificActorInfo clientSpecificActorInfo; | 1478 ActivityObjectActorClientSpecificActorInfo clientSpecificActorInfo; |
1482 /** The original actor's name, which is suitable for display. */ | 1479 |
| 1480 /// The original actor's name, which is suitable for display. |
1483 core.String displayName; | 1481 core.String displayName; |
1484 /** ID of the original actor. */ | 1482 |
| 1483 /// ID of the original actor. |
1485 core.String id; | 1484 core.String id; |
1486 /** The image representation of the original actor. */ | 1485 |
| 1486 /// The image representation of the original actor. |
1487 ActivityObjectActorImage image; | 1487 ActivityObjectActorImage image; |
1488 /** A link to the original actor's Google profile. */ | 1488 |
| 1489 /// A link to the original actor's Google profile. |
1489 core.String url; | 1490 core.String url; |
1490 /** Verification status of actor. */ | 1491 |
| 1492 /// Verification status of actor. |
1491 ActivityObjectActorVerification verification; | 1493 ActivityObjectActorVerification verification; |
1492 | 1494 |
1493 ActivityObjectActor(); | 1495 ActivityObjectActor(); |
1494 | 1496 |
1495 ActivityObjectActor.fromJson(core.Map _json) { | 1497 ActivityObjectActor.fromJson(core.Map _json) { |
1496 if (_json.containsKey("clientSpecificActorInfo")) { | 1498 if (_json.containsKey("clientSpecificActorInfo")) { |
1497 clientSpecificActorInfo = new ActivityObjectActorClientSpecificActorInfo.f
romJson(_json["clientSpecificActorInfo"]); | 1499 clientSpecificActorInfo = |
| 1500 new ActivityObjectActorClientSpecificActorInfo.fromJson( |
| 1501 _json["clientSpecificActorInfo"]); |
1498 } | 1502 } |
1499 if (_json.containsKey("displayName")) { | 1503 if (_json.containsKey("displayName")) { |
1500 displayName = _json["displayName"]; | 1504 displayName = _json["displayName"]; |
1501 } | 1505 } |
1502 if (_json.containsKey("id")) { | 1506 if (_json.containsKey("id")) { |
1503 id = _json["id"]; | 1507 id = _json["id"]; |
1504 } | 1508 } |
1505 if (_json.containsKey("image")) { | 1509 if (_json.containsKey("image")) { |
1506 image = new ActivityObjectActorImage.fromJson(_json["image"]); | 1510 image = new ActivityObjectActorImage.fromJson(_json["image"]); |
1507 } | 1511 } |
1508 if (_json.containsKey("url")) { | 1512 if (_json.containsKey("url")) { |
1509 url = _json["url"]; | 1513 url = _json["url"]; |
1510 } | 1514 } |
1511 if (_json.containsKey("verification")) { | 1515 if (_json.containsKey("verification")) { |
1512 verification = new ActivityObjectActorVerification.fromJson(_json["verific
ation"]); | 1516 verification = |
| 1517 new ActivityObjectActorVerification.fromJson(_json["verification"]); |
1513 } | 1518 } |
1514 } | 1519 } |
1515 | 1520 |
1516 core.Map<core.String, core.Object> toJson() { | 1521 core.Map<core.String, core.Object> toJson() { |
1517 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1522 final core.Map<core.String, core.Object> _json = |
| 1523 new core.Map<core.String, core.Object>(); |
1518 if (clientSpecificActorInfo != null) { | 1524 if (clientSpecificActorInfo != null) { |
1519 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 1525 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
1520 } | 1526 } |
1521 if (displayName != null) { | 1527 if (displayName != null) { |
1522 _json["displayName"] = displayName; | 1528 _json["displayName"] = displayName; |
1523 } | 1529 } |
1524 if (id != null) { | 1530 if (id != null) { |
1525 _json["id"] = id; | 1531 _json["id"] = id; |
1526 } | 1532 } |
1527 if (image != null) { | 1533 if (image != null) { |
1528 _json["image"] = (image).toJson(); | 1534 _json["image"] = (image).toJson(); |
1529 } | 1535 } |
1530 if (url != null) { | 1536 if (url != null) { |
1531 _json["url"] = url; | 1537 _json["url"] = url; |
1532 } | 1538 } |
1533 if (verification != null) { | 1539 if (verification != null) { |
1534 _json["verification"] = (verification).toJson(); | 1540 _json["verification"] = (verification).toJson(); |
1535 } | 1541 } |
1536 return _json; | 1542 return _json; |
1537 } | 1543 } |
1538 } | 1544 } |
1539 | 1545 |
1540 /** If the attachment is a video, the embeddable link. */ | 1546 /// If the attachment is a video, the embeddable link. |
1541 class ActivityObjectAttachmentsEmbed { | 1547 class ActivityObjectAttachmentsEmbed { |
1542 /** Media type of the link. */ | 1548 /// Media type of the link. |
1543 core.String type; | 1549 core.String type; |
1544 /** URL of the link. */ | 1550 |
| 1551 /// URL of the link. |
1545 core.String url; | 1552 core.String url; |
1546 | 1553 |
1547 ActivityObjectAttachmentsEmbed(); | 1554 ActivityObjectAttachmentsEmbed(); |
1548 | 1555 |
1549 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { | 1556 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { |
1550 if (_json.containsKey("type")) { | 1557 if (_json.containsKey("type")) { |
1551 type = _json["type"]; | 1558 type = _json["type"]; |
1552 } | 1559 } |
1553 if (_json.containsKey("url")) { | 1560 if (_json.containsKey("url")) { |
1554 url = _json["url"]; | 1561 url = _json["url"]; |
1555 } | 1562 } |
1556 } | 1563 } |
1557 | 1564 |
1558 core.Map<core.String, core.Object> toJson() { | 1565 core.Map<core.String, core.Object> toJson() { |
1559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1566 final core.Map<core.String, core.Object> _json = |
| 1567 new core.Map<core.String, core.Object>(); |
1560 if (type != null) { | 1568 if (type != null) { |
1561 _json["type"] = type; | 1569 _json["type"] = type; |
1562 } | 1570 } |
1563 if (url != null) { | 1571 if (url != null) { |
1564 _json["url"] = url; | 1572 _json["url"] = url; |
1565 } | 1573 } |
1566 return _json; | 1574 return _json; |
1567 } | 1575 } |
1568 } | 1576 } |
1569 | 1577 |
1570 /** The full image URL for photo attachments. */ | 1578 /// The full image URL for photo attachments. |
1571 class ActivityObjectAttachmentsFullImage { | 1579 class ActivityObjectAttachmentsFullImage { |
1572 /** The height, in pixels, of the linked resource. */ | 1580 /// The height, in pixels, of the linked resource. |
1573 core.int height; | 1581 core.int height; |
1574 /** Media type of the link. */ | 1582 |
| 1583 /// Media type of the link. |
1575 core.String type; | 1584 core.String type; |
1576 /** URL of the image. */ | 1585 |
| 1586 /// URL of the image. |
1577 core.String url; | 1587 core.String url; |
1578 /** The width, in pixels, of the linked resource. */ | 1588 |
| 1589 /// The width, in pixels, of the linked resource. |
1579 core.int width; | 1590 core.int width; |
1580 | 1591 |
1581 ActivityObjectAttachmentsFullImage(); | 1592 ActivityObjectAttachmentsFullImage(); |
1582 | 1593 |
1583 ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) { | 1594 ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) { |
1584 if (_json.containsKey("height")) { | 1595 if (_json.containsKey("height")) { |
1585 height = _json["height"]; | 1596 height = _json["height"]; |
1586 } | 1597 } |
1587 if (_json.containsKey("type")) { | 1598 if (_json.containsKey("type")) { |
1588 type = _json["type"]; | 1599 type = _json["type"]; |
1589 } | 1600 } |
1590 if (_json.containsKey("url")) { | 1601 if (_json.containsKey("url")) { |
1591 url = _json["url"]; | 1602 url = _json["url"]; |
1592 } | 1603 } |
1593 if (_json.containsKey("width")) { | 1604 if (_json.containsKey("width")) { |
1594 width = _json["width"]; | 1605 width = _json["width"]; |
1595 } | 1606 } |
1596 } | 1607 } |
1597 | 1608 |
1598 core.Map<core.String, core.Object> toJson() { | 1609 core.Map<core.String, core.Object> toJson() { |
1599 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1610 final core.Map<core.String, core.Object> _json = |
| 1611 new core.Map<core.String, core.Object>(); |
1600 if (height != null) { | 1612 if (height != null) { |
1601 _json["height"] = height; | 1613 _json["height"] = height; |
1602 } | 1614 } |
1603 if (type != null) { | 1615 if (type != null) { |
1604 _json["type"] = type; | 1616 _json["type"] = type; |
1605 } | 1617 } |
1606 if (url != null) { | 1618 if (url != null) { |
1607 _json["url"] = url; | 1619 _json["url"] = url; |
1608 } | 1620 } |
1609 if (width != null) { | 1621 if (width != null) { |
1610 _json["width"] = width; | 1622 _json["width"] = width; |
1611 } | 1623 } |
1612 return _json; | 1624 return _json; |
1613 } | 1625 } |
1614 } | 1626 } |
1615 | 1627 |
1616 /** The preview image for photos or videos. */ | 1628 /// The preview image for photos or videos. |
1617 class ActivityObjectAttachmentsImage { | 1629 class ActivityObjectAttachmentsImage { |
1618 /** The height, in pixels, of the linked resource. */ | 1630 /// The height, in pixels, of the linked resource. |
1619 core.int height; | 1631 core.int height; |
1620 /** Media type of the link. */ | 1632 |
| 1633 /// Media type of the link. |
1621 core.String type; | 1634 core.String type; |
1622 /** Image URL. */ | 1635 |
| 1636 /// Image URL. |
1623 core.String url; | 1637 core.String url; |
1624 /** The width, in pixels, of the linked resource. */ | 1638 |
| 1639 /// The width, in pixels, of the linked resource. |
1625 core.int width; | 1640 core.int width; |
1626 | 1641 |
1627 ActivityObjectAttachmentsImage(); | 1642 ActivityObjectAttachmentsImage(); |
1628 | 1643 |
1629 ActivityObjectAttachmentsImage.fromJson(core.Map _json) { | 1644 ActivityObjectAttachmentsImage.fromJson(core.Map _json) { |
1630 if (_json.containsKey("height")) { | 1645 if (_json.containsKey("height")) { |
1631 height = _json["height"]; | 1646 height = _json["height"]; |
1632 } | 1647 } |
1633 if (_json.containsKey("type")) { | 1648 if (_json.containsKey("type")) { |
1634 type = _json["type"]; | 1649 type = _json["type"]; |
1635 } | 1650 } |
1636 if (_json.containsKey("url")) { | 1651 if (_json.containsKey("url")) { |
1637 url = _json["url"]; | 1652 url = _json["url"]; |
1638 } | 1653 } |
1639 if (_json.containsKey("width")) { | 1654 if (_json.containsKey("width")) { |
1640 width = _json["width"]; | 1655 width = _json["width"]; |
1641 } | 1656 } |
1642 } | 1657 } |
1643 | 1658 |
1644 core.Map<core.String, core.Object> toJson() { | 1659 core.Map<core.String, core.Object> toJson() { |
1645 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1660 final core.Map<core.String, core.Object> _json = |
| 1661 new core.Map<core.String, core.Object>(); |
1646 if (height != null) { | 1662 if (height != null) { |
1647 _json["height"] = height; | 1663 _json["height"] = height; |
1648 } | 1664 } |
1649 if (type != null) { | 1665 if (type != null) { |
1650 _json["type"] = type; | 1666 _json["type"] = type; |
1651 } | 1667 } |
1652 if (url != null) { | 1668 if (url != null) { |
1653 _json["url"] = url; | 1669 _json["url"] = url; |
1654 } | 1670 } |
1655 if (width != null) { | 1671 if (width != null) { |
1656 _json["width"] = width; | 1672 _json["width"] = width; |
1657 } | 1673 } |
1658 return _json; | 1674 return _json; |
1659 } | 1675 } |
1660 } | 1676 } |
1661 | 1677 |
1662 class ActivityObjectAttachmentsPreviewThumbnails { | 1678 class ActivityObjectAttachmentsPreviewThumbnails { |
1663 /** URL of the thumbnail image. */ | 1679 /// URL of the thumbnail image. |
1664 core.String url; | 1680 core.String url; |
1665 | 1681 |
1666 ActivityObjectAttachmentsPreviewThumbnails(); | 1682 ActivityObjectAttachmentsPreviewThumbnails(); |
1667 | 1683 |
1668 ActivityObjectAttachmentsPreviewThumbnails.fromJson(core.Map _json) { | 1684 ActivityObjectAttachmentsPreviewThumbnails.fromJson(core.Map _json) { |
1669 if (_json.containsKey("url")) { | 1685 if (_json.containsKey("url")) { |
1670 url = _json["url"]; | 1686 url = _json["url"]; |
1671 } | 1687 } |
1672 } | 1688 } |
1673 | 1689 |
1674 core.Map<core.String, core.Object> toJson() { | 1690 core.Map<core.String, core.Object> toJson() { |
1675 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1691 final core.Map<core.String, core.Object> _json = |
| 1692 new core.Map<core.String, core.Object>(); |
1676 if (url != null) { | 1693 if (url != null) { |
1677 _json["url"] = url; | 1694 _json["url"] = url; |
1678 } | 1695 } |
1679 return _json; | 1696 return _json; |
1680 } | 1697 } |
1681 } | 1698 } |
1682 | 1699 |
1683 /** Image resource. */ | 1700 /// Image resource. |
1684 class ActivityObjectAttachmentsThumbnailsImage { | 1701 class ActivityObjectAttachmentsThumbnailsImage { |
1685 /** The height, in pixels, of the linked resource. */ | 1702 /// The height, in pixels, of the linked resource. |
1686 core.int height; | 1703 core.int height; |
1687 /** Media type of the link. */ | 1704 |
| 1705 /// Media type of the link. |
1688 core.String type; | 1706 core.String type; |
1689 /** Image url. */ | 1707 |
| 1708 /// Image url. |
1690 core.String url; | 1709 core.String url; |
1691 /** The width, in pixels, of the linked resource. */ | 1710 |
| 1711 /// The width, in pixels, of the linked resource. |
1692 core.int width; | 1712 core.int width; |
1693 | 1713 |
1694 ActivityObjectAttachmentsThumbnailsImage(); | 1714 ActivityObjectAttachmentsThumbnailsImage(); |
1695 | 1715 |
1696 ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) { | 1716 ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) { |
1697 if (_json.containsKey("height")) { | 1717 if (_json.containsKey("height")) { |
1698 height = _json["height"]; | 1718 height = _json["height"]; |
1699 } | 1719 } |
1700 if (_json.containsKey("type")) { | 1720 if (_json.containsKey("type")) { |
1701 type = _json["type"]; | 1721 type = _json["type"]; |
1702 } | 1722 } |
1703 if (_json.containsKey("url")) { | 1723 if (_json.containsKey("url")) { |
1704 url = _json["url"]; | 1724 url = _json["url"]; |
1705 } | 1725 } |
1706 if (_json.containsKey("width")) { | 1726 if (_json.containsKey("width")) { |
1707 width = _json["width"]; | 1727 width = _json["width"]; |
1708 } | 1728 } |
1709 } | 1729 } |
1710 | 1730 |
1711 core.Map<core.String, core.Object> toJson() { | 1731 core.Map<core.String, core.Object> toJson() { |
1712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1732 final core.Map<core.String, core.Object> _json = |
| 1733 new core.Map<core.String, core.Object>(); |
1713 if (height != null) { | 1734 if (height != null) { |
1714 _json["height"] = height; | 1735 _json["height"] = height; |
1715 } | 1736 } |
1716 if (type != null) { | 1737 if (type != null) { |
1717 _json["type"] = type; | 1738 _json["type"] = type; |
1718 } | 1739 } |
1719 if (url != null) { | 1740 if (url != null) { |
1720 _json["url"] = url; | 1741 _json["url"] = url; |
1721 } | 1742 } |
1722 if (width != null) { | 1743 if (width != null) { |
1723 _json["width"] = width; | 1744 _json["width"] = width; |
1724 } | 1745 } |
1725 return _json; | 1746 return _json; |
1726 } | 1747 } |
1727 } | 1748 } |
1728 | 1749 |
1729 class ActivityObjectAttachmentsThumbnails { | 1750 class ActivityObjectAttachmentsThumbnails { |
1730 /** Potential name of the thumbnail. */ | 1751 /// Potential name of the thumbnail. |
1731 core.String description; | 1752 core.String description; |
1732 /** Image resource. */ | 1753 |
| 1754 /// Image resource. |
1733 ActivityObjectAttachmentsThumbnailsImage image; | 1755 ActivityObjectAttachmentsThumbnailsImage image; |
1734 /** URL of the webpage containing the image. */ | 1756 |
| 1757 /// URL of the webpage containing the image. |
1735 core.String url; | 1758 core.String url; |
1736 | 1759 |
1737 ActivityObjectAttachmentsThumbnails(); | 1760 ActivityObjectAttachmentsThumbnails(); |
1738 | 1761 |
1739 ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) { | 1762 ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) { |
1740 if (_json.containsKey("description")) { | 1763 if (_json.containsKey("description")) { |
1741 description = _json["description"]; | 1764 description = _json["description"]; |
1742 } | 1765 } |
1743 if (_json.containsKey("image")) { | 1766 if (_json.containsKey("image")) { |
1744 image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image
"]); | 1767 image = |
| 1768 new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image"]); |
1745 } | 1769 } |
1746 if (_json.containsKey("url")) { | 1770 if (_json.containsKey("url")) { |
1747 url = _json["url"]; | 1771 url = _json["url"]; |
1748 } | 1772 } |
1749 } | 1773 } |
1750 | 1774 |
1751 core.Map<core.String, core.Object> toJson() { | 1775 core.Map<core.String, core.Object> toJson() { |
1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1776 final core.Map<core.String, core.Object> _json = |
| 1777 new core.Map<core.String, core.Object>(); |
1753 if (description != null) { | 1778 if (description != null) { |
1754 _json["description"] = description; | 1779 _json["description"] = description; |
1755 } | 1780 } |
1756 if (image != null) { | 1781 if (image != null) { |
1757 _json["image"] = (image).toJson(); | 1782 _json["image"] = (image).toJson(); |
1758 } | 1783 } |
1759 if (url != null) { | 1784 if (url != null) { |
1760 _json["url"] = url; | 1785 _json["url"] = url; |
1761 } | 1786 } |
1762 return _json; | 1787 return _json; |
1763 } | 1788 } |
1764 } | 1789 } |
1765 | 1790 |
1766 class ActivityObjectAttachments { | 1791 class ActivityObjectAttachments { |
1767 /** | 1792 /// If the attachment is an article, this property contains a snippet of text |
1768 * If the attachment is an article, this property contains a snippet of text | 1793 /// from the article. It can also include descriptions for other types. |
1769 * from the article. It can also include descriptions for other types. | |
1770 */ | |
1771 core.String content; | 1794 core.String content; |
1772 /** | 1795 |
1773 * The title of the attachment, such as a photo caption or an article title. | 1796 /// The title of the attachment, such as a photo caption or an article title. |
1774 */ | |
1775 core.String displayName; | 1797 core.String displayName; |
1776 /** If the attachment is a video, the embeddable link. */ | 1798 |
| 1799 /// If the attachment is a video, the embeddable link. |
1777 ActivityObjectAttachmentsEmbed embed; | 1800 ActivityObjectAttachmentsEmbed embed; |
1778 /** The full image URL for photo attachments. */ | 1801 |
| 1802 /// The full image URL for photo attachments. |
1779 ActivityObjectAttachmentsFullImage fullImage; | 1803 ActivityObjectAttachmentsFullImage fullImage; |
1780 /** The ID of the attachment. */ | 1804 |
| 1805 /// The ID of the attachment. |
1781 core.String id; | 1806 core.String id; |
1782 /** The preview image for photos or videos. */ | 1807 |
| 1808 /// The preview image for photos or videos. |
1783 ActivityObjectAttachmentsImage image; | 1809 ActivityObjectAttachmentsImage image; |
1784 /** | 1810 |
1785 * The type of media object. Possible values include, but are not limited to, | 1811 /// The type of media object. Possible values include, but are not limited |
1786 * the following values: | 1812 /// to, the following values: |
1787 * - "photo" - A photo. | 1813 /// - "photo" - A photo. |
1788 * - "album" - A photo album. | 1814 /// - "album" - A photo album. |
1789 * - "video" - A video. | 1815 /// - "video" - A video. |
1790 * - "article" - An article, specified by a link. | 1816 /// - "article" - An article, specified by a link. |
1791 */ | |
1792 core.String objectType; | 1817 core.String objectType; |
1793 /** | 1818 |
1794 * When previewing, these are the optional thumbnails for the post. When | 1819 /// When previewing, these are the optional thumbnails for the post. When |
1795 * posting an article, choose one by setting the attachment.image.url | 1820 /// posting an article, choose one by setting the attachment.image.url |
1796 * property. If you don't choose one, one will be chosen for you. | 1821 /// property. If you don't choose one, one will be chosen for you. |
1797 */ | |
1798 core.List<ActivityObjectAttachmentsPreviewThumbnails> previewThumbnails; | 1822 core.List<ActivityObjectAttachmentsPreviewThumbnails> previewThumbnails; |
1799 /** | 1823 |
1800 * If the attachment is an album, this property is a list of potential | 1824 /// If the attachment is an album, this property is a list of potential |
1801 * additional thumbnails from the album. | 1825 /// additional thumbnails from the album. |
1802 */ | |
1803 core.List<ActivityObjectAttachmentsThumbnails> thumbnails; | 1826 core.List<ActivityObjectAttachmentsThumbnails> thumbnails; |
1804 /** The link to the attachment, which should be of type text/html. */ | 1827 |
| 1828 /// The link to the attachment, which should be of type text/html. |
1805 core.String url; | 1829 core.String url; |
1806 | 1830 |
1807 ActivityObjectAttachments(); | 1831 ActivityObjectAttachments(); |
1808 | 1832 |
1809 ActivityObjectAttachments.fromJson(core.Map _json) { | 1833 ActivityObjectAttachments.fromJson(core.Map _json) { |
1810 if (_json.containsKey("content")) { | 1834 if (_json.containsKey("content")) { |
1811 content = _json["content"]; | 1835 content = _json["content"]; |
1812 } | 1836 } |
1813 if (_json.containsKey("displayName")) { | 1837 if (_json.containsKey("displayName")) { |
1814 displayName = _json["displayName"]; | 1838 displayName = _json["displayName"]; |
1815 } | 1839 } |
1816 if (_json.containsKey("embed")) { | 1840 if (_json.containsKey("embed")) { |
1817 embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]); | 1841 embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]); |
1818 } | 1842 } |
1819 if (_json.containsKey("fullImage")) { | 1843 if (_json.containsKey("fullImage")) { |
1820 fullImage = new ActivityObjectAttachmentsFullImage.fromJson(_json["fullIma
ge"]); | 1844 fullImage = |
| 1845 new ActivityObjectAttachmentsFullImage.fromJson(_json["fullImage"]); |
1821 } | 1846 } |
1822 if (_json.containsKey("id")) { | 1847 if (_json.containsKey("id")) { |
1823 id = _json["id"]; | 1848 id = _json["id"]; |
1824 } | 1849 } |
1825 if (_json.containsKey("image")) { | 1850 if (_json.containsKey("image")) { |
1826 image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]); | 1851 image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]); |
1827 } | 1852 } |
1828 if (_json.containsKey("objectType")) { | 1853 if (_json.containsKey("objectType")) { |
1829 objectType = _json["objectType"]; | 1854 objectType = _json["objectType"]; |
1830 } | 1855 } |
1831 if (_json.containsKey("previewThumbnails")) { | 1856 if (_json.containsKey("previewThumbnails")) { |
1832 previewThumbnails = _json["previewThumbnails"].map((value) => new Activity
ObjectAttachmentsPreviewThumbnails.fromJson(value)).toList(); | 1857 previewThumbnails = _json["previewThumbnails"] |
| 1858 .map((value) => |
| 1859 new ActivityObjectAttachmentsPreviewThumbnails.fromJson(value)) |
| 1860 .toList(); |
1833 } | 1861 } |
1834 if (_json.containsKey("thumbnails")) { | 1862 if (_json.containsKey("thumbnails")) { |
1835 thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachme
ntsThumbnails.fromJson(value)).toList(); | 1863 thumbnails = _json["thumbnails"] |
| 1864 .map((value) => |
| 1865 new ActivityObjectAttachmentsThumbnails.fromJson(value)) |
| 1866 .toList(); |
1836 } | 1867 } |
1837 if (_json.containsKey("url")) { | 1868 if (_json.containsKey("url")) { |
1838 url = _json["url"]; | 1869 url = _json["url"]; |
1839 } | 1870 } |
1840 } | 1871 } |
1841 | 1872 |
1842 core.Map<core.String, core.Object> toJson() { | 1873 core.Map<core.String, core.Object> toJson() { |
1843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1874 final core.Map<core.String, core.Object> _json = |
| 1875 new core.Map<core.String, core.Object>(); |
1844 if (content != null) { | 1876 if (content != null) { |
1845 _json["content"] = content; | 1877 _json["content"] = content; |
1846 } | 1878 } |
1847 if (displayName != null) { | 1879 if (displayName != null) { |
1848 _json["displayName"] = displayName; | 1880 _json["displayName"] = displayName; |
1849 } | 1881 } |
1850 if (embed != null) { | 1882 if (embed != null) { |
1851 _json["embed"] = (embed).toJson(); | 1883 _json["embed"] = (embed).toJson(); |
1852 } | 1884 } |
1853 if (fullImage != null) { | 1885 if (fullImage != null) { |
1854 _json["fullImage"] = (fullImage).toJson(); | 1886 _json["fullImage"] = (fullImage).toJson(); |
1855 } | 1887 } |
1856 if (id != null) { | 1888 if (id != null) { |
1857 _json["id"] = id; | 1889 _json["id"] = id; |
1858 } | 1890 } |
1859 if (image != null) { | 1891 if (image != null) { |
1860 _json["image"] = (image).toJson(); | 1892 _json["image"] = (image).toJson(); |
1861 } | 1893 } |
1862 if (objectType != null) { | 1894 if (objectType != null) { |
1863 _json["objectType"] = objectType; | 1895 _json["objectType"] = objectType; |
1864 } | 1896 } |
1865 if (previewThumbnails != null) { | 1897 if (previewThumbnails != null) { |
1866 _json["previewThumbnails"] = previewThumbnails.map((value) => (value).toJs
on()).toList(); | 1898 _json["previewThumbnails"] = |
| 1899 previewThumbnails.map((value) => (value).toJson()).toList(); |
1867 } | 1900 } |
1868 if (thumbnails != null) { | 1901 if (thumbnails != null) { |
1869 _json["thumbnails"] = thumbnails.map((value) => (value).toJson()).toList()
; | 1902 _json["thumbnails"] = |
| 1903 thumbnails.map((value) => (value).toJson()).toList(); |
1870 } | 1904 } |
1871 if (url != null) { | 1905 if (url != null) { |
1872 _json["url"] = url; | 1906 _json["url"] = url; |
1873 } | 1907 } |
1874 return _json; | 1908 return _json; |
1875 } | 1909 } |
1876 } | 1910 } |
1877 | 1911 |
1878 /** People who +1'd this activity. */ | 1912 /// People who +1'd this activity. |
1879 class ActivityObjectPlusoners { | 1913 class ActivityObjectPlusoners { |
1880 /** The URL for the collection of people who +1'd this activity. */ | 1914 /// The URL for the collection of people who +1'd this activity. |
1881 core.String selfLink; | 1915 core.String selfLink; |
1882 /** Total number of people who +1'd this activity. */ | 1916 |
| 1917 /// Total number of people who +1'd this activity. |
1883 core.int totalItems; | 1918 core.int totalItems; |
1884 | 1919 |
1885 ActivityObjectPlusoners(); | 1920 ActivityObjectPlusoners(); |
1886 | 1921 |
1887 ActivityObjectPlusoners.fromJson(core.Map _json) { | 1922 ActivityObjectPlusoners.fromJson(core.Map _json) { |
1888 if (_json.containsKey("selfLink")) { | 1923 if (_json.containsKey("selfLink")) { |
1889 selfLink = _json["selfLink"]; | 1924 selfLink = _json["selfLink"]; |
1890 } | 1925 } |
1891 if (_json.containsKey("totalItems")) { | 1926 if (_json.containsKey("totalItems")) { |
1892 totalItems = _json["totalItems"]; | 1927 totalItems = _json["totalItems"]; |
1893 } | 1928 } |
1894 } | 1929 } |
1895 | 1930 |
1896 core.Map<core.String, core.Object> toJson() { | 1931 core.Map<core.String, core.Object> toJson() { |
1897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1932 final core.Map<core.String, core.Object> _json = |
| 1933 new core.Map<core.String, core.Object>(); |
1898 if (selfLink != null) { | 1934 if (selfLink != null) { |
1899 _json["selfLink"] = selfLink; | 1935 _json["selfLink"] = selfLink; |
1900 } | 1936 } |
1901 if (totalItems != null) { | 1937 if (totalItems != null) { |
1902 _json["totalItems"] = totalItems; | 1938 _json["totalItems"] = totalItems; |
1903 } | 1939 } |
1904 return _json; | 1940 return _json; |
1905 } | 1941 } |
1906 } | 1942 } |
1907 | 1943 |
1908 /** Comments in reply to this activity. */ | 1944 /// Comments in reply to this activity. |
1909 class ActivityObjectReplies { | 1945 class ActivityObjectReplies { |
1910 /** The URL for the collection of comments in reply to this activity. */ | 1946 /// The URL for the collection of comments in reply to this activity. |
1911 core.String selfLink; | 1947 core.String selfLink; |
1912 /** Total number of comments on this activity. */ | 1948 |
| 1949 /// Total number of comments on this activity. |
1913 core.int totalItems; | 1950 core.int totalItems; |
1914 | 1951 |
1915 ActivityObjectReplies(); | 1952 ActivityObjectReplies(); |
1916 | 1953 |
1917 ActivityObjectReplies.fromJson(core.Map _json) { | 1954 ActivityObjectReplies.fromJson(core.Map _json) { |
1918 if (_json.containsKey("selfLink")) { | 1955 if (_json.containsKey("selfLink")) { |
1919 selfLink = _json["selfLink"]; | 1956 selfLink = _json["selfLink"]; |
1920 } | 1957 } |
1921 if (_json.containsKey("totalItems")) { | 1958 if (_json.containsKey("totalItems")) { |
1922 totalItems = _json["totalItems"]; | 1959 totalItems = _json["totalItems"]; |
1923 } | 1960 } |
1924 } | 1961 } |
1925 | 1962 |
1926 core.Map<core.String, core.Object> toJson() { | 1963 core.Map<core.String, core.Object> toJson() { |
1927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1964 final core.Map<core.String, core.Object> _json = |
| 1965 new core.Map<core.String, core.Object>(); |
1928 if (selfLink != null) { | 1966 if (selfLink != null) { |
1929 _json["selfLink"] = selfLink; | 1967 _json["selfLink"] = selfLink; |
1930 } | 1968 } |
1931 if (totalItems != null) { | 1969 if (totalItems != null) { |
1932 _json["totalItems"] = totalItems; | 1970 _json["totalItems"] = totalItems; |
1933 } | 1971 } |
1934 return _json; | 1972 return _json; |
1935 } | 1973 } |
1936 } | 1974 } |
1937 | 1975 |
1938 /** People who reshared this activity. */ | 1976 /// People who reshared this activity. |
1939 class ActivityObjectResharers { | 1977 class ActivityObjectResharers { |
1940 /** The URL for the collection of resharers. */ | 1978 /// The URL for the collection of resharers. |
1941 core.String selfLink; | 1979 core.String selfLink; |
1942 /** Total number of people who reshared this activity. */ | 1980 |
| 1981 /// Total number of people who reshared this activity. |
1943 core.int totalItems; | 1982 core.int totalItems; |
1944 | 1983 |
1945 ActivityObjectResharers(); | 1984 ActivityObjectResharers(); |
1946 | 1985 |
1947 ActivityObjectResharers.fromJson(core.Map _json) { | 1986 ActivityObjectResharers.fromJson(core.Map _json) { |
1948 if (_json.containsKey("selfLink")) { | 1987 if (_json.containsKey("selfLink")) { |
1949 selfLink = _json["selfLink"]; | 1988 selfLink = _json["selfLink"]; |
1950 } | 1989 } |
1951 if (_json.containsKey("totalItems")) { | 1990 if (_json.containsKey("totalItems")) { |
1952 totalItems = _json["totalItems"]; | 1991 totalItems = _json["totalItems"]; |
1953 } | 1992 } |
1954 } | 1993 } |
1955 | 1994 |
1956 core.Map<core.String, core.Object> toJson() { | 1995 core.Map<core.String, core.Object> toJson() { |
1957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1996 final core.Map<core.String, core.Object> _json = |
| 1997 new core.Map<core.String, core.Object>(); |
1958 if (selfLink != null) { | 1998 if (selfLink != null) { |
1959 _json["selfLink"] = selfLink; | 1999 _json["selfLink"] = selfLink; |
1960 } | 2000 } |
1961 if (totalItems != null) { | 2001 if (totalItems != null) { |
1962 _json["totalItems"] = totalItems; | 2002 _json["totalItems"] = totalItems; |
1963 } | 2003 } |
1964 return _json; | 2004 return _json; |
1965 } | 2005 } |
1966 } | 2006 } |
1967 | 2007 |
1968 /** Status of the activity as seen by the viewer. */ | 2008 /// Status of the activity as seen by the viewer. |
1969 class ActivityObjectStatusForViewer { | 2009 class ActivityObjectStatusForViewer { |
1970 /** Whether the viewer can comment on the activity. */ | 2010 /// Whether the viewer can comment on the activity. |
1971 core.bool canComment; | 2011 core.bool canComment; |
1972 /** Whether the viewer can +1 the activity. */ | 2012 |
| 2013 /// Whether the viewer can +1 the activity. |
1973 core.bool canPlusone; | 2014 core.bool canPlusone; |
1974 /** Whether the viewer can edit or delete the activity. */ | 2015 |
| 2016 /// Whether the viewer can edit or delete the activity. |
1975 core.bool canUpdate; | 2017 core.bool canUpdate; |
1976 /** Whether the viewer has +1'd the activity. */ | 2018 |
| 2019 /// Whether the viewer has +1'd the activity. |
1977 core.bool isPlusOned; | 2020 core.bool isPlusOned; |
1978 /** Whether reshares are disabled for the activity. */ | 2021 |
| 2022 /// Whether reshares are disabled for the activity. |
1979 core.bool resharingDisabled; | 2023 core.bool resharingDisabled; |
1980 | 2024 |
1981 ActivityObjectStatusForViewer(); | 2025 ActivityObjectStatusForViewer(); |
1982 | 2026 |
1983 ActivityObjectStatusForViewer.fromJson(core.Map _json) { | 2027 ActivityObjectStatusForViewer.fromJson(core.Map _json) { |
1984 if (_json.containsKey("canComment")) { | 2028 if (_json.containsKey("canComment")) { |
1985 canComment = _json["canComment"]; | 2029 canComment = _json["canComment"]; |
1986 } | 2030 } |
1987 if (_json.containsKey("canPlusone")) { | 2031 if (_json.containsKey("canPlusone")) { |
1988 canPlusone = _json["canPlusone"]; | 2032 canPlusone = _json["canPlusone"]; |
1989 } | 2033 } |
1990 if (_json.containsKey("canUpdate")) { | 2034 if (_json.containsKey("canUpdate")) { |
1991 canUpdate = _json["canUpdate"]; | 2035 canUpdate = _json["canUpdate"]; |
1992 } | 2036 } |
1993 if (_json.containsKey("isPlusOned")) { | 2037 if (_json.containsKey("isPlusOned")) { |
1994 isPlusOned = _json["isPlusOned"]; | 2038 isPlusOned = _json["isPlusOned"]; |
1995 } | 2039 } |
1996 if (_json.containsKey("resharingDisabled")) { | 2040 if (_json.containsKey("resharingDisabled")) { |
1997 resharingDisabled = _json["resharingDisabled"]; | 2041 resharingDisabled = _json["resharingDisabled"]; |
1998 } | 2042 } |
1999 } | 2043 } |
2000 | 2044 |
2001 core.Map<core.String, core.Object> toJson() { | 2045 core.Map<core.String, core.Object> toJson() { |
2002 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2046 final core.Map<core.String, core.Object> _json = |
| 2047 new core.Map<core.String, core.Object>(); |
2003 if (canComment != null) { | 2048 if (canComment != null) { |
2004 _json["canComment"] = canComment; | 2049 _json["canComment"] = canComment; |
2005 } | 2050 } |
2006 if (canPlusone != null) { | 2051 if (canPlusone != null) { |
2007 _json["canPlusone"] = canPlusone; | 2052 _json["canPlusone"] = canPlusone; |
2008 } | 2053 } |
2009 if (canUpdate != null) { | 2054 if (canUpdate != null) { |
2010 _json["canUpdate"] = canUpdate; | 2055 _json["canUpdate"] = canUpdate; |
2011 } | 2056 } |
2012 if (isPlusOned != null) { | 2057 if (isPlusOned != null) { |
2013 _json["isPlusOned"] = isPlusOned; | 2058 _json["isPlusOned"] = isPlusOned; |
2014 } | 2059 } |
2015 if (resharingDisabled != null) { | 2060 if (resharingDisabled != null) { |
2016 _json["resharingDisabled"] = resharingDisabled; | 2061 _json["resharingDisabled"] = resharingDisabled; |
2017 } | 2062 } |
2018 return _json; | 2063 return _json; |
2019 } | 2064 } |
2020 } | 2065 } |
2021 | 2066 |
2022 /** The object of this activity. */ | 2067 /// The object of this activity. |
2023 class ActivityObject { | 2068 class ActivityObject { |
2024 /** | 2069 /// If this activity's object is itself another activity, such as when a |
2025 * If this activity's object is itself another activity, such as when a person | 2070 /// person reshares an activity, this property specifies the original |
2026 * reshares an activity, this property specifies the original activity's | 2071 /// activity's actor. |
2027 * actor. | |
2028 */ | |
2029 ActivityObjectActor actor; | 2072 ActivityObjectActor actor; |
2030 /** The media objects attached to this activity. */ | 2073 |
| 2074 /// The media objects attached to this activity. |
2031 core.List<ActivityObjectAttachments> attachments; | 2075 core.List<ActivityObjectAttachments> attachments; |
2032 /** The HTML-formatted content, which is suitable for display. */ | 2076 |
| 2077 /// The HTML-formatted content, which is suitable for display. |
2033 core.String content; | 2078 core.String content; |
2034 /** | 2079 |
2035 * The ID of the object. When resharing an activity, this is the ID of the | 2080 /// The ID of the object. When resharing an activity, this is the ID of the |
2036 * activity that is being reshared. | 2081 /// activity that is being reshared. |
2037 */ | |
2038 core.String id; | 2082 core.String id; |
2039 /** | 2083 |
2040 * The type of the object. Possible values include, but are not limited to, | 2084 /// The type of the object. Possible values include, but are not limited to, |
2041 * the following values: | 2085 /// the following values: |
2042 * - "note" - Textual content. | 2086 /// - "note" - Textual content. |
2043 * - "activity" - A Google+ activity. | 2087 /// - "activity" - A Google+ activity. |
2044 */ | |
2045 core.String objectType; | 2088 core.String objectType; |
2046 /** | 2089 |
2047 * The content (text) as provided by the author, which is stored without any | 2090 /// The content (text) as provided by the author, which is stored without any |
2048 * HTML formatting. When creating or updating an activity, this value must be | 2091 /// HTML formatting. When creating or updating an activity, this value must |
2049 * supplied as plain text in the request. | 2092 /// be supplied as plain text in the request. |
2050 */ | |
2051 core.String originalContent; | 2093 core.String originalContent; |
2052 /** People who +1'd this activity. */ | 2094 |
| 2095 /// People who +1'd this activity. |
2053 ActivityObjectPlusoners plusoners; | 2096 ActivityObjectPlusoners plusoners; |
2054 /** Comments in reply to this activity. */ | 2097 |
| 2098 /// Comments in reply to this activity. |
2055 ActivityObjectReplies replies; | 2099 ActivityObjectReplies replies; |
2056 /** People who reshared this activity. */ | 2100 |
| 2101 /// People who reshared this activity. |
2057 ActivityObjectResharers resharers; | 2102 ActivityObjectResharers resharers; |
2058 /** Status of the activity as seen by the viewer. */ | 2103 |
| 2104 /// Status of the activity as seen by the viewer. |
2059 ActivityObjectStatusForViewer statusForViewer; | 2105 ActivityObjectStatusForViewer statusForViewer; |
2060 /** The URL that points to the linked resource. */ | 2106 |
| 2107 /// The URL that points to the linked resource. |
2061 core.String url; | 2108 core.String url; |
2062 | 2109 |
2063 ActivityObject(); | 2110 ActivityObject(); |
2064 | 2111 |
2065 ActivityObject.fromJson(core.Map _json) { | 2112 ActivityObject.fromJson(core.Map _json) { |
2066 if (_json.containsKey("actor")) { | 2113 if (_json.containsKey("actor")) { |
2067 actor = new ActivityObjectActor.fromJson(_json["actor"]); | 2114 actor = new ActivityObjectActor.fromJson(_json["actor"]); |
2068 } | 2115 } |
2069 if (_json.containsKey("attachments")) { | 2116 if (_json.containsKey("attachments")) { |
2070 attachments = _json["attachments"].map((value) => new ActivityObjectAttach
ments.fromJson(value)).toList(); | 2117 attachments = _json["attachments"] |
| 2118 .map((value) => new ActivityObjectAttachments.fromJson(value)) |
| 2119 .toList(); |
2071 } | 2120 } |
2072 if (_json.containsKey("content")) { | 2121 if (_json.containsKey("content")) { |
2073 content = _json["content"]; | 2122 content = _json["content"]; |
2074 } | 2123 } |
2075 if (_json.containsKey("id")) { | 2124 if (_json.containsKey("id")) { |
2076 id = _json["id"]; | 2125 id = _json["id"]; |
2077 } | 2126 } |
2078 if (_json.containsKey("objectType")) { | 2127 if (_json.containsKey("objectType")) { |
2079 objectType = _json["objectType"]; | 2128 objectType = _json["objectType"]; |
2080 } | 2129 } |
2081 if (_json.containsKey("originalContent")) { | 2130 if (_json.containsKey("originalContent")) { |
2082 originalContent = _json["originalContent"]; | 2131 originalContent = _json["originalContent"]; |
2083 } | 2132 } |
2084 if (_json.containsKey("plusoners")) { | 2133 if (_json.containsKey("plusoners")) { |
2085 plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]); | 2134 plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]); |
2086 } | 2135 } |
2087 if (_json.containsKey("replies")) { | 2136 if (_json.containsKey("replies")) { |
2088 replies = new ActivityObjectReplies.fromJson(_json["replies"]); | 2137 replies = new ActivityObjectReplies.fromJson(_json["replies"]); |
2089 } | 2138 } |
2090 if (_json.containsKey("resharers")) { | 2139 if (_json.containsKey("resharers")) { |
2091 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); | 2140 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); |
2092 } | 2141 } |
2093 if (_json.containsKey("statusForViewer")) { | 2142 if (_json.containsKey("statusForViewer")) { |
2094 statusForViewer = new ActivityObjectStatusForViewer.fromJson(_json["status
ForViewer"]); | 2143 statusForViewer = |
| 2144 new ActivityObjectStatusForViewer.fromJson(_json["statusForViewer"]); |
2095 } | 2145 } |
2096 if (_json.containsKey("url")) { | 2146 if (_json.containsKey("url")) { |
2097 url = _json["url"]; | 2147 url = _json["url"]; |
2098 } | 2148 } |
2099 } | 2149 } |
2100 | 2150 |
2101 core.Map<core.String, core.Object> toJson() { | 2151 core.Map<core.String, core.Object> toJson() { |
2102 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2152 final core.Map<core.String, core.Object> _json = |
| 2153 new core.Map<core.String, core.Object>(); |
2103 if (actor != null) { | 2154 if (actor != null) { |
2104 _json["actor"] = (actor).toJson(); | 2155 _json["actor"] = (actor).toJson(); |
2105 } | 2156 } |
2106 if (attachments != null) { | 2157 if (attachments != null) { |
2107 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); | 2158 _json["attachments"] = |
| 2159 attachments.map((value) => (value).toJson()).toList(); |
2108 } | 2160 } |
2109 if (content != null) { | 2161 if (content != null) { |
2110 _json["content"] = content; | 2162 _json["content"] = content; |
2111 } | 2163 } |
2112 if (id != null) { | 2164 if (id != null) { |
2113 _json["id"] = id; | 2165 _json["id"] = id; |
2114 } | 2166 } |
2115 if (objectType != null) { | 2167 if (objectType != null) { |
2116 _json["objectType"] = objectType; | 2168 _json["objectType"] = objectType; |
2117 } | 2169 } |
(...skipping 12 matching lines...) Expand all Loading... |
2130 if (statusForViewer != null) { | 2182 if (statusForViewer != null) { |
2131 _json["statusForViewer"] = (statusForViewer).toJson(); | 2183 _json["statusForViewer"] = (statusForViewer).toJson(); |
2132 } | 2184 } |
2133 if (url != null) { | 2185 if (url != null) { |
2134 _json["url"] = url; | 2186 _json["url"] = url; |
2135 } | 2187 } |
2136 return _json; | 2188 return _json; |
2137 } | 2189 } |
2138 } | 2190 } |
2139 | 2191 |
2140 /** The service provider that initially published this activity. */ | 2192 /// The service provider that initially published this activity. |
2141 class ActivityProvider { | 2193 class ActivityProvider { |
2142 /** Name of the service provider. */ | 2194 /// Name of the service provider. |
2143 core.String title; | 2195 core.String title; |
2144 | 2196 |
2145 ActivityProvider(); | 2197 ActivityProvider(); |
2146 | 2198 |
2147 ActivityProvider.fromJson(core.Map _json) { | 2199 ActivityProvider.fromJson(core.Map _json) { |
2148 if (_json.containsKey("title")) { | 2200 if (_json.containsKey("title")) { |
2149 title = _json["title"]; | 2201 title = _json["title"]; |
2150 } | 2202 } |
2151 } | 2203 } |
2152 | 2204 |
2153 core.Map<core.String, core.Object> toJson() { | 2205 core.Map<core.String, core.Object> toJson() { |
2154 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2206 final core.Map<core.String, core.Object> _json = |
| 2207 new core.Map<core.String, core.Object>(); |
2155 if (title != null) { | 2208 if (title != null) { |
2156 _json["title"] = title; | 2209 _json["title"] = title; |
2157 } | 2210 } |
2158 return _json; | 2211 return _json; |
2159 } | 2212 } |
2160 } | 2213 } |
2161 | 2214 |
2162 class Activity { | 2215 class Activity { |
2163 /** Identifies who has access to see this activity. */ | 2216 /// Identifies who has access to see this activity. |
2164 Acl access; | 2217 Acl access; |
2165 /** The person who performed this activity. */ | 2218 |
| 2219 /// The person who performed this activity. |
2166 ActivityActor actor; | 2220 ActivityActor actor; |
2167 /** Street address where this activity occurred. */ | 2221 |
| 2222 /// Street address where this activity occurred. |
2168 core.String address; | 2223 core.String address; |
2169 /** | 2224 |
2170 * Additional content added by the person who shared this activity, applicable | 2225 /// Additional content added by the person who shared this activity, |
2171 * only when resharing an activity. | 2226 /// applicable only when resharing an activity. |
2172 */ | |
2173 core.String annotation; | 2227 core.String annotation; |
2174 /** | 2228 |
2175 * If this activity is a crosspost from another system, this property | 2229 /// If this activity is a crosspost from another system, this property |
2176 * specifies the ID of the original activity. | 2230 /// specifies the ID of the original activity. |
2177 */ | |
2178 core.String crosspostSource; | 2231 core.String crosspostSource; |
2179 /** ETag of this response for caching purposes. */ | 2232 |
| 2233 /// ETag of this response for caching purposes. |
2180 core.String etag; | 2234 core.String etag; |
2181 /** | 2235 |
2182 * Latitude and longitude where this activity occurred. Format is latitude | 2236 /// Latitude and longitude where this activity occurred. Format is latitude |
2183 * followed by longitude, space separated. | 2237 /// followed by longitude, space separated. |
2184 */ | |
2185 core.String geocode; | 2238 core.String geocode; |
2186 /** The ID of this activity. */ | 2239 |
| 2240 /// The ID of this activity. |
2187 core.String id; | 2241 core.String id; |
2188 /** Identifies this resource as an activity. Value: "plus#activity". */ | 2242 |
| 2243 /// Identifies this resource as an activity. Value: "plus#activity". |
2189 core.String kind; | 2244 core.String kind; |
2190 /** The location where this activity occurred. */ | 2245 |
| 2246 /// The location where this activity occurred. |
2191 Place location; | 2247 Place location; |
2192 /** The object of this activity. */ | 2248 |
| 2249 /// The object of this activity. |
2193 ActivityObject object; | 2250 ActivityObject object; |
2194 /** ID of the place where this activity occurred. */ | 2251 |
| 2252 /// ID of the place where this activity occurred. |
2195 core.String placeId; | 2253 core.String placeId; |
2196 /** Name of the place where this activity occurred. */ | 2254 |
| 2255 /// Name of the place where this activity occurred. |
2197 core.String placeName; | 2256 core.String placeName; |
2198 /** The service provider that initially published this activity. */ | 2257 |
| 2258 /// The service provider that initially published this activity. |
2199 ActivityProvider provider; | 2259 ActivityProvider provider; |
2200 /** | 2260 |
2201 * The time at which this activity was initially published. Formatted as an | 2261 /// The time at which this activity was initially published. Formatted as an |
2202 * RFC 3339 timestamp. | 2262 /// RFC 3339 timestamp. |
2203 */ | |
2204 core.DateTime published; | 2263 core.DateTime published; |
2205 /** | 2264 |
2206 * Radius, in meters, of the region where this activity occurred, centered at | 2265 /// Radius, in meters, of the region where this activity occurred, centered |
2207 * the latitude and longitude identified in geocode. | 2266 /// at the latitude and longitude identified in geocode. |
2208 */ | |
2209 core.String radius; | 2267 core.String radius; |
2210 /** Title of this activity. */ | 2268 |
| 2269 /// Title of this activity. |
2211 core.String title; | 2270 core.String title; |
2212 /** | 2271 |
2213 * The time at which this activity was last updated. Formatted as an RFC 3339 | 2272 /// The time at which this activity was last updated. Formatted as an RFC |
2214 * timestamp. | 2273 /// 3339 timestamp. |
2215 */ | |
2216 core.DateTime updated; | 2274 core.DateTime updated; |
2217 /** The link to this activity. */ | 2275 |
| 2276 /// The link to this activity. |
2218 core.String url; | 2277 core.String url; |
2219 /** | 2278 |
2220 * This activity's verb, which indicates the action that was performed. | 2279 /// This activity's verb, which indicates the action that was performed. |
2221 * Possible values include, but are not limited to, the following values: | 2280 /// Possible values include, but are not limited to, the following values: |
2222 * - "post" - Publish content to the stream. | 2281 /// - "post" - Publish content to the stream. |
2223 * - "share" - Reshare an activity. | 2282 /// - "share" - Reshare an activity. |
2224 */ | |
2225 core.String verb; | 2283 core.String verb; |
2226 | 2284 |
2227 Activity(); | 2285 Activity(); |
2228 | 2286 |
2229 Activity.fromJson(core.Map _json) { | 2287 Activity.fromJson(core.Map _json) { |
2230 if (_json.containsKey("access")) { | 2288 if (_json.containsKey("access")) { |
2231 access = new Acl.fromJson(_json["access"]); | 2289 access = new Acl.fromJson(_json["access"]); |
2232 } | 2290 } |
2233 if (_json.containsKey("actor")) { | 2291 if (_json.containsKey("actor")) { |
2234 actor = new ActivityActor.fromJson(_json["actor"]); | 2292 actor = new ActivityActor.fromJson(_json["actor"]); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 } | 2341 } |
2284 if (_json.containsKey("url")) { | 2342 if (_json.containsKey("url")) { |
2285 url = _json["url"]; | 2343 url = _json["url"]; |
2286 } | 2344 } |
2287 if (_json.containsKey("verb")) { | 2345 if (_json.containsKey("verb")) { |
2288 verb = _json["verb"]; | 2346 verb = _json["verb"]; |
2289 } | 2347 } |
2290 } | 2348 } |
2291 | 2349 |
2292 core.Map<core.String, core.Object> toJson() { | 2350 core.Map<core.String, core.Object> toJson() { |
2293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2351 final core.Map<core.String, core.Object> _json = |
| 2352 new core.Map<core.String, core.Object>(); |
2294 if (access != null) { | 2353 if (access != null) { |
2295 _json["access"] = (access).toJson(); | 2354 _json["access"] = (access).toJson(); |
2296 } | 2355 } |
2297 if (actor != null) { | 2356 if (actor != null) { |
2298 _json["actor"] = (actor).toJson(); | 2357 _json["actor"] = (actor).toJson(); |
2299 } | 2358 } |
2300 if (address != null) { | 2359 if (address != null) { |
2301 _json["address"] = address; | 2360 _json["address"] = address; |
2302 } | 2361 } |
2303 if (annotation != null) { | 2362 if (annotation != null) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2349 _json["url"] = url; | 2408 _json["url"] = url; |
2350 } | 2409 } |
2351 if (verb != null) { | 2410 if (verb != null) { |
2352 _json["verb"] = verb; | 2411 _json["verb"] = verb; |
2353 } | 2412 } |
2354 return _json; | 2413 return _json; |
2355 } | 2414 } |
2356 } | 2415 } |
2357 | 2416 |
2358 class ActivityFeed { | 2417 class ActivityFeed { |
2359 /** ETag of this response for caching purposes. */ | 2418 /// ETag of this response for caching purposes. |
2360 core.String etag; | 2419 core.String etag; |
2361 /** The ID of this collection of activities. Deprecated. */ | 2420 |
| 2421 /// The ID of this collection of activities. Deprecated. |
2362 core.String id; | 2422 core.String id; |
2363 /** The activities in this page of results. */ | 2423 |
| 2424 /// The activities in this page of results. |
2364 core.List<Activity> items; | 2425 core.List<Activity> items; |
2365 /** | 2426 |
2366 * Identifies this resource as a collection of activities. Value: | 2427 /// Identifies this resource as a collection of activities. Value: |
2367 * "plus#activityFeed". | 2428 /// "plus#activityFeed". |
2368 */ | |
2369 core.String kind; | 2429 core.String kind; |
2370 /** Link to the next page of activities. */ | 2430 |
| 2431 /// Link to the next page of activities. |
2371 core.String nextLink; | 2432 core.String nextLink; |
2372 /** | 2433 |
2373 * The continuation token, which is used to page through large result sets. | 2434 /// The continuation token, which is used to page through large result sets. |
2374 * Provide this value in a subsequent request to return the next page of | 2435 /// Provide this value in a subsequent request to return the next page of |
2375 * results. | 2436 /// results. |
2376 */ | |
2377 core.String nextPageToken; | 2437 core.String nextPageToken; |
2378 /** Link to this activity resource. */ | 2438 |
| 2439 /// Link to this activity resource. |
2379 core.String selfLink; | 2440 core.String selfLink; |
2380 /** | 2441 |
2381 * The title of this collection of activities, which is a truncated portion of | 2442 /// The title of this collection of activities, which is a truncated portion |
2382 * the content. | 2443 /// of the content. |
2383 */ | |
2384 core.String title; | 2444 core.String title; |
2385 /** | 2445 |
2386 * The time at which this collection of activities was last updated. Formatted | 2446 /// The time at which this collection of activities was last updated. |
2387 * as an RFC 3339 timestamp. | 2447 /// Formatted as an RFC 3339 timestamp. |
2388 */ | |
2389 core.DateTime updated; | 2448 core.DateTime updated; |
2390 | 2449 |
2391 ActivityFeed(); | 2450 ActivityFeed(); |
2392 | 2451 |
2393 ActivityFeed.fromJson(core.Map _json) { | 2452 ActivityFeed.fromJson(core.Map _json) { |
2394 if (_json.containsKey("etag")) { | 2453 if (_json.containsKey("etag")) { |
2395 etag = _json["etag"]; | 2454 etag = _json["etag"]; |
2396 } | 2455 } |
2397 if (_json.containsKey("id")) { | 2456 if (_json.containsKey("id")) { |
2398 id = _json["id"]; | 2457 id = _json["id"]; |
2399 } | 2458 } |
2400 if (_json.containsKey("items")) { | 2459 if (_json.containsKey("items")) { |
2401 items = _json["items"].map((value) => new Activity.fromJson(value)).toList
(); | 2460 items = |
| 2461 _json["items"].map((value) => new Activity.fromJson(value)).toList(); |
2402 } | 2462 } |
2403 if (_json.containsKey("kind")) { | 2463 if (_json.containsKey("kind")) { |
2404 kind = _json["kind"]; | 2464 kind = _json["kind"]; |
2405 } | 2465 } |
2406 if (_json.containsKey("nextLink")) { | 2466 if (_json.containsKey("nextLink")) { |
2407 nextLink = _json["nextLink"]; | 2467 nextLink = _json["nextLink"]; |
2408 } | 2468 } |
2409 if (_json.containsKey("nextPageToken")) { | 2469 if (_json.containsKey("nextPageToken")) { |
2410 nextPageToken = _json["nextPageToken"]; | 2470 nextPageToken = _json["nextPageToken"]; |
2411 } | 2471 } |
2412 if (_json.containsKey("selfLink")) { | 2472 if (_json.containsKey("selfLink")) { |
2413 selfLink = _json["selfLink"]; | 2473 selfLink = _json["selfLink"]; |
2414 } | 2474 } |
2415 if (_json.containsKey("title")) { | 2475 if (_json.containsKey("title")) { |
2416 title = _json["title"]; | 2476 title = _json["title"]; |
2417 } | 2477 } |
2418 if (_json.containsKey("updated")) { | 2478 if (_json.containsKey("updated")) { |
2419 updated = core.DateTime.parse(_json["updated"]); | 2479 updated = core.DateTime.parse(_json["updated"]); |
2420 } | 2480 } |
2421 } | 2481 } |
2422 | 2482 |
2423 core.Map<core.String, core.Object> toJson() { | 2483 core.Map<core.String, core.Object> toJson() { |
2424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2484 final core.Map<core.String, core.Object> _json = |
| 2485 new core.Map<core.String, core.Object>(); |
2425 if (etag != null) { | 2486 if (etag != null) { |
2426 _json["etag"] = etag; | 2487 _json["etag"] = etag; |
2427 } | 2488 } |
2428 if (id != null) { | 2489 if (id != null) { |
2429 _json["id"] = id; | 2490 _json["id"] = id; |
2430 } | 2491 } |
2431 if (items != null) { | 2492 if (items != null) { |
2432 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2493 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2433 } | 2494 } |
2434 if (kind != null) { | 2495 if (kind != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
2447 _json["title"] = title; | 2508 _json["title"] = title; |
2448 } | 2509 } |
2449 if (updated != null) { | 2510 if (updated != null) { |
2450 _json["updated"] = (updated).toIso8601String(); | 2511 _json["updated"] = (updated).toIso8601String(); |
2451 } | 2512 } |
2452 return _json; | 2513 return _json; |
2453 } | 2514 } |
2454 } | 2515 } |
2455 | 2516 |
2456 class Audience { | 2517 class Audience { |
2457 /** ETag of this response for caching purposes. */ | 2518 /// ETag of this response for caching purposes. |
2458 core.String etag; | 2519 core.String etag; |
2459 /** The access control list entry. */ | 2520 |
| 2521 /// The access control list entry. |
2460 PlusDomainsAclentryResource item; | 2522 PlusDomainsAclentryResource item; |
2461 /** Identifies this resource as an audience. Value: "plus#audience". */ | 2523 |
| 2524 /// Identifies this resource as an audience. Value: "plus#audience". |
2462 core.String kind; | 2525 core.String kind; |
2463 /** | 2526 |
2464 * The number of people in this circle. This only applies if entity_type is | 2527 /// The number of people in this circle. This only applies if entity_type is |
2465 * CIRCLE. | 2528 /// CIRCLE. |
2466 */ | |
2467 core.int memberCount; | 2529 core.int memberCount; |
2468 /** | 2530 |
2469 * The circle members' visibility as chosen by the owner of the circle. This | 2531 /// The circle members' visibility as chosen by the owner of the circle. This |
2470 * only applies for items with "item.type" equals "circle". Possible values | 2532 /// only applies for items with "item.type" equals "circle". Possible values |
2471 * are: | 2533 /// are: |
2472 * - "public" - Members are visible to the public. | 2534 /// - "public" - Members are visible to the public. |
2473 * - "limited" - Members are visible to a limited audience. | 2535 /// - "limited" - Members are visible to a limited audience. |
2474 * - "private" - Members are visible to the owner only. | 2536 /// - "private" - Members are visible to the owner only. |
2475 */ | |
2476 core.String visibility; | 2537 core.String visibility; |
2477 | 2538 |
2478 Audience(); | 2539 Audience(); |
2479 | 2540 |
2480 Audience.fromJson(core.Map _json) { | 2541 Audience.fromJson(core.Map _json) { |
2481 if (_json.containsKey("etag")) { | 2542 if (_json.containsKey("etag")) { |
2482 etag = _json["etag"]; | 2543 etag = _json["etag"]; |
2483 } | 2544 } |
2484 if (_json.containsKey("item")) { | 2545 if (_json.containsKey("item")) { |
2485 item = new PlusDomainsAclentryResource.fromJson(_json["item"]); | 2546 item = new PlusDomainsAclentryResource.fromJson(_json["item"]); |
2486 } | 2547 } |
2487 if (_json.containsKey("kind")) { | 2548 if (_json.containsKey("kind")) { |
2488 kind = _json["kind"]; | 2549 kind = _json["kind"]; |
2489 } | 2550 } |
2490 if (_json.containsKey("memberCount")) { | 2551 if (_json.containsKey("memberCount")) { |
2491 memberCount = _json["memberCount"]; | 2552 memberCount = _json["memberCount"]; |
2492 } | 2553 } |
2493 if (_json.containsKey("visibility")) { | 2554 if (_json.containsKey("visibility")) { |
2494 visibility = _json["visibility"]; | 2555 visibility = _json["visibility"]; |
2495 } | 2556 } |
2496 } | 2557 } |
2497 | 2558 |
2498 core.Map<core.String, core.Object> toJson() { | 2559 core.Map<core.String, core.Object> toJson() { |
2499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2560 final core.Map<core.String, core.Object> _json = |
| 2561 new core.Map<core.String, core.Object>(); |
2500 if (etag != null) { | 2562 if (etag != null) { |
2501 _json["etag"] = etag; | 2563 _json["etag"] = etag; |
2502 } | 2564 } |
2503 if (item != null) { | 2565 if (item != null) { |
2504 _json["item"] = (item).toJson(); | 2566 _json["item"] = (item).toJson(); |
2505 } | 2567 } |
2506 if (kind != null) { | 2568 if (kind != null) { |
2507 _json["kind"] = kind; | 2569 _json["kind"] = kind; |
2508 } | 2570 } |
2509 if (memberCount != null) { | 2571 if (memberCount != null) { |
2510 _json["memberCount"] = memberCount; | 2572 _json["memberCount"] = memberCount; |
2511 } | 2573 } |
2512 if (visibility != null) { | 2574 if (visibility != null) { |
2513 _json["visibility"] = visibility; | 2575 _json["visibility"] = visibility; |
2514 } | 2576 } |
2515 return _json; | 2577 return _json; |
2516 } | 2578 } |
2517 } | 2579 } |
2518 | 2580 |
2519 class AudiencesFeed { | 2581 class AudiencesFeed { |
2520 /** ETag of this response for caching purposes. */ | 2582 /// ETag of this response for caching purposes. |
2521 core.String etag; | 2583 core.String etag; |
2522 /** The audiences in this result. */ | 2584 |
| 2585 /// The audiences in this result. |
2523 core.List<Audience> items; | 2586 core.List<Audience> items; |
2524 /** | 2587 |
2525 * Identifies this resource as a collection of audiences. Value: | 2588 /// Identifies this resource as a collection of audiences. Value: |
2526 * "plus#audienceFeed". | 2589 /// "plus#audienceFeed". |
2527 */ | |
2528 core.String kind; | 2590 core.String kind; |
2529 /** | 2591 |
2530 * The continuation token, which is used to page through large result sets. | 2592 /// The continuation token, which is used to page through large result sets. |
2531 * Provide this value in a subsequent request to return the next page of | 2593 /// Provide this value in a subsequent request to return the next page of |
2532 * results. | 2594 /// results. |
2533 */ | |
2534 core.String nextPageToken; | 2595 core.String nextPageToken; |
2535 /** | 2596 |
2536 * The total number of ACL entries. The number of entries in this response may | 2597 /// The total number of ACL entries. The number of entries in this response |
2537 * be smaller due to paging. | 2598 /// may be smaller due to paging. |
2538 */ | |
2539 core.int totalItems; | 2599 core.int totalItems; |
2540 | 2600 |
2541 AudiencesFeed(); | 2601 AudiencesFeed(); |
2542 | 2602 |
2543 AudiencesFeed.fromJson(core.Map _json) { | 2603 AudiencesFeed.fromJson(core.Map _json) { |
2544 if (_json.containsKey("etag")) { | 2604 if (_json.containsKey("etag")) { |
2545 etag = _json["etag"]; | 2605 etag = _json["etag"]; |
2546 } | 2606 } |
2547 if (_json.containsKey("items")) { | 2607 if (_json.containsKey("items")) { |
2548 items = _json["items"].map((value) => new Audience.fromJson(value)).toList
(); | 2608 items = |
| 2609 _json["items"].map((value) => new Audience.fromJson(value)).toList(); |
2549 } | 2610 } |
2550 if (_json.containsKey("kind")) { | 2611 if (_json.containsKey("kind")) { |
2551 kind = _json["kind"]; | 2612 kind = _json["kind"]; |
2552 } | 2613 } |
2553 if (_json.containsKey("nextPageToken")) { | 2614 if (_json.containsKey("nextPageToken")) { |
2554 nextPageToken = _json["nextPageToken"]; | 2615 nextPageToken = _json["nextPageToken"]; |
2555 } | 2616 } |
2556 if (_json.containsKey("totalItems")) { | 2617 if (_json.containsKey("totalItems")) { |
2557 totalItems = _json["totalItems"]; | 2618 totalItems = _json["totalItems"]; |
2558 } | 2619 } |
2559 } | 2620 } |
2560 | 2621 |
2561 core.Map<core.String, core.Object> toJson() { | 2622 core.Map<core.String, core.Object> toJson() { |
2562 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2623 final core.Map<core.String, core.Object> _json = |
| 2624 new core.Map<core.String, core.Object>(); |
2563 if (etag != null) { | 2625 if (etag != null) { |
2564 _json["etag"] = etag; | 2626 _json["etag"] = etag; |
2565 } | 2627 } |
2566 if (items != null) { | 2628 if (items != null) { |
2567 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2629 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2568 } | 2630 } |
2569 if (kind != null) { | 2631 if (kind != null) { |
2570 _json["kind"] = kind; | 2632 _json["kind"] = kind; |
2571 } | 2633 } |
2572 if (nextPageToken != null) { | 2634 if (nextPageToken != null) { |
2573 _json["nextPageToken"] = nextPageToken; | 2635 _json["nextPageToken"] = nextPageToken; |
2574 } | 2636 } |
2575 if (totalItems != null) { | 2637 if (totalItems != null) { |
2576 _json["totalItems"] = totalItems; | 2638 _json["totalItems"] = totalItems; |
2577 } | 2639 } |
2578 return _json; | 2640 return _json; |
2579 } | 2641 } |
2580 } | 2642 } |
2581 | 2643 |
2582 /** The people in this circle. */ | 2644 /// The people in this circle. |
2583 class CirclePeople { | 2645 class CirclePeople { |
2584 /** The total number of people in this circle. */ | 2646 /// The total number of people in this circle. |
2585 core.int totalItems; | 2647 core.int totalItems; |
2586 | 2648 |
2587 CirclePeople(); | 2649 CirclePeople(); |
2588 | 2650 |
2589 CirclePeople.fromJson(core.Map _json) { | 2651 CirclePeople.fromJson(core.Map _json) { |
2590 if (_json.containsKey("totalItems")) { | 2652 if (_json.containsKey("totalItems")) { |
2591 totalItems = _json["totalItems"]; | 2653 totalItems = _json["totalItems"]; |
2592 } | 2654 } |
2593 } | 2655 } |
2594 | 2656 |
2595 core.Map<core.String, core.Object> toJson() { | 2657 core.Map<core.String, core.Object> toJson() { |
2596 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2658 final core.Map<core.String, core.Object> _json = |
| 2659 new core.Map<core.String, core.Object>(); |
2597 if (totalItems != null) { | 2660 if (totalItems != null) { |
2598 _json["totalItems"] = totalItems; | 2661 _json["totalItems"] = totalItems; |
2599 } | 2662 } |
2600 return _json; | 2663 return _json; |
2601 } | 2664 } |
2602 } | 2665 } |
2603 | 2666 |
2604 class Circle { | 2667 class Circle { |
2605 /** The description of this circle. */ | 2668 /// The description of this circle. |
2606 core.String description; | 2669 core.String description; |
2607 /** The circle name. */ | 2670 |
| 2671 /// The circle name. |
2608 core.String displayName; | 2672 core.String displayName; |
2609 /** ETag of this response for caching purposes. */ | 2673 |
| 2674 /// ETag of this response for caching purposes. |
2610 core.String etag; | 2675 core.String etag; |
2611 /** The ID of the circle. */ | 2676 |
| 2677 /// The ID of the circle. |
2612 core.String id; | 2678 core.String id; |
2613 /** Identifies this resource as a circle. Value: "plus#circle". */ | 2679 |
| 2680 /// Identifies this resource as a circle. Value: "plus#circle". |
2614 core.String kind; | 2681 core.String kind; |
2615 /** The people in this circle. */ | 2682 |
| 2683 /// The people in this circle. |
2616 CirclePeople people; | 2684 CirclePeople people; |
2617 /** Link to this circle resource */ | 2685 |
| 2686 /// Link to this circle resource |
2618 core.String selfLink; | 2687 core.String selfLink; |
2619 | 2688 |
2620 Circle(); | 2689 Circle(); |
2621 | 2690 |
2622 Circle.fromJson(core.Map _json) { | 2691 Circle.fromJson(core.Map _json) { |
2623 if (_json.containsKey("description")) { | 2692 if (_json.containsKey("description")) { |
2624 description = _json["description"]; | 2693 description = _json["description"]; |
2625 } | 2694 } |
2626 if (_json.containsKey("displayName")) { | 2695 if (_json.containsKey("displayName")) { |
2627 displayName = _json["displayName"]; | 2696 displayName = _json["displayName"]; |
2628 } | 2697 } |
2629 if (_json.containsKey("etag")) { | 2698 if (_json.containsKey("etag")) { |
2630 etag = _json["etag"]; | 2699 etag = _json["etag"]; |
2631 } | 2700 } |
2632 if (_json.containsKey("id")) { | 2701 if (_json.containsKey("id")) { |
2633 id = _json["id"]; | 2702 id = _json["id"]; |
2634 } | 2703 } |
2635 if (_json.containsKey("kind")) { | 2704 if (_json.containsKey("kind")) { |
2636 kind = _json["kind"]; | 2705 kind = _json["kind"]; |
2637 } | 2706 } |
2638 if (_json.containsKey("people")) { | 2707 if (_json.containsKey("people")) { |
2639 people = new CirclePeople.fromJson(_json["people"]); | 2708 people = new CirclePeople.fromJson(_json["people"]); |
2640 } | 2709 } |
2641 if (_json.containsKey("selfLink")) { | 2710 if (_json.containsKey("selfLink")) { |
2642 selfLink = _json["selfLink"]; | 2711 selfLink = _json["selfLink"]; |
2643 } | 2712 } |
2644 } | 2713 } |
2645 | 2714 |
2646 core.Map<core.String, core.Object> toJson() { | 2715 core.Map<core.String, core.Object> toJson() { |
2647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2716 final core.Map<core.String, core.Object> _json = |
| 2717 new core.Map<core.String, core.Object>(); |
2648 if (description != null) { | 2718 if (description != null) { |
2649 _json["description"] = description; | 2719 _json["description"] = description; |
2650 } | 2720 } |
2651 if (displayName != null) { | 2721 if (displayName != null) { |
2652 _json["displayName"] = displayName; | 2722 _json["displayName"] = displayName; |
2653 } | 2723 } |
2654 if (etag != null) { | 2724 if (etag != null) { |
2655 _json["etag"] = etag; | 2725 _json["etag"] = etag; |
2656 } | 2726 } |
2657 if (id != null) { | 2727 if (id != null) { |
2658 _json["id"] = id; | 2728 _json["id"] = id; |
2659 } | 2729 } |
2660 if (kind != null) { | 2730 if (kind != null) { |
2661 _json["kind"] = kind; | 2731 _json["kind"] = kind; |
2662 } | 2732 } |
2663 if (people != null) { | 2733 if (people != null) { |
2664 _json["people"] = (people).toJson(); | 2734 _json["people"] = (people).toJson(); |
2665 } | 2735 } |
2666 if (selfLink != null) { | 2736 if (selfLink != null) { |
2667 _json["selfLink"] = selfLink; | 2737 _json["selfLink"] = selfLink; |
2668 } | 2738 } |
2669 return _json; | 2739 return _json; |
2670 } | 2740 } |
2671 } | 2741 } |
2672 | 2742 |
2673 class CircleFeed { | 2743 class CircleFeed { |
2674 /** ETag of this response for caching purposes. */ | 2744 /// ETag of this response for caching purposes. |
2675 core.String etag; | 2745 core.String etag; |
2676 /** The circles in this page of results. */ | 2746 |
| 2747 /// The circles in this page of results. |
2677 core.List<Circle> items; | 2748 core.List<Circle> items; |
2678 /** | 2749 |
2679 * Identifies this resource as a collection of circles. Value: | 2750 /// Identifies this resource as a collection of circles. Value: |
2680 * "plus#circleFeed". | 2751 /// "plus#circleFeed". |
2681 */ | |
2682 core.String kind; | 2752 core.String kind; |
2683 /** Link to the next page of circles. */ | 2753 |
| 2754 /// Link to the next page of circles. |
2684 core.String nextLink; | 2755 core.String nextLink; |
2685 /** | 2756 |
2686 * The continuation token, which is used to page through large result sets. | 2757 /// The continuation token, which is used to page through large result sets. |
2687 * Provide this value in a subsequent request to return the next page of | 2758 /// Provide this value in a subsequent request to return the next page of |
2688 * results. | 2759 /// results. |
2689 */ | |
2690 core.String nextPageToken; | 2760 core.String nextPageToken; |
2691 /** Link to this page of circles. */ | 2761 |
| 2762 /// Link to this page of circles. |
2692 core.String selfLink; | 2763 core.String selfLink; |
2693 /** The title of this list of resources. */ | 2764 |
| 2765 /// The title of this list of resources. |
2694 core.String title; | 2766 core.String title; |
2695 /** | 2767 |
2696 * The total number of circles. The number of circles in this response may be | 2768 /// The total number of circles. The number of circles in this response may |
2697 * smaller due to paging. | 2769 /// be smaller due to paging. |
2698 */ | |
2699 core.int totalItems; | 2770 core.int totalItems; |
2700 | 2771 |
2701 CircleFeed(); | 2772 CircleFeed(); |
2702 | 2773 |
2703 CircleFeed.fromJson(core.Map _json) { | 2774 CircleFeed.fromJson(core.Map _json) { |
2704 if (_json.containsKey("etag")) { | 2775 if (_json.containsKey("etag")) { |
2705 etag = _json["etag"]; | 2776 etag = _json["etag"]; |
2706 } | 2777 } |
2707 if (_json.containsKey("items")) { | 2778 if (_json.containsKey("items")) { |
2708 items = _json["items"].map((value) => new Circle.fromJson(value)).toList()
; | 2779 items = |
| 2780 _json["items"].map((value) => new Circle.fromJson(value)).toList(); |
2709 } | 2781 } |
2710 if (_json.containsKey("kind")) { | 2782 if (_json.containsKey("kind")) { |
2711 kind = _json["kind"]; | 2783 kind = _json["kind"]; |
2712 } | 2784 } |
2713 if (_json.containsKey("nextLink")) { | 2785 if (_json.containsKey("nextLink")) { |
2714 nextLink = _json["nextLink"]; | 2786 nextLink = _json["nextLink"]; |
2715 } | 2787 } |
2716 if (_json.containsKey("nextPageToken")) { | 2788 if (_json.containsKey("nextPageToken")) { |
2717 nextPageToken = _json["nextPageToken"]; | 2789 nextPageToken = _json["nextPageToken"]; |
2718 } | 2790 } |
2719 if (_json.containsKey("selfLink")) { | 2791 if (_json.containsKey("selfLink")) { |
2720 selfLink = _json["selfLink"]; | 2792 selfLink = _json["selfLink"]; |
2721 } | 2793 } |
2722 if (_json.containsKey("title")) { | 2794 if (_json.containsKey("title")) { |
2723 title = _json["title"]; | 2795 title = _json["title"]; |
2724 } | 2796 } |
2725 if (_json.containsKey("totalItems")) { | 2797 if (_json.containsKey("totalItems")) { |
2726 totalItems = _json["totalItems"]; | 2798 totalItems = _json["totalItems"]; |
2727 } | 2799 } |
2728 } | 2800 } |
2729 | 2801 |
2730 core.Map<core.String, core.Object> toJson() { | 2802 core.Map<core.String, core.Object> toJson() { |
2731 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2803 final core.Map<core.String, core.Object> _json = |
| 2804 new core.Map<core.String, core.Object>(); |
2732 if (etag != null) { | 2805 if (etag != null) { |
2733 _json["etag"] = etag; | 2806 _json["etag"] = etag; |
2734 } | 2807 } |
2735 if (items != null) { | 2808 if (items != null) { |
2736 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2809 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2737 } | 2810 } |
2738 if (kind != null) { | 2811 if (kind != null) { |
2739 _json["kind"] = kind; | 2812 _json["kind"] = kind; |
2740 } | 2813 } |
2741 if (nextLink != null) { | 2814 if (nextLink != null) { |
2742 _json["nextLink"] = nextLink; | 2815 _json["nextLink"] = nextLink; |
2743 } | 2816 } |
2744 if (nextPageToken != null) { | 2817 if (nextPageToken != null) { |
2745 _json["nextPageToken"] = nextPageToken; | 2818 _json["nextPageToken"] = nextPageToken; |
2746 } | 2819 } |
2747 if (selfLink != null) { | 2820 if (selfLink != null) { |
2748 _json["selfLink"] = selfLink; | 2821 _json["selfLink"] = selfLink; |
2749 } | 2822 } |
2750 if (title != null) { | 2823 if (title != null) { |
2751 _json["title"] = title; | 2824 _json["title"] = title; |
2752 } | 2825 } |
2753 if (totalItems != null) { | 2826 if (totalItems != null) { |
2754 _json["totalItems"] = totalItems; | 2827 _json["totalItems"] = totalItems; |
2755 } | 2828 } |
2756 return _json; | 2829 return _json; |
2757 } | 2830 } |
2758 } | 2831 } |
2759 | 2832 |
2760 /** Actor info specific to YouTube clients. */ | 2833 /// Actor info specific to YouTube clients. |
2761 class CommentActorClientSpecificActorInfoYoutubeActorInfo { | 2834 class CommentActorClientSpecificActorInfoYoutubeActorInfo { |
2762 /** ID of the YouTube channel owned by the Actor. */ | 2835 /// ID of the YouTube channel owned by the Actor. |
2763 core.String channelId; | 2836 core.String channelId; |
2764 | 2837 |
2765 CommentActorClientSpecificActorInfoYoutubeActorInfo(); | 2838 CommentActorClientSpecificActorInfoYoutubeActorInfo(); |
2766 | 2839 |
2767 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { | 2840 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { |
2768 if (_json.containsKey("channelId")) { | 2841 if (_json.containsKey("channelId")) { |
2769 channelId = _json["channelId"]; | 2842 channelId = _json["channelId"]; |
2770 } | 2843 } |
2771 } | 2844 } |
2772 | 2845 |
2773 core.Map<core.String, core.Object> toJson() { | 2846 core.Map<core.String, core.Object> toJson() { |
2774 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2847 final core.Map<core.String, core.Object> _json = |
| 2848 new core.Map<core.String, core.Object>(); |
2775 if (channelId != null) { | 2849 if (channelId != null) { |
2776 _json["channelId"] = channelId; | 2850 _json["channelId"] = channelId; |
2777 } | 2851 } |
2778 return _json; | 2852 return _json; |
2779 } | 2853 } |
2780 } | 2854 } |
2781 | 2855 |
2782 /** Actor info specific to particular clients. */ | 2856 /// Actor info specific to particular clients. |
2783 class CommentActorClientSpecificActorInfo { | 2857 class CommentActorClientSpecificActorInfo { |
2784 /** Actor info specific to YouTube clients. */ | 2858 /// Actor info specific to YouTube clients. |
2785 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 2859 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
2786 | 2860 |
2787 CommentActorClientSpecificActorInfo(); | 2861 CommentActorClientSpecificActorInfo(); |
2788 | 2862 |
2789 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) { | 2863 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) { |
2790 if (_json.containsKey("youtubeActorInfo")) { | 2864 if (_json.containsKey("youtubeActorInfo")) { |
2791 youtubeActorInfo = new CommentActorClientSpecificActorInfoYoutubeActorInfo
.fromJson(_json["youtubeActorInfo"]); | 2865 youtubeActorInfo = |
| 2866 new CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson( |
| 2867 _json["youtubeActorInfo"]); |
2792 } | 2868 } |
2793 } | 2869 } |
2794 | 2870 |
2795 core.Map<core.String, core.Object> toJson() { | 2871 core.Map<core.String, core.Object> toJson() { |
2796 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2872 final core.Map<core.String, core.Object> _json = |
| 2873 new core.Map<core.String, core.Object>(); |
2797 if (youtubeActorInfo != null) { | 2874 if (youtubeActorInfo != null) { |
2798 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 2875 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
2799 } | 2876 } |
2800 return _json; | 2877 return _json; |
2801 } | 2878 } |
2802 } | 2879 } |
2803 | 2880 |
2804 /** The image representation of this actor. */ | 2881 /// The image representation of this actor. |
2805 class CommentActorImage { | 2882 class CommentActorImage { |
2806 /** | 2883 /// The URL of the actor's profile photo. To resize the image and crop it to |
2807 * The URL of the actor's profile photo. To resize the image and crop it to a | 2884 /// a square, append the query string ?sz=x, where x is the dimension in |
2808 * square, append the query string ?sz=x, where x is the dimension in pixels | 2885 /// pixels of each side. |
2809 * of each side. | |
2810 */ | |
2811 core.String url; | 2886 core.String url; |
2812 | 2887 |
2813 CommentActorImage(); | 2888 CommentActorImage(); |
2814 | 2889 |
2815 CommentActorImage.fromJson(core.Map _json) { | 2890 CommentActorImage.fromJson(core.Map _json) { |
2816 if (_json.containsKey("url")) { | 2891 if (_json.containsKey("url")) { |
2817 url = _json["url"]; | 2892 url = _json["url"]; |
2818 } | 2893 } |
2819 } | 2894 } |
2820 | 2895 |
2821 core.Map<core.String, core.Object> toJson() { | 2896 core.Map<core.String, core.Object> toJson() { |
2822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2897 final core.Map<core.String, core.Object> _json = |
| 2898 new core.Map<core.String, core.Object>(); |
2823 if (url != null) { | 2899 if (url != null) { |
2824 _json["url"] = url; | 2900 _json["url"] = url; |
2825 } | 2901 } |
2826 return _json; | 2902 return _json; |
2827 } | 2903 } |
2828 } | 2904 } |
2829 | 2905 |
2830 /** Verification status of actor. */ | 2906 /// Verification status of actor. |
2831 class CommentActorVerification { | 2907 class CommentActorVerification { |
2832 /** Verification for one-time or manual processes. */ | 2908 /// Verification for one-time or manual processes. |
2833 core.String adHocVerified; | 2909 core.String adHocVerified; |
2834 | 2910 |
2835 CommentActorVerification(); | 2911 CommentActorVerification(); |
2836 | 2912 |
2837 CommentActorVerification.fromJson(core.Map _json) { | 2913 CommentActorVerification.fromJson(core.Map _json) { |
2838 if (_json.containsKey("adHocVerified")) { | 2914 if (_json.containsKey("adHocVerified")) { |
2839 adHocVerified = _json["adHocVerified"]; | 2915 adHocVerified = _json["adHocVerified"]; |
2840 } | 2916 } |
2841 } | 2917 } |
2842 | 2918 |
2843 core.Map<core.String, core.Object> toJson() { | 2919 core.Map<core.String, core.Object> toJson() { |
2844 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2920 final core.Map<core.String, core.Object> _json = |
| 2921 new core.Map<core.String, core.Object>(); |
2845 if (adHocVerified != null) { | 2922 if (adHocVerified != null) { |
2846 _json["adHocVerified"] = adHocVerified; | 2923 _json["adHocVerified"] = adHocVerified; |
2847 } | 2924 } |
2848 return _json; | 2925 return _json; |
2849 } | 2926 } |
2850 } | 2927 } |
2851 | 2928 |
2852 /** The person who posted this comment. */ | 2929 /// The person who posted this comment. |
2853 class CommentActor { | 2930 class CommentActor { |
2854 /** Actor info specific to particular clients. */ | 2931 /// Actor info specific to particular clients. |
2855 CommentActorClientSpecificActorInfo clientSpecificActorInfo; | 2932 CommentActorClientSpecificActorInfo clientSpecificActorInfo; |
2856 /** The name of this actor, suitable for display. */ | 2933 |
| 2934 /// The name of this actor, suitable for display. |
2857 core.String displayName; | 2935 core.String displayName; |
2858 /** The ID of the actor. */ | 2936 |
| 2937 /// The ID of the actor. |
2859 core.String id; | 2938 core.String id; |
2860 /** The image representation of this actor. */ | 2939 |
| 2940 /// The image representation of this actor. |
2861 CommentActorImage image; | 2941 CommentActorImage image; |
2862 /** A link to the Person resource for this actor. */ | 2942 |
| 2943 /// A link to the Person resource for this actor. |
2863 core.String url; | 2944 core.String url; |
2864 /** Verification status of actor. */ | 2945 |
| 2946 /// Verification status of actor. |
2865 CommentActorVerification verification; | 2947 CommentActorVerification verification; |
2866 | 2948 |
2867 CommentActor(); | 2949 CommentActor(); |
2868 | 2950 |
2869 CommentActor.fromJson(core.Map _json) { | 2951 CommentActor.fromJson(core.Map _json) { |
2870 if (_json.containsKey("clientSpecificActorInfo")) { | 2952 if (_json.containsKey("clientSpecificActorInfo")) { |
2871 clientSpecificActorInfo = new CommentActorClientSpecificActorInfo.fromJson
(_json["clientSpecificActorInfo"]); | 2953 clientSpecificActorInfo = |
| 2954 new CommentActorClientSpecificActorInfo.fromJson( |
| 2955 _json["clientSpecificActorInfo"]); |
2872 } | 2956 } |
2873 if (_json.containsKey("displayName")) { | 2957 if (_json.containsKey("displayName")) { |
2874 displayName = _json["displayName"]; | 2958 displayName = _json["displayName"]; |
2875 } | 2959 } |
2876 if (_json.containsKey("id")) { | 2960 if (_json.containsKey("id")) { |
2877 id = _json["id"]; | 2961 id = _json["id"]; |
2878 } | 2962 } |
2879 if (_json.containsKey("image")) { | 2963 if (_json.containsKey("image")) { |
2880 image = new CommentActorImage.fromJson(_json["image"]); | 2964 image = new CommentActorImage.fromJson(_json["image"]); |
2881 } | 2965 } |
2882 if (_json.containsKey("url")) { | 2966 if (_json.containsKey("url")) { |
2883 url = _json["url"]; | 2967 url = _json["url"]; |
2884 } | 2968 } |
2885 if (_json.containsKey("verification")) { | 2969 if (_json.containsKey("verification")) { |
2886 verification = new CommentActorVerification.fromJson(_json["verification"]
); | 2970 verification = |
| 2971 new CommentActorVerification.fromJson(_json["verification"]); |
2887 } | 2972 } |
2888 } | 2973 } |
2889 | 2974 |
2890 core.Map<core.String, core.Object> toJson() { | 2975 core.Map<core.String, core.Object> toJson() { |
2891 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2976 final core.Map<core.String, core.Object> _json = |
| 2977 new core.Map<core.String, core.Object>(); |
2892 if (clientSpecificActorInfo != null) { | 2978 if (clientSpecificActorInfo != null) { |
2893 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 2979 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
2894 } | 2980 } |
2895 if (displayName != null) { | 2981 if (displayName != null) { |
2896 _json["displayName"] = displayName; | 2982 _json["displayName"] = displayName; |
2897 } | 2983 } |
2898 if (id != null) { | 2984 if (id != null) { |
2899 _json["id"] = id; | 2985 _json["id"] = id; |
2900 } | 2986 } |
2901 if (image != null) { | 2987 if (image != null) { |
2902 _json["image"] = (image).toJson(); | 2988 _json["image"] = (image).toJson(); |
2903 } | 2989 } |
2904 if (url != null) { | 2990 if (url != null) { |
2905 _json["url"] = url; | 2991 _json["url"] = url; |
2906 } | 2992 } |
2907 if (verification != null) { | 2993 if (verification != null) { |
2908 _json["verification"] = (verification).toJson(); | 2994 _json["verification"] = (verification).toJson(); |
2909 } | 2995 } |
2910 return _json; | 2996 return _json; |
2911 } | 2997 } |
2912 } | 2998 } |
2913 | 2999 |
2914 class CommentInReplyTo { | 3000 class CommentInReplyTo { |
2915 /** The ID of the activity. */ | 3001 /// The ID of the activity. |
2916 core.String id; | 3002 core.String id; |
2917 /** The URL of the activity. */ | 3003 |
| 3004 /// The URL of the activity. |
2918 core.String url; | 3005 core.String url; |
2919 | 3006 |
2920 CommentInReplyTo(); | 3007 CommentInReplyTo(); |
2921 | 3008 |
2922 CommentInReplyTo.fromJson(core.Map _json) { | 3009 CommentInReplyTo.fromJson(core.Map _json) { |
2923 if (_json.containsKey("id")) { | 3010 if (_json.containsKey("id")) { |
2924 id = _json["id"]; | 3011 id = _json["id"]; |
2925 } | 3012 } |
2926 if (_json.containsKey("url")) { | 3013 if (_json.containsKey("url")) { |
2927 url = _json["url"]; | 3014 url = _json["url"]; |
2928 } | 3015 } |
2929 } | 3016 } |
2930 | 3017 |
2931 core.Map<core.String, core.Object> toJson() { | 3018 core.Map<core.String, core.Object> toJson() { |
2932 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3019 final core.Map<core.String, core.Object> _json = |
| 3020 new core.Map<core.String, core.Object>(); |
2933 if (id != null) { | 3021 if (id != null) { |
2934 _json["id"] = id; | 3022 _json["id"] = id; |
2935 } | 3023 } |
2936 if (url != null) { | 3024 if (url != null) { |
2937 _json["url"] = url; | 3025 _json["url"] = url; |
2938 } | 3026 } |
2939 return _json; | 3027 return _json; |
2940 } | 3028 } |
2941 } | 3029 } |
2942 | 3030 |
2943 /** The object of this comment. */ | 3031 /// The object of this comment. |
2944 class CommentObject { | 3032 class CommentObject { |
2945 /** The HTML-formatted content, suitable for display. */ | 3033 /// The HTML-formatted content, suitable for display. |
2946 core.String content; | 3034 core.String content; |
2947 /** | 3035 |
2948 * The object type of this comment. Possible values are: | 3036 /// The object type of this comment. Possible values are: |
2949 * - "comment" - A comment in reply to an activity. | 3037 /// - "comment" - A comment in reply to an activity. |
2950 */ | |
2951 core.String objectType; | 3038 core.String objectType; |
2952 /** | 3039 |
2953 * The content (text) as provided by the author, stored without any HTML | 3040 /// The content (text) as provided by the author, stored without any HTML |
2954 * formatting. When creating or updating a comment, this value must be | 3041 /// formatting. When creating or updating a comment, this value must be |
2955 * supplied as plain text in the request. | 3042 /// supplied as plain text in the request. |
2956 */ | |
2957 core.String originalContent; | 3043 core.String originalContent; |
2958 | 3044 |
2959 CommentObject(); | 3045 CommentObject(); |
2960 | 3046 |
2961 CommentObject.fromJson(core.Map _json) { | 3047 CommentObject.fromJson(core.Map _json) { |
2962 if (_json.containsKey("content")) { | 3048 if (_json.containsKey("content")) { |
2963 content = _json["content"]; | 3049 content = _json["content"]; |
2964 } | 3050 } |
2965 if (_json.containsKey("objectType")) { | 3051 if (_json.containsKey("objectType")) { |
2966 objectType = _json["objectType"]; | 3052 objectType = _json["objectType"]; |
2967 } | 3053 } |
2968 if (_json.containsKey("originalContent")) { | 3054 if (_json.containsKey("originalContent")) { |
2969 originalContent = _json["originalContent"]; | 3055 originalContent = _json["originalContent"]; |
2970 } | 3056 } |
2971 } | 3057 } |
2972 | 3058 |
2973 core.Map<core.String, core.Object> toJson() { | 3059 core.Map<core.String, core.Object> toJson() { |
2974 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3060 final core.Map<core.String, core.Object> _json = |
| 3061 new core.Map<core.String, core.Object>(); |
2975 if (content != null) { | 3062 if (content != null) { |
2976 _json["content"] = content; | 3063 _json["content"] = content; |
2977 } | 3064 } |
2978 if (objectType != null) { | 3065 if (objectType != null) { |
2979 _json["objectType"] = objectType; | 3066 _json["objectType"] = objectType; |
2980 } | 3067 } |
2981 if (originalContent != null) { | 3068 if (originalContent != null) { |
2982 _json["originalContent"] = originalContent; | 3069 _json["originalContent"] = originalContent; |
2983 } | 3070 } |
2984 return _json; | 3071 return _json; |
2985 } | 3072 } |
2986 } | 3073 } |
2987 | 3074 |
2988 /** People who +1'd this comment. */ | 3075 /// People who +1'd this comment. |
2989 class CommentPlusoners { | 3076 class CommentPlusoners { |
2990 /** Total number of people who +1'd this comment. */ | 3077 /// Total number of people who +1'd this comment. |
2991 core.int totalItems; | 3078 core.int totalItems; |
2992 | 3079 |
2993 CommentPlusoners(); | 3080 CommentPlusoners(); |
2994 | 3081 |
2995 CommentPlusoners.fromJson(core.Map _json) { | 3082 CommentPlusoners.fromJson(core.Map _json) { |
2996 if (_json.containsKey("totalItems")) { | 3083 if (_json.containsKey("totalItems")) { |
2997 totalItems = _json["totalItems"]; | 3084 totalItems = _json["totalItems"]; |
2998 } | 3085 } |
2999 } | 3086 } |
3000 | 3087 |
3001 core.Map<core.String, core.Object> toJson() { | 3088 core.Map<core.String, core.Object> toJson() { |
3002 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3089 final core.Map<core.String, core.Object> _json = |
| 3090 new core.Map<core.String, core.Object>(); |
3003 if (totalItems != null) { | 3091 if (totalItems != null) { |
3004 _json["totalItems"] = totalItems; | 3092 _json["totalItems"] = totalItems; |
3005 } | 3093 } |
3006 return _json; | 3094 return _json; |
3007 } | 3095 } |
3008 } | 3096 } |
3009 | 3097 |
3010 class Comment { | 3098 class Comment { |
3011 /** The person who posted this comment. */ | 3099 /// The person who posted this comment. |
3012 CommentActor actor; | 3100 CommentActor actor; |
3013 /** ETag of this response for caching purposes. */ | 3101 |
| 3102 /// ETag of this response for caching purposes. |
3014 core.String etag; | 3103 core.String etag; |
3015 /** The ID of this comment. */ | 3104 |
| 3105 /// The ID of this comment. |
3016 core.String id; | 3106 core.String id; |
3017 /** The activity this comment replied to. */ | 3107 |
| 3108 /// The activity this comment replied to. |
3018 core.List<CommentInReplyTo> inReplyTo; | 3109 core.List<CommentInReplyTo> inReplyTo; |
3019 /** Identifies this resource as a comment. Value: "plus#comment". */ | 3110 |
| 3111 /// Identifies this resource as a comment. Value: "plus#comment". |
3020 core.String kind; | 3112 core.String kind; |
3021 /** The object of this comment. */ | 3113 |
| 3114 /// The object of this comment. |
3022 CommentObject object; | 3115 CommentObject object; |
3023 /** People who +1'd this comment. */ | 3116 |
| 3117 /// People who +1'd this comment. |
3024 CommentPlusoners plusoners; | 3118 CommentPlusoners plusoners; |
3025 /** | 3119 |
3026 * The time at which this comment was initially published. Formatted as an RFC | 3120 /// The time at which this comment was initially published. Formatted as an |
3027 * 3339 timestamp. | 3121 /// RFC 3339 timestamp. |
3028 */ | |
3029 core.DateTime published; | 3122 core.DateTime published; |
3030 /** Link to this comment resource. */ | 3123 |
| 3124 /// Link to this comment resource. |
3031 core.String selfLink; | 3125 core.String selfLink; |
3032 /** | 3126 |
3033 * The time at which this comment was last updated. Formatted as an RFC 3339 | 3127 /// The time at which this comment was last updated. Formatted as an RFC 3339 |
3034 * timestamp. | 3128 /// timestamp. |
3035 */ | |
3036 core.DateTime updated; | 3129 core.DateTime updated; |
3037 /** | 3130 |
3038 * This comment's verb, indicating what action was performed. Possible values | 3131 /// This comment's verb, indicating what action was performed. Possible |
3039 * are: | 3132 /// values are: |
3040 * - "post" - Publish content to the stream. | 3133 /// - "post" - Publish content to the stream. |
3041 */ | |
3042 core.String verb; | 3134 core.String verb; |
3043 | 3135 |
3044 Comment(); | 3136 Comment(); |
3045 | 3137 |
3046 Comment.fromJson(core.Map _json) { | 3138 Comment.fromJson(core.Map _json) { |
3047 if (_json.containsKey("actor")) { | 3139 if (_json.containsKey("actor")) { |
3048 actor = new CommentActor.fromJson(_json["actor"]); | 3140 actor = new CommentActor.fromJson(_json["actor"]); |
3049 } | 3141 } |
3050 if (_json.containsKey("etag")) { | 3142 if (_json.containsKey("etag")) { |
3051 etag = _json["etag"]; | 3143 etag = _json["etag"]; |
3052 } | 3144 } |
3053 if (_json.containsKey("id")) { | 3145 if (_json.containsKey("id")) { |
3054 id = _json["id"]; | 3146 id = _json["id"]; |
3055 } | 3147 } |
3056 if (_json.containsKey("inReplyTo")) { | 3148 if (_json.containsKey("inReplyTo")) { |
3057 inReplyTo = _json["inReplyTo"].map((value) => new CommentInReplyTo.fromJso
n(value)).toList(); | 3149 inReplyTo = _json["inReplyTo"] |
| 3150 .map((value) => new CommentInReplyTo.fromJson(value)) |
| 3151 .toList(); |
3058 } | 3152 } |
3059 if (_json.containsKey("kind")) { | 3153 if (_json.containsKey("kind")) { |
3060 kind = _json["kind"]; | 3154 kind = _json["kind"]; |
3061 } | 3155 } |
3062 if (_json.containsKey("object")) { | 3156 if (_json.containsKey("object")) { |
3063 object = new CommentObject.fromJson(_json["object"]); | 3157 object = new CommentObject.fromJson(_json["object"]); |
3064 } | 3158 } |
3065 if (_json.containsKey("plusoners")) { | 3159 if (_json.containsKey("plusoners")) { |
3066 plusoners = new CommentPlusoners.fromJson(_json["plusoners"]); | 3160 plusoners = new CommentPlusoners.fromJson(_json["plusoners"]); |
3067 } | 3161 } |
3068 if (_json.containsKey("published")) { | 3162 if (_json.containsKey("published")) { |
3069 published = core.DateTime.parse(_json["published"]); | 3163 published = core.DateTime.parse(_json["published"]); |
3070 } | 3164 } |
3071 if (_json.containsKey("selfLink")) { | 3165 if (_json.containsKey("selfLink")) { |
3072 selfLink = _json["selfLink"]; | 3166 selfLink = _json["selfLink"]; |
3073 } | 3167 } |
3074 if (_json.containsKey("updated")) { | 3168 if (_json.containsKey("updated")) { |
3075 updated = core.DateTime.parse(_json["updated"]); | 3169 updated = core.DateTime.parse(_json["updated"]); |
3076 } | 3170 } |
3077 if (_json.containsKey("verb")) { | 3171 if (_json.containsKey("verb")) { |
3078 verb = _json["verb"]; | 3172 verb = _json["verb"]; |
3079 } | 3173 } |
3080 } | 3174 } |
3081 | 3175 |
3082 core.Map<core.String, core.Object> toJson() { | 3176 core.Map<core.String, core.Object> toJson() { |
3083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3177 final core.Map<core.String, core.Object> _json = |
| 3178 new core.Map<core.String, core.Object>(); |
3084 if (actor != null) { | 3179 if (actor != null) { |
3085 _json["actor"] = (actor).toJson(); | 3180 _json["actor"] = (actor).toJson(); |
3086 } | 3181 } |
3087 if (etag != null) { | 3182 if (etag != null) { |
3088 _json["etag"] = etag; | 3183 _json["etag"] = etag; |
3089 } | 3184 } |
3090 if (id != null) { | 3185 if (id != null) { |
3091 _json["id"] = id; | 3186 _json["id"] = id; |
3092 } | 3187 } |
3093 if (inReplyTo != null) { | 3188 if (inReplyTo != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
3112 _json["updated"] = (updated).toIso8601String(); | 3207 _json["updated"] = (updated).toIso8601String(); |
3113 } | 3208 } |
3114 if (verb != null) { | 3209 if (verb != null) { |
3115 _json["verb"] = verb; | 3210 _json["verb"] = verb; |
3116 } | 3211 } |
3117 return _json; | 3212 return _json; |
3118 } | 3213 } |
3119 } | 3214 } |
3120 | 3215 |
3121 class CommentFeed { | 3216 class CommentFeed { |
3122 /** ETag of this response for caching purposes. */ | 3217 /// ETag of this response for caching purposes. |
3123 core.String etag; | 3218 core.String etag; |
3124 /** The ID of this collection of comments. */ | 3219 |
| 3220 /// The ID of this collection of comments. |
3125 core.String id; | 3221 core.String id; |
3126 /** The comments in this page of results. */ | 3222 |
| 3223 /// The comments in this page of results. |
3127 core.List<Comment> items; | 3224 core.List<Comment> items; |
3128 /** | 3225 |
3129 * Identifies this resource as a collection of comments. Value: | 3226 /// Identifies this resource as a collection of comments. Value: |
3130 * "plus#commentFeed". | 3227 /// "plus#commentFeed". |
3131 */ | |
3132 core.String kind; | 3228 core.String kind; |
3133 /** Link to the next page of activities. */ | 3229 |
| 3230 /// Link to the next page of activities. |
3134 core.String nextLink; | 3231 core.String nextLink; |
3135 /** | 3232 |
3136 * The continuation token, which is used to page through large result sets. | 3233 /// The continuation token, which is used to page through large result sets. |
3137 * Provide this value in a subsequent request to return the next page of | 3234 /// Provide this value in a subsequent request to return the next page of |
3138 * results. | 3235 /// results. |
3139 */ | |
3140 core.String nextPageToken; | 3236 core.String nextPageToken; |
3141 /** The title of this collection of comments. */ | 3237 |
| 3238 /// The title of this collection of comments. |
3142 core.String title; | 3239 core.String title; |
3143 /** | 3240 |
3144 * The time at which this collection of comments was last updated. Formatted | 3241 /// The time at which this collection of comments was last updated. Formatted |
3145 * as an RFC 3339 timestamp. | 3242 /// as an RFC 3339 timestamp. |
3146 */ | |
3147 core.DateTime updated; | 3243 core.DateTime updated; |
3148 | 3244 |
3149 CommentFeed(); | 3245 CommentFeed(); |
3150 | 3246 |
3151 CommentFeed.fromJson(core.Map _json) { | 3247 CommentFeed.fromJson(core.Map _json) { |
3152 if (_json.containsKey("etag")) { | 3248 if (_json.containsKey("etag")) { |
3153 etag = _json["etag"]; | 3249 etag = _json["etag"]; |
3154 } | 3250 } |
3155 if (_json.containsKey("id")) { | 3251 if (_json.containsKey("id")) { |
3156 id = _json["id"]; | 3252 id = _json["id"]; |
3157 } | 3253 } |
3158 if (_json.containsKey("items")) { | 3254 if (_json.containsKey("items")) { |
3159 items = _json["items"].map((value) => new Comment.fromJson(value)).toList(
); | 3255 items = |
| 3256 _json["items"].map((value) => new Comment.fromJson(value)).toList(); |
3160 } | 3257 } |
3161 if (_json.containsKey("kind")) { | 3258 if (_json.containsKey("kind")) { |
3162 kind = _json["kind"]; | 3259 kind = _json["kind"]; |
3163 } | 3260 } |
3164 if (_json.containsKey("nextLink")) { | 3261 if (_json.containsKey("nextLink")) { |
3165 nextLink = _json["nextLink"]; | 3262 nextLink = _json["nextLink"]; |
3166 } | 3263 } |
3167 if (_json.containsKey("nextPageToken")) { | 3264 if (_json.containsKey("nextPageToken")) { |
3168 nextPageToken = _json["nextPageToken"]; | 3265 nextPageToken = _json["nextPageToken"]; |
3169 } | 3266 } |
3170 if (_json.containsKey("title")) { | 3267 if (_json.containsKey("title")) { |
3171 title = _json["title"]; | 3268 title = _json["title"]; |
3172 } | 3269 } |
3173 if (_json.containsKey("updated")) { | 3270 if (_json.containsKey("updated")) { |
3174 updated = core.DateTime.parse(_json["updated"]); | 3271 updated = core.DateTime.parse(_json["updated"]); |
3175 } | 3272 } |
3176 } | 3273 } |
3177 | 3274 |
3178 core.Map<core.String, core.Object> toJson() { | 3275 core.Map<core.String, core.Object> toJson() { |
3179 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3276 final core.Map<core.String, core.Object> _json = |
| 3277 new core.Map<core.String, core.Object>(); |
3180 if (etag != null) { | 3278 if (etag != null) { |
3181 _json["etag"] = etag; | 3279 _json["etag"] = etag; |
3182 } | 3280 } |
3183 if (id != null) { | 3281 if (id != null) { |
3184 _json["id"] = id; | 3282 _json["id"] = id; |
3185 } | 3283 } |
3186 if (items != null) { | 3284 if (items != null) { |
3187 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3285 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3188 } | 3286 } |
3189 if (kind != null) { | 3287 if (kind != null) { |
3190 _json["kind"] = kind; | 3288 _json["kind"] = kind; |
3191 } | 3289 } |
3192 if (nextLink != null) { | 3290 if (nextLink != null) { |
3193 _json["nextLink"] = nextLink; | 3291 _json["nextLink"] = nextLink; |
3194 } | 3292 } |
3195 if (nextPageToken != null) { | 3293 if (nextPageToken != null) { |
3196 _json["nextPageToken"] = nextPageToken; | 3294 _json["nextPageToken"] = nextPageToken; |
3197 } | 3295 } |
3198 if (title != null) { | 3296 if (title != null) { |
3199 _json["title"] = title; | 3297 _json["title"] = title; |
3200 } | 3298 } |
3201 if (updated != null) { | 3299 if (updated != null) { |
3202 _json["updated"] = (updated).toIso8601String(); | 3300 _json["updated"] = (updated).toIso8601String(); |
3203 } | 3301 } |
3204 return _json; | 3302 return _json; |
3205 } | 3303 } |
3206 } | 3304 } |
3207 | 3305 |
3208 /** The author's Google profile image. */ | 3306 /// The author's Google profile image. |
3209 class MediaAuthorImage { | 3307 class MediaAuthorImage { |
3210 /** | 3308 /// The URL of the author's profile photo. To resize the image and crop it to |
3211 * The URL of the author's profile photo. To resize the image and crop it to a | 3309 /// a square, append the query string ?sz=x, where x is the dimension in |
3212 * square, append the query string ?sz=x, where x is the dimension in pixels | 3310 /// pixels of each side. |
3213 * of each side. | |
3214 */ | |
3215 core.String url; | 3311 core.String url; |
3216 | 3312 |
3217 MediaAuthorImage(); | 3313 MediaAuthorImage(); |
3218 | 3314 |
3219 MediaAuthorImage.fromJson(core.Map _json) { | 3315 MediaAuthorImage.fromJson(core.Map _json) { |
3220 if (_json.containsKey("url")) { | 3316 if (_json.containsKey("url")) { |
3221 url = _json["url"]; | 3317 url = _json["url"]; |
3222 } | 3318 } |
3223 } | 3319 } |
3224 | 3320 |
3225 core.Map<core.String, core.Object> toJson() { | 3321 core.Map<core.String, core.Object> toJson() { |
3226 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3322 final core.Map<core.String, core.Object> _json = |
| 3323 new core.Map<core.String, core.Object>(); |
3227 if (url != null) { | 3324 if (url != null) { |
3228 _json["url"] = url; | 3325 _json["url"] = url; |
3229 } | 3326 } |
3230 return _json; | 3327 return _json; |
3231 } | 3328 } |
3232 } | 3329 } |
3233 | 3330 |
3234 /** The person who uploaded this media. */ | 3331 /// The person who uploaded this media. |
3235 class MediaAuthor { | 3332 class MediaAuthor { |
3236 /** The author's name. */ | 3333 /// The author's name. |
3237 core.String displayName; | 3334 core.String displayName; |
3238 /** ID of the author. */ | 3335 |
| 3336 /// ID of the author. |
3239 core.String id; | 3337 core.String id; |
3240 /** The author's Google profile image. */ | 3338 |
| 3339 /// The author's Google profile image. |
3241 MediaAuthorImage image; | 3340 MediaAuthorImage image; |
3242 /** A link to the author's Google profile. */ | 3341 |
| 3342 /// A link to the author's Google profile. |
3243 core.String url; | 3343 core.String url; |
3244 | 3344 |
3245 MediaAuthor(); | 3345 MediaAuthor(); |
3246 | 3346 |
3247 MediaAuthor.fromJson(core.Map _json) { | 3347 MediaAuthor.fromJson(core.Map _json) { |
3248 if (_json.containsKey("displayName")) { | 3348 if (_json.containsKey("displayName")) { |
3249 displayName = _json["displayName"]; | 3349 displayName = _json["displayName"]; |
3250 } | 3350 } |
3251 if (_json.containsKey("id")) { | 3351 if (_json.containsKey("id")) { |
3252 id = _json["id"]; | 3352 id = _json["id"]; |
3253 } | 3353 } |
3254 if (_json.containsKey("image")) { | 3354 if (_json.containsKey("image")) { |
3255 image = new MediaAuthorImage.fromJson(_json["image"]); | 3355 image = new MediaAuthorImage.fromJson(_json["image"]); |
3256 } | 3356 } |
3257 if (_json.containsKey("url")) { | 3357 if (_json.containsKey("url")) { |
3258 url = _json["url"]; | 3358 url = _json["url"]; |
3259 } | 3359 } |
3260 } | 3360 } |
3261 | 3361 |
3262 core.Map<core.String, core.Object> toJson() { | 3362 core.Map<core.String, core.Object> toJson() { |
3263 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3363 final core.Map<core.String, core.Object> _json = |
| 3364 new core.Map<core.String, core.Object>(); |
3264 if (displayName != null) { | 3365 if (displayName != null) { |
3265 _json["displayName"] = displayName; | 3366 _json["displayName"] = displayName; |
3266 } | 3367 } |
3267 if (id != null) { | 3368 if (id != null) { |
3268 _json["id"] = id; | 3369 _json["id"] = id; |
3269 } | 3370 } |
3270 if (image != null) { | 3371 if (image != null) { |
3271 _json["image"] = (image).toJson(); | 3372 _json["image"] = (image).toJson(); |
3272 } | 3373 } |
3273 if (url != null) { | 3374 if (url != null) { |
3274 _json["url"] = url; | 3375 _json["url"] = url; |
3275 } | 3376 } |
3276 return _json; | 3377 return _json; |
3277 } | 3378 } |
3278 } | 3379 } |
3279 | 3380 |
3280 /** Exif information of the media item. */ | 3381 /// Exif information of the media item. |
3281 class MediaExif { | 3382 class MediaExif { |
3282 /** The time the media was captured. Formatted as an RFC 3339 timestamp. */ | 3383 /// The time the media was captured. Formatted as an RFC 3339 timestamp. |
3283 core.DateTime time; | 3384 core.DateTime time; |
3284 | 3385 |
3285 MediaExif(); | 3386 MediaExif(); |
3286 | 3387 |
3287 MediaExif.fromJson(core.Map _json) { | 3388 MediaExif.fromJson(core.Map _json) { |
3288 if (_json.containsKey("time")) { | 3389 if (_json.containsKey("time")) { |
3289 time = core.DateTime.parse(_json["time"]); | 3390 time = core.DateTime.parse(_json["time"]); |
3290 } | 3391 } |
3291 } | 3392 } |
3292 | 3393 |
3293 core.Map<core.String, core.Object> toJson() { | 3394 core.Map<core.String, core.Object> toJson() { |
3294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3395 final core.Map<core.String, core.Object> _json = |
| 3396 new core.Map<core.String, core.Object>(); |
3295 if (time != null) { | 3397 if (time != null) { |
3296 _json["time"] = (time).toIso8601String(); | 3398 _json["time"] = (time).toIso8601String(); |
3297 } | 3399 } |
3298 return _json; | 3400 return _json; |
3299 } | 3401 } |
3300 } | 3402 } |
3301 | 3403 |
3302 class Media { | 3404 class Media { |
3303 /** The person who uploaded this media. */ | 3405 /// The person who uploaded this media. |
3304 MediaAuthor author; | 3406 MediaAuthor author; |
3305 /** The display name for this media. */ | 3407 |
| 3408 /// The display name for this media. |
3306 core.String displayName; | 3409 core.String displayName; |
3307 /** ETag of this response for caching purposes. */ | 3410 |
| 3411 /// ETag of this response for caching purposes. |
3308 core.String etag; | 3412 core.String etag; |
3309 /** Exif information of the media item. */ | 3413 |
| 3414 /// Exif information of the media item. |
3310 MediaExif exif; | 3415 MediaExif exif; |
3311 /** The height in pixels of the original image. */ | 3416 |
| 3417 /// The height in pixels of the original image. |
3312 core.int height; | 3418 core.int height; |
3313 /** ID of this media, which is generated by the API. */ | 3419 |
| 3420 /// ID of this media, which is generated by the API. |
3314 core.String id; | 3421 core.String id; |
3315 /** The type of resource. */ | 3422 |
| 3423 /// The type of resource. |
3316 core.String kind; | 3424 core.String kind; |
3317 /** | 3425 |
3318 * The time at which this media was originally created in UTC. Formatted as an | 3426 /// The time at which this media was originally created in UTC. Formatted as |
3319 * RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z | 3427 /// an RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z |
3320 */ | |
3321 core.DateTime mediaCreatedTime; | 3428 core.DateTime mediaCreatedTime; |
3322 /** The URL of this photo or video's still image. */ | 3429 |
| 3430 /// The URL of this photo or video's still image. |
3323 core.String mediaUrl; | 3431 core.String mediaUrl; |
3324 /** | 3432 |
3325 * The time at which this media was uploaded. Formatted as an RFC 3339 | 3433 /// The time at which this media was uploaded. Formatted as an RFC 3339 |
3326 * timestamp. | 3434 /// timestamp. |
3327 */ | |
3328 core.DateTime published; | 3435 core.DateTime published; |
3329 /** The size in bytes of this video. */ | 3436 |
| 3437 /// The size in bytes of this video. |
3330 core.String sizeBytes; | 3438 core.String sizeBytes; |
3331 /** | 3439 |
3332 * The list of video streams for this video. There might be several different | 3440 /// The list of video streams for this video. There might be several |
3333 * streams available for a single video, either Flash or MPEG, of various | 3441 /// different streams available for a single video, either Flash or MPEG, of |
3334 * sizes | 3442 /// various sizes |
3335 */ | |
3336 core.List<Videostream> streams; | 3443 core.List<Videostream> streams; |
3337 /** A description, or caption, for this media. */ | 3444 |
| 3445 /// A description, or caption, for this media. |
3338 core.String summary; | 3446 core.String summary; |
3339 /** | 3447 |
3340 * The time at which this media was last updated. This includes changes to | 3448 /// The time at which this media was last updated. This includes changes to |
3341 * media metadata. Formatted as an RFC 3339 timestamp. | 3449 /// media metadata. Formatted as an RFC 3339 timestamp. |
3342 */ | |
3343 core.DateTime updated; | 3450 core.DateTime updated; |
3344 /** The URL for the page that hosts this media. */ | 3451 |
| 3452 /// The URL for the page that hosts this media. |
3345 core.String url; | 3453 core.String url; |
3346 /** The duration in milliseconds of this video. */ | 3454 |
| 3455 /// The duration in milliseconds of this video. |
3347 core.String videoDuration; | 3456 core.String videoDuration; |
3348 /** | 3457 |
3349 * The encoding status of this video. Possible values are: | 3458 /// The encoding status of this video. Possible values are: |
3350 * - "UPLOADING" - Not all the video bytes have been received. | 3459 /// - "UPLOADING" - Not all the video bytes have been received. |
3351 * - "PENDING" - Video not yet processed. | 3460 /// - "PENDING" - Video not yet processed. |
3352 * - "FAILED" - Video processing failed. | 3461 /// - "FAILED" - Video processing failed. |
3353 * - "READY" - A single video stream is playable. | 3462 /// - "READY" - A single video stream is playable. |
3354 * - "FINAL" - All video streams are playable. | 3463 /// - "FINAL" - All video streams are playable. |
3355 */ | |
3356 core.String videoStatus; | 3464 core.String videoStatus; |
3357 /** The width in pixels of the original image. */ | 3465 |
| 3466 /// The width in pixels of the original image. |
3358 core.int width; | 3467 core.int width; |
3359 | 3468 |
3360 Media(); | 3469 Media(); |
3361 | 3470 |
3362 Media.fromJson(core.Map _json) { | 3471 Media.fromJson(core.Map _json) { |
3363 if (_json.containsKey("author")) { | 3472 if (_json.containsKey("author")) { |
3364 author = new MediaAuthor.fromJson(_json["author"]); | 3473 author = new MediaAuthor.fromJson(_json["author"]); |
3365 } | 3474 } |
3366 if (_json.containsKey("displayName")) { | 3475 if (_json.containsKey("displayName")) { |
3367 displayName = _json["displayName"]; | 3476 displayName = _json["displayName"]; |
(...skipping 19 matching lines...) Expand all Loading... |
3387 if (_json.containsKey("mediaUrl")) { | 3496 if (_json.containsKey("mediaUrl")) { |
3388 mediaUrl = _json["mediaUrl"]; | 3497 mediaUrl = _json["mediaUrl"]; |
3389 } | 3498 } |
3390 if (_json.containsKey("published")) { | 3499 if (_json.containsKey("published")) { |
3391 published = core.DateTime.parse(_json["published"]); | 3500 published = core.DateTime.parse(_json["published"]); |
3392 } | 3501 } |
3393 if (_json.containsKey("sizeBytes")) { | 3502 if (_json.containsKey("sizeBytes")) { |
3394 sizeBytes = _json["sizeBytes"]; | 3503 sizeBytes = _json["sizeBytes"]; |
3395 } | 3504 } |
3396 if (_json.containsKey("streams")) { | 3505 if (_json.containsKey("streams")) { |
3397 streams = _json["streams"].map((value) => new Videostream.fromJson(value))
.toList(); | 3506 streams = _json["streams"] |
| 3507 .map((value) => new Videostream.fromJson(value)) |
| 3508 .toList(); |
3398 } | 3509 } |
3399 if (_json.containsKey("summary")) { | 3510 if (_json.containsKey("summary")) { |
3400 summary = _json["summary"]; | 3511 summary = _json["summary"]; |
3401 } | 3512 } |
3402 if (_json.containsKey("updated")) { | 3513 if (_json.containsKey("updated")) { |
3403 updated = core.DateTime.parse(_json["updated"]); | 3514 updated = core.DateTime.parse(_json["updated"]); |
3404 } | 3515 } |
3405 if (_json.containsKey("url")) { | 3516 if (_json.containsKey("url")) { |
3406 url = _json["url"]; | 3517 url = _json["url"]; |
3407 } | 3518 } |
3408 if (_json.containsKey("videoDuration")) { | 3519 if (_json.containsKey("videoDuration")) { |
3409 videoDuration = _json["videoDuration"]; | 3520 videoDuration = _json["videoDuration"]; |
3410 } | 3521 } |
3411 if (_json.containsKey("videoStatus")) { | 3522 if (_json.containsKey("videoStatus")) { |
3412 videoStatus = _json["videoStatus"]; | 3523 videoStatus = _json["videoStatus"]; |
3413 } | 3524 } |
3414 if (_json.containsKey("width")) { | 3525 if (_json.containsKey("width")) { |
3415 width = _json["width"]; | 3526 width = _json["width"]; |
3416 } | 3527 } |
3417 } | 3528 } |
3418 | 3529 |
3419 core.Map<core.String, core.Object> toJson() { | 3530 core.Map<core.String, core.Object> toJson() { |
3420 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3531 final core.Map<core.String, core.Object> _json = |
| 3532 new core.Map<core.String, core.Object>(); |
3421 if (author != null) { | 3533 if (author != null) { |
3422 _json["author"] = (author).toJson(); | 3534 _json["author"] = (author).toJson(); |
3423 } | 3535 } |
3424 if (displayName != null) { | 3536 if (displayName != null) { |
3425 _json["displayName"] = displayName; | 3537 _json["displayName"] = displayName; |
3426 } | 3538 } |
3427 if (etag != null) { | 3539 if (etag != null) { |
3428 _json["etag"] = etag; | 3540 _json["etag"] = etag; |
3429 } | 3541 } |
3430 if (exif != null) { | 3542 if (exif != null) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3470 _json["videoStatus"] = videoStatus; | 3582 _json["videoStatus"] = videoStatus; |
3471 } | 3583 } |
3472 if (width != null) { | 3584 if (width != null) { |
3473 _json["width"] = width; | 3585 _json["width"] = width; |
3474 } | 3586 } |
3475 return _json; | 3587 return _json; |
3476 } | 3588 } |
3477 } | 3589 } |
3478 | 3590 |
3479 class PeopleFeed { | 3591 class PeopleFeed { |
3480 /** ETag of this response for caching purposes. */ | 3592 /// ETag of this response for caching purposes. |
3481 core.String etag; | 3593 core.String etag; |
3482 /** | 3594 |
3483 * The people in this page of results. Each item includes the id, displayName, | 3595 /// The people in this page of results. Each item includes the id, |
3484 * image, and url for the person. To retrieve additional profile data, see the | 3596 /// displayName, image, and url for the person. To retrieve additional |
3485 * people.get method. | 3597 /// profile data, see the people.get method. |
3486 */ | |
3487 core.List<Person> items; | 3598 core.List<Person> items; |
3488 /** | 3599 |
3489 * Identifies this resource as a collection of people. Value: | 3600 /// Identifies this resource as a collection of people. Value: |
3490 * "plus#peopleFeed". | 3601 /// "plus#peopleFeed". |
3491 */ | |
3492 core.String kind; | 3602 core.String kind; |
3493 /** | 3603 |
3494 * The continuation token, which is used to page through large result sets. | 3604 /// The continuation token, which is used to page through large result sets. |
3495 * Provide this value in a subsequent request to return the next page of | 3605 /// Provide this value in a subsequent request to return the next page of |
3496 * results. | 3606 /// results. |
3497 */ | |
3498 core.String nextPageToken; | 3607 core.String nextPageToken; |
3499 /** Link to this resource. */ | 3608 |
| 3609 /// Link to this resource. |
3500 core.String selfLink; | 3610 core.String selfLink; |
3501 /** The title of this collection of people. */ | 3611 |
| 3612 /// The title of this collection of people. |
3502 core.String title; | 3613 core.String title; |
3503 /** | 3614 |
3504 * The total number of people available in this list. The number of people in | 3615 /// The total number of people available in this list. The number of people |
3505 * a response might be smaller due to paging. This might not be set for all | 3616 /// in a response might be smaller due to paging. This might not be set for |
3506 * collections. | 3617 /// all collections. |
3507 */ | |
3508 core.int totalItems; | 3618 core.int totalItems; |
3509 | 3619 |
3510 PeopleFeed(); | 3620 PeopleFeed(); |
3511 | 3621 |
3512 PeopleFeed.fromJson(core.Map _json) { | 3622 PeopleFeed.fromJson(core.Map _json) { |
3513 if (_json.containsKey("etag")) { | 3623 if (_json.containsKey("etag")) { |
3514 etag = _json["etag"]; | 3624 etag = _json["etag"]; |
3515 } | 3625 } |
3516 if (_json.containsKey("items")) { | 3626 if (_json.containsKey("items")) { |
3517 items = _json["items"].map((value) => new Person.fromJson(value)).toList()
; | 3627 items = |
| 3628 _json["items"].map((value) => new Person.fromJson(value)).toList(); |
3518 } | 3629 } |
3519 if (_json.containsKey("kind")) { | 3630 if (_json.containsKey("kind")) { |
3520 kind = _json["kind"]; | 3631 kind = _json["kind"]; |
3521 } | 3632 } |
3522 if (_json.containsKey("nextPageToken")) { | 3633 if (_json.containsKey("nextPageToken")) { |
3523 nextPageToken = _json["nextPageToken"]; | 3634 nextPageToken = _json["nextPageToken"]; |
3524 } | 3635 } |
3525 if (_json.containsKey("selfLink")) { | 3636 if (_json.containsKey("selfLink")) { |
3526 selfLink = _json["selfLink"]; | 3637 selfLink = _json["selfLink"]; |
3527 } | 3638 } |
3528 if (_json.containsKey("title")) { | 3639 if (_json.containsKey("title")) { |
3529 title = _json["title"]; | 3640 title = _json["title"]; |
3530 } | 3641 } |
3531 if (_json.containsKey("totalItems")) { | 3642 if (_json.containsKey("totalItems")) { |
3532 totalItems = _json["totalItems"]; | 3643 totalItems = _json["totalItems"]; |
3533 } | 3644 } |
3534 } | 3645 } |
3535 | 3646 |
3536 core.Map<core.String, core.Object> toJson() { | 3647 core.Map<core.String, core.Object> toJson() { |
3537 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3648 final core.Map<core.String, core.Object> _json = |
| 3649 new core.Map<core.String, core.Object>(); |
3538 if (etag != null) { | 3650 if (etag != null) { |
3539 _json["etag"] = etag; | 3651 _json["etag"] = etag; |
3540 } | 3652 } |
3541 if (items != null) { | 3653 if (items != null) { |
3542 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3654 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3543 } | 3655 } |
3544 if (kind != null) { | 3656 if (kind != null) { |
3545 _json["kind"] = kind; | 3657 _json["kind"] = kind; |
3546 } | 3658 } |
3547 if (nextPageToken != null) { | 3659 if (nextPageToken != null) { |
3548 _json["nextPageToken"] = nextPageToken; | 3660 _json["nextPageToken"] = nextPageToken; |
3549 } | 3661 } |
3550 if (selfLink != null) { | 3662 if (selfLink != null) { |
3551 _json["selfLink"] = selfLink; | 3663 _json["selfLink"] = selfLink; |
3552 } | 3664 } |
3553 if (title != null) { | 3665 if (title != null) { |
3554 _json["title"] = title; | 3666 _json["title"] = title; |
3555 } | 3667 } |
3556 if (totalItems != null) { | 3668 if (totalItems != null) { |
3557 _json["totalItems"] = totalItems; | 3669 _json["totalItems"] = totalItems; |
3558 } | 3670 } |
3559 return _json; | 3671 return _json; |
3560 } | 3672 } |
3561 } | 3673 } |
3562 | 3674 |
3563 /** Extra information about the cover photo. */ | 3675 /// Extra information about the cover photo. |
3564 class PersonCoverCoverInfo { | 3676 class PersonCoverCoverInfo { |
3565 /** | 3677 /// The difference between the left position of the cover image and the |
3566 * The difference between the left position of the cover image and the actual | 3678 /// actual displayed cover image. Only valid for banner layout. |
3567 * displayed cover image. Only valid for banner layout. | |
3568 */ | |
3569 core.int leftImageOffset; | 3679 core.int leftImageOffset; |
3570 /** | 3680 |
3571 * The difference between the top position of the cover image and the actual | 3681 /// The difference between the top position of the cover image and the actual |
3572 * displayed cover image. Only valid for banner layout. | 3682 /// displayed cover image. Only valid for banner layout. |
3573 */ | |
3574 core.int topImageOffset; | 3683 core.int topImageOffset; |
3575 | 3684 |
3576 PersonCoverCoverInfo(); | 3685 PersonCoverCoverInfo(); |
3577 | 3686 |
3578 PersonCoverCoverInfo.fromJson(core.Map _json) { | 3687 PersonCoverCoverInfo.fromJson(core.Map _json) { |
3579 if (_json.containsKey("leftImageOffset")) { | 3688 if (_json.containsKey("leftImageOffset")) { |
3580 leftImageOffset = _json["leftImageOffset"]; | 3689 leftImageOffset = _json["leftImageOffset"]; |
3581 } | 3690 } |
3582 if (_json.containsKey("topImageOffset")) { | 3691 if (_json.containsKey("topImageOffset")) { |
3583 topImageOffset = _json["topImageOffset"]; | 3692 topImageOffset = _json["topImageOffset"]; |
3584 } | 3693 } |
3585 } | 3694 } |
3586 | 3695 |
3587 core.Map<core.String, core.Object> toJson() { | 3696 core.Map<core.String, core.Object> toJson() { |
3588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3697 final core.Map<core.String, core.Object> _json = |
| 3698 new core.Map<core.String, core.Object>(); |
3589 if (leftImageOffset != null) { | 3699 if (leftImageOffset != null) { |
3590 _json["leftImageOffset"] = leftImageOffset; | 3700 _json["leftImageOffset"] = leftImageOffset; |
3591 } | 3701 } |
3592 if (topImageOffset != null) { | 3702 if (topImageOffset != null) { |
3593 _json["topImageOffset"] = topImageOffset; | 3703 _json["topImageOffset"] = topImageOffset; |
3594 } | 3704 } |
3595 return _json; | 3705 return _json; |
3596 } | 3706 } |
3597 } | 3707 } |
3598 | 3708 |
3599 /** The person's primary cover image. */ | 3709 /// The person's primary cover image. |
3600 class PersonCoverCoverPhoto { | 3710 class PersonCoverCoverPhoto { |
3601 /** The height of the image. */ | 3711 /// The height of the image. |
3602 core.int height; | 3712 core.int height; |
3603 /** The URL of the image. */ | 3713 |
| 3714 /// The URL of the image. |
3604 core.String url; | 3715 core.String url; |
3605 /** The width of the image. */ | 3716 |
| 3717 /// The width of the image. |
3606 core.int width; | 3718 core.int width; |
3607 | 3719 |
3608 PersonCoverCoverPhoto(); | 3720 PersonCoverCoverPhoto(); |
3609 | 3721 |
3610 PersonCoverCoverPhoto.fromJson(core.Map _json) { | 3722 PersonCoverCoverPhoto.fromJson(core.Map _json) { |
3611 if (_json.containsKey("height")) { | 3723 if (_json.containsKey("height")) { |
3612 height = _json["height"]; | 3724 height = _json["height"]; |
3613 } | 3725 } |
3614 if (_json.containsKey("url")) { | 3726 if (_json.containsKey("url")) { |
3615 url = _json["url"]; | 3727 url = _json["url"]; |
3616 } | 3728 } |
3617 if (_json.containsKey("width")) { | 3729 if (_json.containsKey("width")) { |
3618 width = _json["width"]; | 3730 width = _json["width"]; |
3619 } | 3731 } |
3620 } | 3732 } |
3621 | 3733 |
3622 core.Map<core.String, core.Object> toJson() { | 3734 core.Map<core.String, core.Object> toJson() { |
3623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3735 final core.Map<core.String, core.Object> _json = |
| 3736 new core.Map<core.String, core.Object>(); |
3624 if (height != null) { | 3737 if (height != null) { |
3625 _json["height"] = height; | 3738 _json["height"] = height; |
3626 } | 3739 } |
3627 if (url != null) { | 3740 if (url != null) { |
3628 _json["url"] = url; | 3741 _json["url"] = url; |
3629 } | 3742 } |
3630 if (width != null) { | 3743 if (width != null) { |
3631 _json["width"] = width; | 3744 _json["width"] = width; |
3632 } | 3745 } |
3633 return _json; | 3746 return _json; |
3634 } | 3747 } |
3635 } | 3748 } |
3636 | 3749 |
3637 /** The cover photo content. */ | 3750 /// The cover photo content. |
3638 class PersonCover { | 3751 class PersonCover { |
3639 /** Extra information about the cover photo. */ | 3752 /// Extra information about the cover photo. |
3640 PersonCoverCoverInfo coverInfo; | 3753 PersonCoverCoverInfo coverInfo; |
3641 /** The person's primary cover image. */ | 3754 |
| 3755 /// The person's primary cover image. |
3642 PersonCoverCoverPhoto coverPhoto; | 3756 PersonCoverCoverPhoto coverPhoto; |
3643 /** | 3757 |
3644 * The layout of the cover art. Possible values include, but are not limited | 3758 /// The layout of the cover art. Possible values include, but are not limited |
3645 * to, the following values: | 3759 /// to, the following values: |
3646 * - "banner" - One large image banner. | 3760 /// - "banner" - One large image banner. |
3647 */ | |
3648 core.String layout; | 3761 core.String layout; |
3649 | 3762 |
3650 PersonCover(); | 3763 PersonCover(); |
3651 | 3764 |
3652 PersonCover.fromJson(core.Map _json) { | 3765 PersonCover.fromJson(core.Map _json) { |
3653 if (_json.containsKey("coverInfo")) { | 3766 if (_json.containsKey("coverInfo")) { |
3654 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); | 3767 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); |
3655 } | 3768 } |
3656 if (_json.containsKey("coverPhoto")) { | 3769 if (_json.containsKey("coverPhoto")) { |
3657 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); | 3770 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); |
3658 } | 3771 } |
3659 if (_json.containsKey("layout")) { | 3772 if (_json.containsKey("layout")) { |
3660 layout = _json["layout"]; | 3773 layout = _json["layout"]; |
3661 } | 3774 } |
3662 } | 3775 } |
3663 | 3776 |
3664 core.Map<core.String, core.Object> toJson() { | 3777 core.Map<core.String, core.Object> toJson() { |
3665 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3778 final core.Map<core.String, core.Object> _json = |
| 3779 new core.Map<core.String, core.Object>(); |
3666 if (coverInfo != null) { | 3780 if (coverInfo != null) { |
3667 _json["coverInfo"] = (coverInfo).toJson(); | 3781 _json["coverInfo"] = (coverInfo).toJson(); |
3668 } | 3782 } |
3669 if (coverPhoto != null) { | 3783 if (coverPhoto != null) { |
3670 _json["coverPhoto"] = (coverPhoto).toJson(); | 3784 _json["coverPhoto"] = (coverPhoto).toJson(); |
3671 } | 3785 } |
3672 if (layout != null) { | 3786 if (layout != null) { |
3673 _json["layout"] = layout; | 3787 _json["layout"] = layout; |
3674 } | 3788 } |
3675 return _json; | 3789 return _json; |
3676 } | 3790 } |
3677 } | 3791 } |
3678 | 3792 |
3679 class PersonEmails { | 3793 class PersonEmails { |
3680 /** | 3794 /// The type of address. Possible values include, but are not limited to, the |
3681 * The type of address. Possible values include, but are not limited to, the | 3795 /// following values: |
3682 * following values: | 3796 /// - "account" - Google account email address. |
3683 * - "account" - Google account email address. | 3797 /// - "home" - Home email address. |
3684 * - "home" - Home email address. | 3798 /// - "work" - Work email address. |
3685 * - "work" - Work email address. | 3799 /// - "other" - Other. |
3686 * - "other" - Other. | |
3687 */ | |
3688 core.String type; | 3800 core.String type; |
3689 /** The email address. */ | 3801 |
| 3802 /// The email address. |
3690 core.String value; | 3803 core.String value; |
3691 | 3804 |
3692 PersonEmails(); | 3805 PersonEmails(); |
3693 | 3806 |
3694 PersonEmails.fromJson(core.Map _json) { | 3807 PersonEmails.fromJson(core.Map _json) { |
3695 if (_json.containsKey("type")) { | 3808 if (_json.containsKey("type")) { |
3696 type = _json["type"]; | 3809 type = _json["type"]; |
3697 } | 3810 } |
3698 if (_json.containsKey("value")) { | 3811 if (_json.containsKey("value")) { |
3699 value = _json["value"]; | 3812 value = _json["value"]; |
3700 } | 3813 } |
3701 } | 3814 } |
3702 | 3815 |
3703 core.Map<core.String, core.Object> toJson() { | 3816 core.Map<core.String, core.Object> toJson() { |
3704 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3817 final core.Map<core.String, core.Object> _json = |
| 3818 new core.Map<core.String, core.Object>(); |
3705 if (type != null) { | 3819 if (type != null) { |
3706 _json["type"] = type; | 3820 _json["type"] = type; |
3707 } | 3821 } |
3708 if (value != null) { | 3822 if (value != null) { |
3709 _json["value"] = value; | 3823 _json["value"] = value; |
3710 } | 3824 } |
3711 return _json; | 3825 return _json; |
3712 } | 3826 } |
3713 } | 3827 } |
3714 | 3828 |
3715 /** The representation of the person's profile photo. */ | 3829 /// The representation of the person's profile photo. |
3716 class PersonImage { | 3830 class PersonImage { |
3717 /** Whether the person's profile photo is the default one */ | 3831 /// Whether the person's profile photo is the default one |
3718 core.bool isDefault; | 3832 core.bool isDefault; |
3719 /** | 3833 |
3720 * The URL of the person's profile photo. To resize the image and crop it to a | 3834 /// The URL of the person's profile photo. To resize the image and crop it to |
3721 * square, append the query string ?sz=x, where x is the dimension in pixels | 3835 /// a square, append the query string ?sz=x, where x is the dimension in |
3722 * of each side. | 3836 /// pixels of each side. |
3723 */ | |
3724 core.String url; | 3837 core.String url; |
3725 | 3838 |
3726 PersonImage(); | 3839 PersonImage(); |
3727 | 3840 |
3728 PersonImage.fromJson(core.Map _json) { | 3841 PersonImage.fromJson(core.Map _json) { |
3729 if (_json.containsKey("isDefault")) { | 3842 if (_json.containsKey("isDefault")) { |
3730 isDefault = _json["isDefault"]; | 3843 isDefault = _json["isDefault"]; |
3731 } | 3844 } |
3732 if (_json.containsKey("url")) { | 3845 if (_json.containsKey("url")) { |
3733 url = _json["url"]; | 3846 url = _json["url"]; |
3734 } | 3847 } |
3735 } | 3848 } |
3736 | 3849 |
3737 core.Map<core.String, core.Object> toJson() { | 3850 core.Map<core.String, core.Object> toJson() { |
3738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3851 final core.Map<core.String, core.Object> _json = |
| 3852 new core.Map<core.String, core.Object>(); |
3739 if (isDefault != null) { | 3853 if (isDefault != null) { |
3740 _json["isDefault"] = isDefault; | 3854 _json["isDefault"] = isDefault; |
3741 } | 3855 } |
3742 if (url != null) { | 3856 if (url != null) { |
3743 _json["url"] = url; | 3857 _json["url"] = url; |
3744 } | 3858 } |
3745 return _json; | 3859 return _json; |
3746 } | 3860 } |
3747 } | 3861 } |
3748 | 3862 |
3749 /** | 3863 /// An object representation of the individual components of a person's name. |
3750 * An object representation of the individual components of a person's name. | |
3751 */ | |
3752 class PersonName { | 3864 class PersonName { |
3753 /** The family name (last name) of this person. */ | 3865 /// The family name (last name) of this person. |
3754 core.String familyName; | 3866 core.String familyName; |
3755 /** The full name of this person, including middle names, suffixes, etc. */ | 3867 |
| 3868 /// The full name of this person, including middle names, suffixes, etc. |
3756 core.String formatted; | 3869 core.String formatted; |
3757 /** The given name (first name) of this person. */ | 3870 |
| 3871 /// The given name (first name) of this person. |
3758 core.String givenName; | 3872 core.String givenName; |
3759 /** The honorific prefixes (such as "Dr." or "Mrs.") for this person. */ | 3873 |
| 3874 /// The honorific prefixes (such as "Dr." or "Mrs.") for this person. |
3760 core.String honorificPrefix; | 3875 core.String honorificPrefix; |
3761 /** The honorific suffixes (such as "Jr.") for this person. */ | 3876 |
| 3877 /// The honorific suffixes (such as "Jr.") for this person. |
3762 core.String honorificSuffix; | 3878 core.String honorificSuffix; |
3763 /** The middle name of this person. */ | 3879 |
| 3880 /// The middle name of this person. |
3764 core.String middleName; | 3881 core.String middleName; |
3765 | 3882 |
3766 PersonName(); | 3883 PersonName(); |
3767 | 3884 |
3768 PersonName.fromJson(core.Map _json) { | 3885 PersonName.fromJson(core.Map _json) { |
3769 if (_json.containsKey("familyName")) { | 3886 if (_json.containsKey("familyName")) { |
3770 familyName = _json["familyName"]; | 3887 familyName = _json["familyName"]; |
3771 } | 3888 } |
3772 if (_json.containsKey("formatted")) { | 3889 if (_json.containsKey("formatted")) { |
3773 formatted = _json["formatted"]; | 3890 formatted = _json["formatted"]; |
3774 } | 3891 } |
3775 if (_json.containsKey("givenName")) { | 3892 if (_json.containsKey("givenName")) { |
3776 givenName = _json["givenName"]; | 3893 givenName = _json["givenName"]; |
3777 } | 3894 } |
3778 if (_json.containsKey("honorificPrefix")) { | 3895 if (_json.containsKey("honorificPrefix")) { |
3779 honorificPrefix = _json["honorificPrefix"]; | 3896 honorificPrefix = _json["honorificPrefix"]; |
3780 } | 3897 } |
3781 if (_json.containsKey("honorificSuffix")) { | 3898 if (_json.containsKey("honorificSuffix")) { |
3782 honorificSuffix = _json["honorificSuffix"]; | 3899 honorificSuffix = _json["honorificSuffix"]; |
3783 } | 3900 } |
3784 if (_json.containsKey("middleName")) { | 3901 if (_json.containsKey("middleName")) { |
3785 middleName = _json["middleName"]; | 3902 middleName = _json["middleName"]; |
3786 } | 3903 } |
3787 } | 3904 } |
3788 | 3905 |
3789 core.Map<core.String, core.Object> toJson() { | 3906 core.Map<core.String, core.Object> toJson() { |
3790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3907 final core.Map<core.String, core.Object> _json = |
| 3908 new core.Map<core.String, core.Object>(); |
3791 if (familyName != null) { | 3909 if (familyName != null) { |
3792 _json["familyName"] = familyName; | 3910 _json["familyName"] = familyName; |
3793 } | 3911 } |
3794 if (formatted != null) { | 3912 if (formatted != null) { |
3795 _json["formatted"] = formatted; | 3913 _json["formatted"] = formatted; |
3796 } | 3914 } |
3797 if (givenName != null) { | 3915 if (givenName != null) { |
3798 _json["givenName"] = givenName; | 3916 _json["givenName"] = givenName; |
3799 } | 3917 } |
3800 if (honorificPrefix != null) { | 3918 if (honorificPrefix != null) { |
3801 _json["honorificPrefix"] = honorificPrefix; | 3919 _json["honorificPrefix"] = honorificPrefix; |
3802 } | 3920 } |
3803 if (honorificSuffix != null) { | 3921 if (honorificSuffix != null) { |
3804 _json["honorificSuffix"] = honorificSuffix; | 3922 _json["honorificSuffix"] = honorificSuffix; |
3805 } | 3923 } |
3806 if (middleName != null) { | 3924 if (middleName != null) { |
3807 _json["middleName"] = middleName; | 3925 _json["middleName"] = middleName; |
3808 } | 3926 } |
3809 return _json; | 3927 return _json; |
3810 } | 3928 } |
3811 } | 3929 } |
3812 | 3930 |
3813 class PersonOrganizations { | 3931 class PersonOrganizations { |
3814 /** The department within the organization. Deprecated. */ | 3932 /// The department within the organization. Deprecated. |
3815 core.String department; | 3933 core.String department; |
3816 /** | 3934 |
3817 * A short description of the person's role in this organization. Deprecated. | 3935 /// A short description of the person's role in this organization. |
3818 */ | 3936 /// Deprecated. |
3819 core.String description; | 3937 core.String description; |
3820 /** The date that the person left this organization. */ | 3938 |
| 3939 /// The date that the person left this organization. |
3821 core.String endDate; | 3940 core.String endDate; |
3822 /** The location of this organization. Deprecated. */ | 3941 |
| 3942 /// The location of this organization. Deprecated. |
3823 core.String location; | 3943 core.String location; |
3824 /** The name of the organization. */ | 3944 |
| 3945 /// The name of the organization. |
3825 core.String name; | 3946 core.String name; |
3826 /** | 3947 |
3827 * If "true", indicates this organization is the person's primary one, which | 3948 /// If "true", indicates this organization is the person's primary one, which |
3828 * is typically interpreted as the current one. | 3949 /// is typically interpreted as the current one. |
3829 */ | |
3830 core.bool primary; | 3950 core.bool primary; |
3831 /** The date that the person joined this organization. */ | 3951 |
| 3952 /// The date that the person joined this organization. |
3832 core.String startDate; | 3953 core.String startDate; |
3833 /** The person's job title or role within the organization. */ | 3954 |
| 3955 /// The person's job title or role within the organization. |
3834 core.String title; | 3956 core.String title; |
3835 /** | 3957 |
3836 * The type of organization. Possible values include, but are not limited to, | 3958 /// The type of organization. Possible values include, but are not limited |
3837 * the following values: | 3959 /// to, the following values: |
3838 * - "work" - Work. | 3960 /// - "work" - Work. |
3839 * - "school" - School. | 3961 /// - "school" - School. |
3840 */ | |
3841 core.String type; | 3962 core.String type; |
3842 | 3963 |
3843 PersonOrganizations(); | 3964 PersonOrganizations(); |
3844 | 3965 |
3845 PersonOrganizations.fromJson(core.Map _json) { | 3966 PersonOrganizations.fromJson(core.Map _json) { |
3846 if (_json.containsKey("department")) { | 3967 if (_json.containsKey("department")) { |
3847 department = _json["department"]; | 3968 department = _json["department"]; |
3848 } | 3969 } |
3849 if (_json.containsKey("description")) { | 3970 if (_json.containsKey("description")) { |
3850 description = _json["description"]; | 3971 description = _json["description"]; |
(...skipping 15 matching lines...) Expand all Loading... |
3866 } | 3987 } |
3867 if (_json.containsKey("title")) { | 3988 if (_json.containsKey("title")) { |
3868 title = _json["title"]; | 3989 title = _json["title"]; |
3869 } | 3990 } |
3870 if (_json.containsKey("type")) { | 3991 if (_json.containsKey("type")) { |
3871 type = _json["type"]; | 3992 type = _json["type"]; |
3872 } | 3993 } |
3873 } | 3994 } |
3874 | 3995 |
3875 core.Map<core.String, core.Object> toJson() { | 3996 core.Map<core.String, core.Object> toJson() { |
3876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3997 final core.Map<core.String, core.Object> _json = |
| 3998 new core.Map<core.String, core.Object>(); |
3877 if (department != null) { | 3999 if (department != null) { |
3878 _json["department"] = department; | 4000 _json["department"] = department; |
3879 } | 4001 } |
3880 if (description != null) { | 4002 if (description != null) { |
3881 _json["description"] = description; | 4003 _json["description"] = description; |
3882 } | 4004 } |
3883 if (endDate != null) { | 4005 if (endDate != null) { |
3884 _json["endDate"] = endDate; | 4006 _json["endDate"] = endDate; |
3885 } | 4007 } |
3886 if (location != null) { | 4008 if (location != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
3899 _json["title"] = title; | 4021 _json["title"] = title; |
3900 } | 4022 } |
3901 if (type != null) { | 4023 if (type != null) { |
3902 _json["type"] = type; | 4024 _json["type"] = type; |
3903 } | 4025 } |
3904 return _json; | 4026 return _json; |
3905 } | 4027 } |
3906 } | 4028 } |
3907 | 4029 |
3908 class PersonPlacesLived { | 4030 class PersonPlacesLived { |
3909 /** If "true", this place of residence is this person's primary residence. */ | 4031 /// If "true", this place of residence is this person's primary residence. |
3910 core.bool primary; | 4032 core.bool primary; |
3911 /** | 4033 |
3912 * A place where this person has lived. For example: "Seattle, WA", "Near | 4034 /// A place where this person has lived. For example: "Seattle, WA", "Near |
3913 * Toronto". | 4035 /// Toronto". |
3914 */ | |
3915 core.String value; | 4036 core.String value; |
3916 | 4037 |
3917 PersonPlacesLived(); | 4038 PersonPlacesLived(); |
3918 | 4039 |
3919 PersonPlacesLived.fromJson(core.Map _json) { | 4040 PersonPlacesLived.fromJson(core.Map _json) { |
3920 if (_json.containsKey("primary")) { | 4041 if (_json.containsKey("primary")) { |
3921 primary = _json["primary"]; | 4042 primary = _json["primary"]; |
3922 } | 4043 } |
3923 if (_json.containsKey("value")) { | 4044 if (_json.containsKey("value")) { |
3924 value = _json["value"]; | 4045 value = _json["value"]; |
3925 } | 4046 } |
3926 } | 4047 } |
3927 | 4048 |
3928 core.Map<core.String, core.Object> toJson() { | 4049 core.Map<core.String, core.Object> toJson() { |
3929 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4050 final core.Map<core.String, core.Object> _json = |
| 4051 new core.Map<core.String, core.Object>(); |
3930 if (primary != null) { | 4052 if (primary != null) { |
3931 _json["primary"] = primary; | 4053 _json["primary"] = primary; |
3932 } | 4054 } |
3933 if (value != null) { | 4055 if (value != null) { |
3934 _json["value"] = value; | 4056 _json["value"] = value; |
3935 } | 4057 } |
3936 return _json; | 4058 return _json; |
3937 } | 4059 } |
3938 } | 4060 } |
3939 | 4061 |
3940 class PersonUrls { | 4062 class PersonUrls { |
3941 /** The label of the URL. */ | 4063 /// The label of the URL. |
3942 core.String label; | 4064 core.String label; |
3943 /** | 4065 |
3944 * The type of URL. Possible values include, but are not limited to, the | 4066 /// The type of URL. Possible values include, but are not limited to, the |
3945 * following values: | 4067 /// following values: |
3946 * - "otherProfile" - URL for another profile. | 4068 /// - "otherProfile" - URL for another profile. |
3947 * - "contributor" - URL to a site for which this person is a contributor. | 4069 /// - "contributor" - URL to a site for which this person is a contributor. |
3948 * - "website" - URL for this Google+ Page's primary website. | 4070 /// - "website" - URL for this Google+ Page's primary website. |
3949 * - "other" - Other URL. | 4071 /// - "other" - Other URL. |
3950 */ | |
3951 core.String type; | 4072 core.String type; |
3952 /** The URL value. */ | 4073 |
| 4074 /// The URL value. |
3953 core.String value; | 4075 core.String value; |
3954 | 4076 |
3955 PersonUrls(); | 4077 PersonUrls(); |
3956 | 4078 |
3957 PersonUrls.fromJson(core.Map _json) { | 4079 PersonUrls.fromJson(core.Map _json) { |
3958 if (_json.containsKey("label")) { | 4080 if (_json.containsKey("label")) { |
3959 label = _json["label"]; | 4081 label = _json["label"]; |
3960 } | 4082 } |
3961 if (_json.containsKey("type")) { | 4083 if (_json.containsKey("type")) { |
3962 type = _json["type"]; | 4084 type = _json["type"]; |
3963 } | 4085 } |
3964 if (_json.containsKey("value")) { | 4086 if (_json.containsKey("value")) { |
3965 value = _json["value"]; | 4087 value = _json["value"]; |
3966 } | 4088 } |
3967 } | 4089 } |
3968 | 4090 |
3969 core.Map<core.String, core.Object> toJson() { | 4091 core.Map<core.String, core.Object> toJson() { |
3970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4092 final core.Map<core.String, core.Object> _json = |
| 4093 new core.Map<core.String, core.Object>(); |
3971 if (label != null) { | 4094 if (label != null) { |
3972 _json["label"] = label; | 4095 _json["label"] = label; |
3973 } | 4096 } |
3974 if (type != null) { | 4097 if (type != null) { |
3975 _json["type"] = type; | 4098 _json["type"] = type; |
3976 } | 4099 } |
3977 if (value != null) { | 4100 if (value != null) { |
3978 _json["value"] = value; | 4101 _json["value"] = value; |
3979 } | 4102 } |
3980 return _json; | 4103 return _json; |
3981 } | 4104 } |
3982 } | 4105 } |
3983 | 4106 |
3984 class Person { | 4107 class Person { |
3985 /** A short biography for this person. */ | 4108 /// A short biography for this person. |
3986 core.String aboutMe; | 4109 core.String aboutMe; |
3987 /** The person's date of birth, represented as YYYY-MM-DD. */ | 4110 |
| 4111 /// The person's date of birth, represented as YYYY-MM-DD. |
3988 core.String birthday; | 4112 core.String birthday; |
3989 /** The "bragging rights" line of this person. */ | 4113 |
| 4114 /// The "bragging rights" line of this person. |
3990 core.String braggingRights; | 4115 core.String braggingRights; |
3991 /** | 4116 |
3992 * For followers who are visible, the number of people who have added this | 4117 /// For followers who are visible, the number of people who have added this |
3993 * person or page to a circle. | 4118 /// person or page to a circle. |
3994 */ | |
3995 core.int circledByCount; | 4119 core.int circledByCount; |
3996 /** The cover photo content. */ | 4120 |
| 4121 /// The cover photo content. |
3997 PersonCover cover; | 4122 PersonCover cover; |
3998 /** (this field is not currently used) */ | 4123 |
| 4124 /// (this field is not currently used) |
3999 core.String currentLocation; | 4125 core.String currentLocation; |
4000 /** The name of this person, which is suitable for display. */ | 4126 |
| 4127 /// The name of this person, which is suitable for display. |
4001 core.String displayName; | 4128 core.String displayName; |
4002 /** | 4129 |
4003 * The hosted domain name for the user's Google Apps account. For instance, | 4130 /// The hosted domain name for the user's Google Apps account. For instance, |
4004 * example.com. The plus.profile.emails.read or email scope is needed to get | 4131 /// example.com. The plus.profile.emails.read or email scope is needed to get |
4005 * this domain name. | 4132 /// this domain name. |
4006 */ | |
4007 core.String domain; | 4133 core.String domain; |
4008 /** | 4134 |
4009 * A list of email addresses that this person has, including their Google | 4135 /// A list of email addresses that this person has, including their Google |
4010 * account email address, and the public verified email addresses on their | 4136 /// account email address, and the public verified email addresses on their |
4011 * Google+ profile. The plus.profile.emails.read scope is needed to retrieve | 4137 /// Google+ profile. The plus.profile.emails.read scope is needed to retrieve |
4012 * these email addresses, or the email scope can be used to retrieve just the | 4138 /// these email addresses, or the email scope can be used to retrieve just |
4013 * Google account email address. | 4139 /// the Google account email address. |
4014 */ | |
4015 core.List<PersonEmails> emails; | 4140 core.List<PersonEmails> emails; |
4016 /** ETag of this response for caching purposes. */ | 4141 |
| 4142 /// ETag of this response for caching purposes. |
4017 core.String etag; | 4143 core.String etag; |
4018 /** | 4144 |
4019 * The person's gender. Possible values include, but are not limited to, the | 4145 /// The person's gender. Possible values include, but are not limited to, the |
4020 * following values: | 4146 /// following values: |
4021 * - "male" - Male gender. | 4147 /// - "male" - Male gender. |
4022 * - "female" - Female gender. | 4148 /// - "female" - Female gender. |
4023 * - "other" - Other. | 4149 /// - "other" - Other. |
4024 */ | |
4025 core.String gender; | 4150 core.String gender; |
4026 /** The ID of this person. */ | 4151 |
| 4152 /// The ID of this person. |
4027 core.String id; | 4153 core.String id; |
4028 /** The representation of the person's profile photo. */ | 4154 |
| 4155 /// The representation of the person's profile photo. |
4029 PersonImage image; | 4156 PersonImage image; |
4030 /** Whether this user has signed up for Google+. */ | 4157 |
| 4158 /// Whether this user has signed up for Google+. |
4031 core.bool isPlusUser; | 4159 core.bool isPlusUser; |
4032 /** Identifies this resource as a person. Value: "plus#person". */ | 4160 |
| 4161 /// Identifies this resource as a person. Value: "plus#person". |
4033 core.String kind; | 4162 core.String kind; |
4034 /** | 4163 |
4035 * An object representation of the individual components of a person's name. | 4164 /// An object representation of the individual components of a person's name. |
4036 */ | |
4037 PersonName name; | 4165 PersonName name; |
4038 /** The nickname of this person. */ | 4166 |
| 4167 /// The nickname of this person. |
4039 core.String nickname; | 4168 core.String nickname; |
4040 /** | 4169 |
4041 * Type of person within Google+. Possible values include, but are not limited | 4170 /// Type of person within Google+. Possible values include, but are not |
4042 * to, the following values: | 4171 /// limited to, the following values: |
4043 * - "person" - represents an actual person. | 4172 /// - "person" - represents an actual person. |
4044 * - "page" - represents a page. | 4173 /// - "page" - represents a page. |
4045 */ | |
4046 core.String objectType; | 4174 core.String objectType; |
4047 /** The occupation of this person. */ | 4175 |
| 4176 /// The occupation of this person. |
4048 core.String occupation; | 4177 core.String occupation; |
4049 /** | 4178 |
4050 * A list of current or past organizations with which this person is | 4179 /// A list of current or past organizations with which this person is |
4051 * associated. | 4180 /// associated. |
4052 */ | |
4053 core.List<PersonOrganizations> organizations; | 4181 core.List<PersonOrganizations> organizations; |
4054 /** A list of places where this person has lived. */ | 4182 |
| 4183 /// A list of places where this person has lived. |
4055 core.List<PersonPlacesLived> placesLived; | 4184 core.List<PersonPlacesLived> placesLived; |
4056 /** If a Google+ Page, the number of people who have +1'd this page. */ | 4185 |
| 4186 /// If a Google+ Page, the number of people who have +1'd this page. |
4057 core.int plusOneCount; | 4187 core.int plusOneCount; |
4058 /** | 4188 |
4059 * The person's relationship status. Possible values include, but are not | 4189 /// The person's relationship status. Possible values include, but are not |
4060 * limited to, the following values: | 4190 /// limited to, the following values: |
4061 * - "single" - Person is single. | 4191 /// - "single" - Person is single. |
4062 * - "in_a_relationship" - Person is in a relationship. | 4192 /// - "in_a_relationship" - Person is in a relationship. |
4063 * - "engaged" - Person is engaged. | 4193 /// - "engaged" - Person is engaged. |
4064 * - "married" - Person is married. | 4194 /// - "married" - Person is married. |
4065 * - "its_complicated" - The relationship is complicated. | 4195 /// - "its_complicated" - The relationship is complicated. |
4066 * - "open_relationship" - Person is in an open relationship. | 4196 /// - "open_relationship" - Person is in an open relationship. |
4067 * - "widowed" - Person is widowed. | 4197 /// - "widowed" - Person is widowed. |
4068 * - "in_domestic_partnership" - Person is in a domestic partnership. | 4198 /// - "in_domestic_partnership" - Person is in a domestic partnership. |
4069 * - "in_civil_union" - Person is in a civil union. | 4199 /// - "in_civil_union" - Person is in a civil union. |
4070 */ | |
4071 core.String relationshipStatus; | 4200 core.String relationshipStatus; |
4072 /** The person's skills. */ | 4201 |
| 4202 /// The person's skills. |
4073 core.String skills; | 4203 core.String skills; |
4074 /** The brief description (tagline) of this person. */ | 4204 |
| 4205 /// The brief description (tagline) of this person. |
4075 core.String tagline; | 4206 core.String tagline; |
4076 /** The URL of this person's profile. */ | 4207 |
| 4208 /// The URL of this person's profile. |
4077 core.String url; | 4209 core.String url; |
4078 /** A list of URLs for this person. */ | 4210 |
| 4211 /// A list of URLs for this person. |
4079 core.List<PersonUrls> urls; | 4212 core.List<PersonUrls> urls; |
4080 /** Whether the person or Google+ Page has been verified. */ | 4213 |
| 4214 /// Whether the person or Google+ Page has been verified. |
4081 core.bool verified; | 4215 core.bool verified; |
4082 | 4216 |
4083 Person(); | 4217 Person(); |
4084 | 4218 |
4085 Person.fromJson(core.Map _json) { | 4219 Person.fromJson(core.Map _json) { |
4086 if (_json.containsKey("aboutMe")) { | 4220 if (_json.containsKey("aboutMe")) { |
4087 aboutMe = _json["aboutMe"]; | 4221 aboutMe = _json["aboutMe"]; |
4088 } | 4222 } |
4089 if (_json.containsKey("birthday")) { | 4223 if (_json.containsKey("birthday")) { |
4090 birthday = _json["birthday"]; | 4224 birthday = _json["birthday"]; |
(...skipping 10 matching lines...) Expand all Loading... |
4101 if (_json.containsKey("currentLocation")) { | 4235 if (_json.containsKey("currentLocation")) { |
4102 currentLocation = _json["currentLocation"]; | 4236 currentLocation = _json["currentLocation"]; |
4103 } | 4237 } |
4104 if (_json.containsKey("displayName")) { | 4238 if (_json.containsKey("displayName")) { |
4105 displayName = _json["displayName"]; | 4239 displayName = _json["displayName"]; |
4106 } | 4240 } |
4107 if (_json.containsKey("domain")) { | 4241 if (_json.containsKey("domain")) { |
4108 domain = _json["domain"]; | 4242 domain = _json["domain"]; |
4109 } | 4243 } |
4110 if (_json.containsKey("emails")) { | 4244 if (_json.containsKey("emails")) { |
4111 emails = _json["emails"].map((value) => new PersonEmails.fromJson(value)).
toList(); | 4245 emails = _json["emails"] |
| 4246 .map((value) => new PersonEmails.fromJson(value)) |
| 4247 .toList(); |
4112 } | 4248 } |
4113 if (_json.containsKey("etag")) { | 4249 if (_json.containsKey("etag")) { |
4114 etag = _json["etag"]; | 4250 etag = _json["etag"]; |
4115 } | 4251 } |
4116 if (_json.containsKey("gender")) { | 4252 if (_json.containsKey("gender")) { |
4117 gender = _json["gender"]; | 4253 gender = _json["gender"]; |
4118 } | 4254 } |
4119 if (_json.containsKey("id")) { | 4255 if (_json.containsKey("id")) { |
4120 id = _json["id"]; | 4256 id = _json["id"]; |
4121 } | 4257 } |
(...skipping 12 matching lines...) Expand all Loading... |
4134 if (_json.containsKey("nickname")) { | 4270 if (_json.containsKey("nickname")) { |
4135 nickname = _json["nickname"]; | 4271 nickname = _json["nickname"]; |
4136 } | 4272 } |
4137 if (_json.containsKey("objectType")) { | 4273 if (_json.containsKey("objectType")) { |
4138 objectType = _json["objectType"]; | 4274 objectType = _json["objectType"]; |
4139 } | 4275 } |
4140 if (_json.containsKey("occupation")) { | 4276 if (_json.containsKey("occupation")) { |
4141 occupation = _json["occupation"]; | 4277 occupation = _json["occupation"]; |
4142 } | 4278 } |
4143 if (_json.containsKey("organizations")) { | 4279 if (_json.containsKey("organizations")) { |
4144 organizations = _json["organizations"].map((value) => new PersonOrganizati
ons.fromJson(value)).toList(); | 4280 organizations = _json["organizations"] |
| 4281 .map((value) => new PersonOrganizations.fromJson(value)) |
| 4282 .toList(); |
4145 } | 4283 } |
4146 if (_json.containsKey("placesLived")) { | 4284 if (_json.containsKey("placesLived")) { |
4147 placesLived = _json["placesLived"].map((value) => new PersonPlacesLived.fr
omJson(value)).toList(); | 4285 placesLived = _json["placesLived"] |
| 4286 .map((value) => new PersonPlacesLived.fromJson(value)) |
| 4287 .toList(); |
4148 } | 4288 } |
4149 if (_json.containsKey("plusOneCount")) { | 4289 if (_json.containsKey("plusOneCount")) { |
4150 plusOneCount = _json["plusOneCount"]; | 4290 plusOneCount = _json["plusOneCount"]; |
4151 } | 4291 } |
4152 if (_json.containsKey("relationshipStatus")) { | 4292 if (_json.containsKey("relationshipStatus")) { |
4153 relationshipStatus = _json["relationshipStatus"]; | 4293 relationshipStatus = _json["relationshipStatus"]; |
4154 } | 4294 } |
4155 if (_json.containsKey("skills")) { | 4295 if (_json.containsKey("skills")) { |
4156 skills = _json["skills"]; | 4296 skills = _json["skills"]; |
4157 } | 4297 } |
4158 if (_json.containsKey("tagline")) { | 4298 if (_json.containsKey("tagline")) { |
4159 tagline = _json["tagline"]; | 4299 tagline = _json["tagline"]; |
4160 } | 4300 } |
4161 if (_json.containsKey("url")) { | 4301 if (_json.containsKey("url")) { |
4162 url = _json["url"]; | 4302 url = _json["url"]; |
4163 } | 4303 } |
4164 if (_json.containsKey("urls")) { | 4304 if (_json.containsKey("urls")) { |
4165 urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList
(); | 4305 urls = |
| 4306 _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList(); |
4166 } | 4307 } |
4167 if (_json.containsKey("verified")) { | 4308 if (_json.containsKey("verified")) { |
4168 verified = _json["verified"]; | 4309 verified = _json["verified"]; |
4169 } | 4310 } |
4170 } | 4311 } |
4171 | 4312 |
4172 core.Map<core.String, core.Object> toJson() { | 4313 core.Map<core.String, core.Object> toJson() { |
4173 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4314 final core.Map<core.String, core.Object> _json = |
| 4315 new core.Map<core.String, core.Object>(); |
4174 if (aboutMe != null) { | 4316 if (aboutMe != null) { |
4175 _json["aboutMe"] = aboutMe; | 4317 _json["aboutMe"] = aboutMe; |
4176 } | 4318 } |
4177 if (birthday != null) { | 4319 if (birthday != null) { |
4178 _json["birthday"] = birthday; | 4320 _json["birthday"] = birthday; |
4179 } | 4321 } |
4180 if (braggingRights != null) { | 4322 if (braggingRights != null) { |
4181 _json["braggingRights"] = braggingRights; | 4323 _json["braggingRights"] = braggingRights; |
4182 } | 4324 } |
4183 if (circledByCount != null) { | 4325 if (circledByCount != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4222 if (nickname != null) { | 4364 if (nickname != null) { |
4223 _json["nickname"] = nickname; | 4365 _json["nickname"] = nickname; |
4224 } | 4366 } |
4225 if (objectType != null) { | 4367 if (objectType != null) { |
4226 _json["objectType"] = objectType; | 4368 _json["objectType"] = objectType; |
4227 } | 4369 } |
4228 if (occupation != null) { | 4370 if (occupation != null) { |
4229 _json["occupation"] = occupation; | 4371 _json["occupation"] = occupation; |
4230 } | 4372 } |
4231 if (organizations != null) { | 4373 if (organizations != null) { |
4232 _json["organizations"] = organizations.map((value) => (value).toJson()).to
List(); | 4374 _json["organizations"] = |
| 4375 organizations.map((value) => (value).toJson()).toList(); |
4233 } | 4376 } |
4234 if (placesLived != null) { | 4377 if (placesLived != null) { |
4235 _json["placesLived"] = placesLived.map((value) => (value).toJson()).toList
(); | 4378 _json["placesLived"] = |
| 4379 placesLived.map((value) => (value).toJson()).toList(); |
4236 } | 4380 } |
4237 if (plusOneCount != null) { | 4381 if (plusOneCount != null) { |
4238 _json["plusOneCount"] = plusOneCount; | 4382 _json["plusOneCount"] = plusOneCount; |
4239 } | 4383 } |
4240 if (relationshipStatus != null) { | 4384 if (relationshipStatus != null) { |
4241 _json["relationshipStatus"] = relationshipStatus; | 4385 _json["relationshipStatus"] = relationshipStatus; |
4242 } | 4386 } |
4243 if (skills != null) { | 4387 if (skills != null) { |
4244 _json["skills"] = skills; | 4388 _json["skills"] = skills; |
4245 } | 4389 } |
4246 if (tagline != null) { | 4390 if (tagline != null) { |
4247 _json["tagline"] = tagline; | 4391 _json["tagline"] = tagline; |
4248 } | 4392 } |
4249 if (url != null) { | 4393 if (url != null) { |
4250 _json["url"] = url; | 4394 _json["url"] = url; |
4251 } | 4395 } |
4252 if (urls != null) { | 4396 if (urls != null) { |
4253 _json["urls"] = urls.map((value) => (value).toJson()).toList(); | 4397 _json["urls"] = urls.map((value) => (value).toJson()).toList(); |
4254 } | 4398 } |
4255 if (verified != null) { | 4399 if (verified != null) { |
4256 _json["verified"] = verified; | 4400 _json["verified"] = verified; |
4257 } | 4401 } |
4258 return _json; | 4402 return _json; |
4259 } | 4403 } |
4260 } | 4404 } |
4261 | 4405 |
4262 /** The physical address of the place. */ | 4406 /// The physical address of the place. |
4263 class PlaceAddress { | 4407 class PlaceAddress { |
4264 /** The formatted address for display. */ | 4408 /// The formatted address for display. |
4265 core.String formatted; | 4409 core.String formatted; |
4266 | 4410 |
4267 PlaceAddress(); | 4411 PlaceAddress(); |
4268 | 4412 |
4269 PlaceAddress.fromJson(core.Map _json) { | 4413 PlaceAddress.fromJson(core.Map _json) { |
4270 if (_json.containsKey("formatted")) { | 4414 if (_json.containsKey("formatted")) { |
4271 formatted = _json["formatted"]; | 4415 formatted = _json["formatted"]; |
4272 } | 4416 } |
4273 } | 4417 } |
4274 | 4418 |
4275 core.Map<core.String, core.Object> toJson() { | 4419 core.Map<core.String, core.Object> toJson() { |
4276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4420 final core.Map<core.String, core.Object> _json = |
| 4421 new core.Map<core.String, core.Object>(); |
4277 if (formatted != null) { | 4422 if (formatted != null) { |
4278 _json["formatted"] = formatted; | 4423 _json["formatted"] = formatted; |
4279 } | 4424 } |
4280 return _json; | 4425 return _json; |
4281 } | 4426 } |
4282 } | 4427 } |
4283 | 4428 |
4284 /** The position of the place. */ | 4429 /// The position of the place. |
4285 class PlacePosition { | 4430 class PlacePosition { |
4286 /** The latitude of this position. */ | 4431 /// The latitude of this position. |
4287 core.double latitude; | 4432 core.double latitude; |
4288 /** The longitude of this position. */ | 4433 |
| 4434 /// The longitude of this position. |
4289 core.double longitude; | 4435 core.double longitude; |
4290 | 4436 |
4291 PlacePosition(); | 4437 PlacePosition(); |
4292 | 4438 |
4293 PlacePosition.fromJson(core.Map _json) { | 4439 PlacePosition.fromJson(core.Map _json) { |
4294 if (_json.containsKey("latitude")) { | 4440 if (_json.containsKey("latitude")) { |
4295 latitude = _json["latitude"]; | 4441 latitude = _json["latitude"]; |
4296 } | 4442 } |
4297 if (_json.containsKey("longitude")) { | 4443 if (_json.containsKey("longitude")) { |
4298 longitude = _json["longitude"]; | 4444 longitude = _json["longitude"]; |
4299 } | 4445 } |
4300 } | 4446 } |
4301 | 4447 |
4302 core.Map<core.String, core.Object> toJson() { | 4448 core.Map<core.String, core.Object> toJson() { |
4303 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4449 final core.Map<core.String, core.Object> _json = |
| 4450 new core.Map<core.String, core.Object>(); |
4304 if (latitude != null) { | 4451 if (latitude != null) { |
4305 _json["latitude"] = latitude; | 4452 _json["latitude"] = latitude; |
4306 } | 4453 } |
4307 if (longitude != null) { | 4454 if (longitude != null) { |
4308 _json["longitude"] = longitude; | 4455 _json["longitude"] = longitude; |
4309 } | 4456 } |
4310 return _json; | 4457 return _json; |
4311 } | 4458 } |
4312 } | 4459 } |
4313 | 4460 |
4314 class Place { | 4461 class Place { |
4315 /** The physical address of the place. */ | 4462 /// The physical address of the place. |
4316 PlaceAddress address; | 4463 PlaceAddress address; |
4317 /** The display name of the place. */ | 4464 |
| 4465 /// The display name of the place. |
4318 core.String displayName; | 4466 core.String displayName; |
4319 /** The id of the place. */ | 4467 |
| 4468 /// The id of the place. |
4320 core.String id; | 4469 core.String id; |
4321 /** Identifies this resource as a place. Value: "plus#place". */ | 4470 |
| 4471 /// Identifies this resource as a place. Value: "plus#place". |
4322 core.String kind; | 4472 core.String kind; |
4323 /** The position of the place. */ | 4473 |
| 4474 /// The position of the place. |
4324 PlacePosition position; | 4475 PlacePosition position; |
4325 | 4476 |
4326 Place(); | 4477 Place(); |
4327 | 4478 |
4328 Place.fromJson(core.Map _json) { | 4479 Place.fromJson(core.Map _json) { |
4329 if (_json.containsKey("address")) { | 4480 if (_json.containsKey("address")) { |
4330 address = new PlaceAddress.fromJson(_json["address"]); | 4481 address = new PlaceAddress.fromJson(_json["address"]); |
4331 } | 4482 } |
4332 if (_json.containsKey("displayName")) { | 4483 if (_json.containsKey("displayName")) { |
4333 displayName = _json["displayName"]; | 4484 displayName = _json["displayName"]; |
4334 } | 4485 } |
4335 if (_json.containsKey("id")) { | 4486 if (_json.containsKey("id")) { |
4336 id = _json["id"]; | 4487 id = _json["id"]; |
4337 } | 4488 } |
4338 if (_json.containsKey("kind")) { | 4489 if (_json.containsKey("kind")) { |
4339 kind = _json["kind"]; | 4490 kind = _json["kind"]; |
4340 } | 4491 } |
4341 if (_json.containsKey("position")) { | 4492 if (_json.containsKey("position")) { |
4342 position = new PlacePosition.fromJson(_json["position"]); | 4493 position = new PlacePosition.fromJson(_json["position"]); |
4343 } | 4494 } |
4344 } | 4495 } |
4345 | 4496 |
4346 core.Map<core.String, core.Object> toJson() { | 4497 core.Map<core.String, core.Object> toJson() { |
4347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4498 final core.Map<core.String, core.Object> _json = |
| 4499 new core.Map<core.String, core.Object>(); |
4348 if (address != null) { | 4500 if (address != null) { |
4349 _json["address"] = (address).toJson(); | 4501 _json["address"] = (address).toJson(); |
4350 } | 4502 } |
4351 if (displayName != null) { | 4503 if (displayName != null) { |
4352 _json["displayName"] = displayName; | 4504 _json["displayName"] = displayName; |
4353 } | 4505 } |
4354 if (id != null) { | 4506 if (id != null) { |
4355 _json["id"] = id; | 4507 _json["id"] = id; |
4356 } | 4508 } |
4357 if (kind != null) { | 4509 if (kind != null) { |
4358 _json["kind"] = kind; | 4510 _json["kind"] = kind; |
4359 } | 4511 } |
4360 if (position != null) { | 4512 if (position != null) { |
4361 _json["position"] = (position).toJson(); | 4513 _json["position"] = (position).toJson(); |
4362 } | 4514 } |
4363 return _json; | 4515 return _json; |
4364 } | 4516 } |
4365 } | 4517 } |
4366 | 4518 |
4367 class PlusDomainsAclentryResource { | 4519 class PlusDomainsAclentryResource { |
4368 /** A descriptive name for this entry. Suitable for display. */ | 4520 /// A descriptive name for this entry. Suitable for display. |
4369 core.String displayName; | 4521 core.String displayName; |
4370 /** | 4522 |
4371 * The ID of the entry. For entries of type "person" or "circle", this is the | 4523 /// The ID of the entry. For entries of type "person" or "circle", this is |
4372 * ID of the resource. For other types, this property is not set. | 4524 /// the ID of the resource. For other types, this property is not set. |
4373 */ | |
4374 core.String id; | 4525 core.String id; |
4375 /** | 4526 |
4376 * The type of entry describing to whom access is granted. Possible values | 4527 /// The type of entry describing to whom access is granted. Possible values |
4377 * are: | 4528 /// are: |
4378 * - "person" - Access to an individual. | 4529 /// - "person" - Access to an individual. |
4379 * - "circle" - Access to members of a circle. | 4530 /// - "circle" - Access to members of a circle. |
4380 * - "myCircles" - Access to members of all the person's circles. | 4531 /// - "myCircles" - Access to members of all the person's circles. |
4381 * - "extendedCircles" - Access to members of all the person's circles, plus | 4532 /// - "extendedCircles" - Access to members of all the person's circles, plus |
4382 * all of the people in their circles. | 4533 /// all of the people in their circles. |
4383 * - "domain" - Access to members of the person's Google Apps domain. | 4534 /// - "domain" - Access to members of the person's Google Apps domain. |
4384 * - "public" - Access to anyone on the web. | 4535 /// - "public" - Access to anyone on the web. |
4385 */ | |
4386 core.String type; | 4536 core.String type; |
4387 | 4537 |
4388 PlusDomainsAclentryResource(); | 4538 PlusDomainsAclentryResource(); |
4389 | 4539 |
4390 PlusDomainsAclentryResource.fromJson(core.Map _json) { | 4540 PlusDomainsAclentryResource.fromJson(core.Map _json) { |
4391 if (_json.containsKey("displayName")) { | 4541 if (_json.containsKey("displayName")) { |
4392 displayName = _json["displayName"]; | 4542 displayName = _json["displayName"]; |
4393 } | 4543 } |
4394 if (_json.containsKey("id")) { | 4544 if (_json.containsKey("id")) { |
4395 id = _json["id"]; | 4545 id = _json["id"]; |
4396 } | 4546 } |
4397 if (_json.containsKey("type")) { | 4547 if (_json.containsKey("type")) { |
4398 type = _json["type"]; | 4548 type = _json["type"]; |
4399 } | 4549 } |
4400 } | 4550 } |
4401 | 4551 |
4402 core.Map<core.String, core.Object> toJson() { | 4552 core.Map<core.String, core.Object> toJson() { |
4403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4553 final core.Map<core.String, core.Object> _json = |
| 4554 new core.Map<core.String, core.Object>(); |
4404 if (displayName != null) { | 4555 if (displayName != null) { |
4405 _json["displayName"] = displayName; | 4556 _json["displayName"] = displayName; |
4406 } | 4557 } |
4407 if (id != null) { | 4558 if (id != null) { |
4408 _json["id"] = id; | 4559 _json["id"] = id; |
4409 } | 4560 } |
4410 if (type != null) { | 4561 if (type != null) { |
4411 _json["type"] = type; | 4562 _json["type"] = type; |
4412 } | 4563 } |
4413 return _json; | 4564 return _json; |
4414 } | 4565 } |
4415 } | 4566 } |
4416 | 4567 |
4417 class Videostream { | 4568 class Videostream { |
4418 /** The height, in pixels, of the video resource. */ | 4569 /// The height, in pixels, of the video resource. |
4419 core.int height; | 4570 core.int height; |
4420 /** MIME type of the video stream. */ | 4571 |
| 4572 /// MIME type of the video stream. |
4421 core.String type; | 4573 core.String type; |
4422 /** URL of the video stream. */ | 4574 |
| 4575 /// URL of the video stream. |
4423 core.String url; | 4576 core.String url; |
4424 /** The width, in pixels, of the video resource. */ | 4577 |
| 4578 /// The width, in pixels, of the video resource. |
4425 core.int width; | 4579 core.int width; |
4426 | 4580 |
4427 Videostream(); | 4581 Videostream(); |
4428 | 4582 |
4429 Videostream.fromJson(core.Map _json) { | 4583 Videostream.fromJson(core.Map _json) { |
4430 if (_json.containsKey("height")) { | 4584 if (_json.containsKey("height")) { |
4431 height = _json["height"]; | 4585 height = _json["height"]; |
4432 } | 4586 } |
4433 if (_json.containsKey("type")) { | 4587 if (_json.containsKey("type")) { |
4434 type = _json["type"]; | 4588 type = _json["type"]; |
4435 } | 4589 } |
4436 if (_json.containsKey("url")) { | 4590 if (_json.containsKey("url")) { |
4437 url = _json["url"]; | 4591 url = _json["url"]; |
4438 } | 4592 } |
4439 if (_json.containsKey("width")) { | 4593 if (_json.containsKey("width")) { |
4440 width = _json["width"]; | 4594 width = _json["width"]; |
4441 } | 4595 } |
4442 } | 4596 } |
4443 | 4597 |
4444 core.Map<core.String, core.Object> toJson() { | 4598 core.Map<core.String, core.Object> toJson() { |
4445 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4599 final core.Map<core.String, core.Object> _json = |
| 4600 new core.Map<core.String, core.Object>(); |
4446 if (height != null) { | 4601 if (height != null) { |
4447 _json["height"] = height; | 4602 _json["height"] = height; |
4448 } | 4603 } |
4449 if (type != null) { | 4604 if (type != null) { |
4450 _json["type"] = type; | 4605 _json["type"] = type; |
4451 } | 4606 } |
4452 if (url != null) { | 4607 if (url != null) { |
4453 _json["url"] = url; | 4608 _json["url"] = url; |
4454 } | 4609 } |
4455 if (width != null) { | 4610 if (width != null) { |
4456 _json["width"] = width; | 4611 _json["width"] = width; |
4457 } | 4612 } |
4458 return _json; | 4613 return _json; |
4459 } | 4614 } |
4460 } | 4615 } |
OLD | NEW |