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.firebasedynamiclinks.v1; | 3 library googleapis.firebasedynamiclinks.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; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 IosInfo iosInfo; | 282 IosInfo iosInfo; |
283 /** | 283 /** |
284 * The link your app will open, You can specify any URL your app can handle. | 284 * The link your app will open, You can specify any URL your app can handle. |
285 * This link must be a well-formatted URL, be properly URL-encoded, and use | 285 * This link must be a well-formatted URL, be properly URL-encoded, and use |
286 * the HTTP or HTTPS scheme. See 'link' parameters in the | 286 * the HTTP or HTTPS scheme. See 'link' parameters in the |
287 * [documentation](https://firebase.google.com/docs/dynamic-links/android#crea
te-a-dynamic-link-programmatically). | 287 * [documentation](https://firebase.google.com/docs/dynamic-links/android#crea
te-a-dynamic-link-programmatically). |
288 * | 288 * |
289 * Required. | 289 * Required. |
290 */ | 290 */ |
291 core.String link; | 291 core.String link; |
| 292 /** Information of navigation behavior of a Firebase Dynamic Links. */ |
| 293 NavigationInfo navigationInfo; |
292 /** | 294 /** |
293 * Parameters for social meta tag params. | 295 * Parameters for social meta tag params. |
294 * Used to set meta tag data for link previews on social sites. | 296 * Used to set meta tag data for link previews on social sites. |
295 */ | 297 */ |
296 SocialMetaTagInfo socialMetaTagInfo; | 298 SocialMetaTagInfo socialMetaTagInfo; |
297 | 299 |
298 DynamicLinkInfo(); | 300 DynamicLinkInfo(); |
299 | 301 |
300 DynamicLinkInfo.fromJson(core.Map _json) { | 302 DynamicLinkInfo.fromJson(core.Map _json) { |
301 if (_json.containsKey("analyticsInfo")) { | 303 if (_json.containsKey("analyticsInfo")) { |
302 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); | 304 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); |
303 } | 305 } |
304 if (_json.containsKey("androidInfo")) { | 306 if (_json.containsKey("androidInfo")) { |
305 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); | 307 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); |
306 } | 308 } |
307 if (_json.containsKey("dynamicLinkDomain")) { | 309 if (_json.containsKey("dynamicLinkDomain")) { |
308 dynamicLinkDomain = _json["dynamicLinkDomain"]; | 310 dynamicLinkDomain = _json["dynamicLinkDomain"]; |
309 } | 311 } |
310 if (_json.containsKey("iosInfo")) { | 312 if (_json.containsKey("iosInfo")) { |
311 iosInfo = new IosInfo.fromJson(_json["iosInfo"]); | 313 iosInfo = new IosInfo.fromJson(_json["iosInfo"]); |
312 } | 314 } |
313 if (_json.containsKey("link")) { | 315 if (_json.containsKey("link")) { |
314 link = _json["link"]; | 316 link = _json["link"]; |
315 } | 317 } |
| 318 if (_json.containsKey("navigationInfo")) { |
| 319 navigationInfo = new NavigationInfo.fromJson(_json["navigationInfo"]); |
| 320 } |
316 if (_json.containsKey("socialMetaTagInfo")) { | 321 if (_json.containsKey("socialMetaTagInfo")) { |
317 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); | 322 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); |
318 } | 323 } |
319 } | 324 } |
320 | 325 |
321 core.Map toJson() { | 326 core.Map toJson() { |
322 var _json = new core.Map(); | 327 var _json = new core.Map(); |
323 if (analyticsInfo != null) { | 328 if (analyticsInfo != null) { |
324 _json["analyticsInfo"] = (analyticsInfo).toJson(); | 329 _json["analyticsInfo"] = (analyticsInfo).toJson(); |
325 } | 330 } |
326 if (androidInfo != null) { | 331 if (androidInfo != null) { |
327 _json["androidInfo"] = (androidInfo).toJson(); | 332 _json["androidInfo"] = (androidInfo).toJson(); |
328 } | 333 } |
329 if (dynamicLinkDomain != null) { | 334 if (dynamicLinkDomain != null) { |
330 _json["dynamicLinkDomain"] = dynamicLinkDomain; | 335 _json["dynamicLinkDomain"] = dynamicLinkDomain; |
331 } | 336 } |
332 if (iosInfo != null) { | 337 if (iosInfo != null) { |
333 _json["iosInfo"] = (iosInfo).toJson(); | 338 _json["iosInfo"] = (iosInfo).toJson(); |
334 } | 339 } |
335 if (link != null) { | 340 if (link != null) { |
336 _json["link"] = link; | 341 _json["link"] = link; |
337 } | 342 } |
| 343 if (navigationInfo != null) { |
| 344 _json["navigationInfo"] = (navigationInfo).toJson(); |
| 345 } |
338 if (socialMetaTagInfo != null) { | 346 if (socialMetaTagInfo != null) { |
339 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); | 347 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); |
340 } | 348 } |
341 return _json; | 349 return _json; |
342 } | 350 } |
343 } | 351 } |
344 | 352 |
345 /** Dynamic Links warning messages. */ | 353 /** Dynamic Links warning messages. */ |
346 class DynamicLinkWarning { | 354 class DynamicLinkWarning { |
347 /** | 355 /** |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 if (iosIpadBundleId != null) { | 622 if (iosIpadBundleId != null) { |
615 _json["iosIpadBundleId"] = iosIpadBundleId; | 623 _json["iosIpadBundleId"] = iosIpadBundleId; |
616 } | 624 } |
617 if (iosIpadFallbackLink != null) { | 625 if (iosIpadFallbackLink != null) { |
618 _json["iosIpadFallbackLink"] = iosIpadFallbackLink; | 626 _json["iosIpadFallbackLink"] = iosIpadFallbackLink; |
619 } | 627 } |
620 return _json; | 628 return _json; |
621 } | 629 } |
622 } | 630 } |
623 | 631 |
| 632 /** Information of navigation behavior. */ |
| 633 class NavigationInfo { |
| 634 /** |
| 635 * If this option is on, FDL click will be forced to redirect rather than |
| 636 * show an interstitial page. |
| 637 */ |
| 638 core.bool enableForcedRedirect; |
| 639 |
| 640 NavigationInfo(); |
| 641 |
| 642 NavigationInfo.fromJson(core.Map _json) { |
| 643 if (_json.containsKey("enableForcedRedirect")) { |
| 644 enableForcedRedirect = _json["enableForcedRedirect"]; |
| 645 } |
| 646 } |
| 647 |
| 648 core.Map toJson() { |
| 649 var _json = new core.Map(); |
| 650 if (enableForcedRedirect != null) { |
| 651 _json["enableForcedRedirect"] = enableForcedRedirect; |
| 652 } |
| 653 return _json; |
| 654 } |
| 655 } |
| 656 |
624 /** | 657 /** |
625 * Parameters for social meta tag params. | 658 * Parameters for social meta tag params. |
626 * Used to set meta tag data for link previews on social sites. | 659 * Used to set meta tag data for link previews on social sites. |
627 */ | 660 */ |
628 class SocialMetaTagInfo { | 661 class SocialMetaTagInfo { |
629 /** A short description of the link. Optional. */ | 662 /** A short description of the link. Optional. */ |
630 core.String socialDescription; | 663 core.String socialDescription; |
631 /** An image url string. Optional. */ | 664 /** An image url string. Optional. */ |
632 core.String socialImageLink; | 665 core.String socialImageLink; |
633 /** Title to be displayed. Optional. */ | 666 /** Title to be displayed. Optional. */ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 } | 724 } |
692 | 725 |
693 core.Map toJson() { | 726 core.Map toJson() { |
694 var _json = new core.Map(); | 727 var _json = new core.Map(); |
695 if (option != null) { | 728 if (option != null) { |
696 _json["option"] = option; | 729 _json["option"] = option; |
697 } | 730 } |
698 return _json; | 731 return _json; |
699 } | 732 } |
700 } | 733 } |
OLD | NEW |