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.calendar.v3; | 3 library googleapis.calendar.v3; |
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; |
(...skipping 3194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 if (kind != null) { | 3205 if (kind != null) { |
3206 _json["kind"] = kind; | 3206 _json["kind"] = kind; |
3207 } | 3207 } |
3208 if (updated != null) { | 3208 if (updated != null) { |
3209 _json["updated"] = (updated).toIso8601String(); | 3209 _json["updated"] = (updated).toIso8601String(); |
3210 } | 3210 } |
3211 return _json; | 3211 return _json; |
3212 } | 3212 } |
3213 } | 3213 } |
3214 | 3214 |
| 3215 class DeepLinkData { |
| 3216 core.List<Link> links; |
| 3217 core.String url; |
| 3218 |
| 3219 DeepLinkData(); |
| 3220 |
| 3221 DeepLinkData.fromJson(core.Map _json) { |
| 3222 if (_json.containsKey("links")) { |
| 3223 links = _json["links"].map((value) => new Link.fromJson(value)).toList(); |
| 3224 } |
| 3225 if (_json.containsKey("url")) { |
| 3226 url = _json["url"]; |
| 3227 } |
| 3228 } |
| 3229 |
| 3230 core.Map toJson() { |
| 3231 var _json = new core.Map(); |
| 3232 if (links != null) { |
| 3233 _json["links"] = links.map((value) => (value).toJson()).toList(); |
| 3234 } |
| 3235 if (url != null) { |
| 3236 _json["url"] = url; |
| 3237 } |
| 3238 return _json; |
| 3239 } |
| 3240 } |
| 3241 |
| 3242 class DisplayInfo { |
| 3243 core.String appIconUrl; |
| 3244 core.String appShortTitle; |
| 3245 core.String appTitle; |
| 3246 core.String linkShortTitle; |
| 3247 core.String linkTitle; |
| 3248 |
| 3249 DisplayInfo(); |
| 3250 |
| 3251 DisplayInfo.fromJson(core.Map _json) { |
| 3252 if (_json.containsKey("appIconUrl")) { |
| 3253 appIconUrl = _json["appIconUrl"]; |
| 3254 } |
| 3255 if (_json.containsKey("appShortTitle")) { |
| 3256 appShortTitle = _json["appShortTitle"]; |
| 3257 } |
| 3258 if (_json.containsKey("appTitle")) { |
| 3259 appTitle = _json["appTitle"]; |
| 3260 } |
| 3261 if (_json.containsKey("linkShortTitle")) { |
| 3262 linkShortTitle = _json["linkShortTitle"]; |
| 3263 } |
| 3264 if (_json.containsKey("linkTitle")) { |
| 3265 linkTitle = _json["linkTitle"]; |
| 3266 } |
| 3267 } |
| 3268 |
| 3269 core.Map toJson() { |
| 3270 var _json = new core.Map(); |
| 3271 if (appIconUrl != null) { |
| 3272 _json["appIconUrl"] = appIconUrl; |
| 3273 } |
| 3274 if (appShortTitle != null) { |
| 3275 _json["appShortTitle"] = appShortTitle; |
| 3276 } |
| 3277 if (appTitle != null) { |
| 3278 _json["appTitle"] = appTitle; |
| 3279 } |
| 3280 if (linkShortTitle != null) { |
| 3281 _json["linkShortTitle"] = linkShortTitle; |
| 3282 } |
| 3283 if (linkTitle != null) { |
| 3284 _json["linkTitle"] = linkTitle; |
| 3285 } |
| 3286 return _json; |
| 3287 } |
| 3288 } |
| 3289 |
3215 class Error { | 3290 class Error { |
3216 /** Domain, or broad category, of the error. */ | 3291 /** Domain, or broad category, of the error. */ |
3217 core.String domain; | 3292 core.String domain; |
3218 /** | 3293 /** |
3219 * Specific reason for the error. Some of the possible values are: | 3294 * Specific reason for the error. Some of the possible values are: |
3220 * - "groupTooBig" - The group of users requested is too large for a single | 3295 * - "groupTooBig" - The group of users requested is too large for a single |
3221 * query. | 3296 * query. |
3222 * - "tooManyCalendarsRequested" - The number of calendars requested is too | 3297 * - "tooManyCalendarsRequested" - The number of calendars requested is too |
3223 * large for a single query. | 3298 * large for a single query. |
3224 * - "notFound" - The requested resource was not found. | 3299 * - "notFound" - The requested resource was not found. |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4203 if (dateTime != null) { | 4278 if (dateTime != null) { |
4204 _json["dateTime"] = (dateTime).toIso8601String(); | 4279 _json["dateTime"] = (dateTime).toIso8601String(); |
4205 } | 4280 } |
4206 if (timeZone != null) { | 4281 if (timeZone != null) { |
4207 _json["timeZone"] = timeZone; | 4282 _json["timeZone"] = timeZone; |
4208 } | 4283 } |
4209 return _json; | 4284 return _json; |
4210 } | 4285 } |
4211 } | 4286 } |
4212 | 4287 |
| 4288 class EventHabitInstance { |
| 4289 /** Metadata specific to this instance. */ |
| 4290 HabitInstanceData data; |
| 4291 /** Id of the habit this instance belongs to. */ |
| 4292 core.String parentId; |
| 4293 |
| 4294 EventHabitInstance(); |
| 4295 |
| 4296 EventHabitInstance.fromJson(core.Map _json) { |
| 4297 if (_json.containsKey("data")) { |
| 4298 data = new HabitInstanceData.fromJson(_json["data"]); |
| 4299 } |
| 4300 if (_json.containsKey("parentId")) { |
| 4301 parentId = _json["parentId"]; |
| 4302 } |
| 4303 } |
| 4304 |
| 4305 core.Map toJson() { |
| 4306 var _json = new core.Map(); |
| 4307 if (data != null) { |
| 4308 _json["data"] = (data).toJson(); |
| 4309 } |
| 4310 if (parentId != null) { |
| 4311 _json["parentId"] = parentId; |
| 4312 } |
| 4313 return _json; |
| 4314 } |
| 4315 } |
| 4316 |
4213 class EventReminder { | 4317 class EventReminder { |
4214 /** | 4318 /** |
4215 * The method used by this reminder. Possible values are: | 4319 * The method used by this reminder. Possible values are: |
4216 * - "email" - Reminders are sent via email. | 4320 * - "email" - Reminders are sent via email. |
4217 * - "sms" - Reminders are sent via SMS. These are only available for G Suite | 4321 * - "sms" - Reminders are sent via SMS. These are only available for G Suite |
4218 * customers. Requests to set SMS reminders for other account types are | 4322 * customers. Requests to set SMS reminders for other account types are |
4219 * ignored. | 4323 * ignored. |
4220 * - "popup" - Reminders are sent via a UI popup. | 4324 * - "popup" - Reminders are sent via a UI popup. |
4221 */ | 4325 */ |
4222 core.String method; | 4326 core.String method; |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4570 if (timeMax != null) { | 4674 if (timeMax != null) { |
4571 _json["timeMax"] = (timeMax).toIso8601String(); | 4675 _json["timeMax"] = (timeMax).toIso8601String(); |
4572 } | 4676 } |
4573 if (timeMin != null) { | 4677 if (timeMin != null) { |
4574 _json["timeMin"] = (timeMin).toIso8601String(); | 4678 _json["timeMin"] = (timeMin).toIso8601String(); |
4575 } | 4679 } |
4576 return _json; | 4680 return _json; |
4577 } | 4681 } |
4578 } | 4682 } |
4579 | 4683 |
| 4684 class HabitInstanceData { |
| 4685 core.String status; |
| 4686 core.bool statusInferred; |
| 4687 core.String type; |
| 4688 |
| 4689 HabitInstanceData(); |
| 4690 |
| 4691 HabitInstanceData.fromJson(core.Map _json) { |
| 4692 if (_json.containsKey("status")) { |
| 4693 status = _json["status"]; |
| 4694 } |
| 4695 if (_json.containsKey("statusInferred")) { |
| 4696 statusInferred = _json["statusInferred"]; |
| 4697 } |
| 4698 if (_json.containsKey("type")) { |
| 4699 type = _json["type"]; |
| 4700 } |
| 4701 } |
| 4702 |
| 4703 core.Map toJson() { |
| 4704 var _json = new core.Map(); |
| 4705 if (status != null) { |
| 4706 _json["status"] = status; |
| 4707 } |
| 4708 if (statusInferred != null) { |
| 4709 _json["statusInferred"] = statusInferred; |
| 4710 } |
| 4711 if (type != null) { |
| 4712 _json["type"] = type; |
| 4713 } |
| 4714 return _json; |
| 4715 } |
| 4716 } |
| 4717 |
| 4718 class LaunchInfo { |
| 4719 core.String appId; |
| 4720 core.String installUrl; |
| 4721 core.String intentAction; |
| 4722 core.String uri; |
| 4723 |
| 4724 LaunchInfo(); |
| 4725 |
| 4726 LaunchInfo.fromJson(core.Map _json) { |
| 4727 if (_json.containsKey("appId")) { |
| 4728 appId = _json["appId"]; |
| 4729 } |
| 4730 if (_json.containsKey("installUrl")) { |
| 4731 installUrl = _json["installUrl"]; |
| 4732 } |
| 4733 if (_json.containsKey("intentAction")) { |
| 4734 intentAction = _json["intentAction"]; |
| 4735 } |
| 4736 if (_json.containsKey("uri")) { |
| 4737 uri = _json["uri"]; |
| 4738 } |
| 4739 } |
| 4740 |
| 4741 core.Map toJson() { |
| 4742 var _json = new core.Map(); |
| 4743 if (appId != null) { |
| 4744 _json["appId"] = appId; |
| 4745 } |
| 4746 if (installUrl != null) { |
| 4747 _json["installUrl"] = installUrl; |
| 4748 } |
| 4749 if (intentAction != null) { |
| 4750 _json["intentAction"] = intentAction; |
| 4751 } |
| 4752 if (uri != null) { |
| 4753 _json["uri"] = uri; |
| 4754 } |
| 4755 return _json; |
| 4756 } |
| 4757 } |
| 4758 |
| 4759 class Link { |
| 4760 core.String applinkingSource; |
| 4761 DisplayInfo displayInfo; |
| 4762 LaunchInfo launchInfo; |
| 4763 core.String platform; |
| 4764 core.String url; |
| 4765 |
| 4766 Link(); |
| 4767 |
| 4768 Link.fromJson(core.Map _json) { |
| 4769 if (_json.containsKey("applinkingSource")) { |
| 4770 applinkingSource = _json["applinkingSource"]; |
| 4771 } |
| 4772 if (_json.containsKey("displayInfo")) { |
| 4773 displayInfo = new DisplayInfo.fromJson(_json["displayInfo"]); |
| 4774 } |
| 4775 if (_json.containsKey("launchInfo")) { |
| 4776 launchInfo = new LaunchInfo.fromJson(_json["launchInfo"]); |
| 4777 } |
| 4778 if (_json.containsKey("platform")) { |
| 4779 platform = _json["platform"]; |
| 4780 } |
| 4781 if (_json.containsKey("url")) { |
| 4782 url = _json["url"]; |
| 4783 } |
| 4784 } |
| 4785 |
| 4786 core.Map toJson() { |
| 4787 var _json = new core.Map(); |
| 4788 if (applinkingSource != null) { |
| 4789 _json["applinkingSource"] = applinkingSource; |
| 4790 } |
| 4791 if (displayInfo != null) { |
| 4792 _json["displayInfo"] = (displayInfo).toJson(); |
| 4793 } |
| 4794 if (launchInfo != null) { |
| 4795 _json["launchInfo"] = (launchInfo).toJson(); |
| 4796 } |
| 4797 if (platform != null) { |
| 4798 _json["platform"] = platform; |
| 4799 } |
| 4800 if (url != null) { |
| 4801 _json["url"] = url; |
| 4802 } |
| 4803 return _json; |
| 4804 } |
| 4805 } |
| 4806 |
4580 class Setting { | 4807 class Setting { |
4581 /** ETag of the resource. */ | 4808 /** ETag of the resource. */ |
4582 core.String etag; | 4809 core.String etag; |
4583 /** The id of the user setting. */ | 4810 /** The id of the user setting. */ |
4584 core.String id; | 4811 core.String id; |
4585 /** Type of the resource ("calendar#setting"). */ | 4812 /** Type of the resource ("calendar#setting"). */ |
4586 core.String kind; | 4813 core.String kind; |
4587 /** | 4814 /** |
4588 * Value of the user setting. The format of the value depends on the ID of the | 4815 * Value of the user setting. The format of the value depends on the ID of the |
4589 * setting. It must always be a UTF-8 string of length up to 1024 characters. | 4816 * setting. It must always be a UTF-8 string of length up to 1024 characters. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4706 var _json = new core.Map(); | 4933 var _json = new core.Map(); |
4707 if (end != null) { | 4934 if (end != null) { |
4708 _json["end"] = (end).toIso8601String(); | 4935 _json["end"] = (end).toIso8601String(); |
4709 } | 4936 } |
4710 if (start != null) { | 4937 if (start != null) { |
4711 _json["start"] = (start).toIso8601String(); | 4938 _json["start"] = (start).toIso8601String(); |
4712 } | 4939 } |
4713 return _json; | 4940 return _json; |
4714 } | 4941 } |
4715 } | 4942 } |
OLD | NEW |