| OLD | NEW |
| 1 library googleapis.mirror.v1; | 1 library googleapis.mirror.v1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection_1; | 4 import "dart:collection" as collection_1; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 final common_internal.ApiRequester _requester; | 25 final common_internal.ApiRequester _requester; |
| 26 | 26 |
| 27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 28 ContactsResourceApi get contacts => new ContactsResourceApi(_requester); | 28 ContactsResourceApi get contacts => new ContactsResourceApi(_requester); |
| 29 LocationsResourceApi get locations => new LocationsResourceApi(_requester); | 29 LocationsResourceApi get locations => new LocationsResourceApi(_requester); |
| 30 SettingsResourceApi get settings => new SettingsResourceApi(_requester); | 30 SettingsResourceApi get settings => new SettingsResourceApi(_requester); |
| 31 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 31 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); |
| 32 TimelineResourceApi get timeline => new TimelineResourceApi(_requester); | 32 TimelineResourceApi get timeline => new TimelineResourceApi(_requester); |
| 33 | 33 |
| 34 MirrorApi(http.Client client) : | 34 MirrorApi(http.Client client) : |
| 35 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/mirror/v1/"); | 35 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "mirror/v1/"); |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 /** Not documented yet. */ | 39 /** Not documented yet. */ |
| 40 class AccountsResourceApi { | 40 class AccountsResourceApi { |
| 41 final common_internal.ApiRequester _requester; | 41 final common_internal.ApiRequester _requester; |
| 42 | 42 |
| 43 AccountsResourceApi(common_internal.ApiRequester client) : | 43 AccountsResourceApi(common_internal.ApiRequester client) : |
| 44 _requester = client; | 44 _requester = client; |
| 45 | 45 |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 * - OPEN_URI - Open the payload of the menu item in the browser. | 1769 * - OPEN_URI - Open the payload of the menu item in the browser. |
| 1770 * - PLAY_VIDEO - Open the payload of the menu item in the Glass video player. | 1770 * - PLAY_VIDEO - Open the payload of the menu item in the Glass video player. |
| 1771 * - SEND_MESSAGE - Initiate sending a message to the timeline item's creator: | 1771 * - SEND_MESSAGE - Initiate sending a message to the timeline item's creator: |
| 1772 * - If the creator.phoneNumber is set and Glass is connected to an Android | 1772 * - If the creator.phoneNumber is set and Glass is connected to an Android |
| 1773 * phone, the message is an SMS. | 1773 * phone, the message is an SMS. |
| 1774 * - Otherwise, if the creator.email is set, the message is an email. | 1774 * - Otherwise, if the creator.email is set, the message is an email. |
| 1775 */ | 1775 */ |
| 1776 core.String action; | 1776 core.String action; |
| 1777 | 1777 |
| 1778 /** | 1778 /** |
| 1779 * The ContextualMenus.Command associated with this MenuItem (e.g. |
| 1780 * READ_ALOUD). The voice label for this command will be displayed in the |
| 1781 * voice menu and the touch label will be displayed in the touch menu. Note |
| 1782 * that the default menu value's display name will be overriden if you specify |
| 1783 * this property. Values that do not correspond to a ContextualMenus.Command |
| 1784 * name will be ignored. |
| 1785 */ |
| 1786 core.String contextualCommand; |
| 1787 |
| 1788 /** |
| 1779 * The ID for this menu item. This is generated by the application and is | 1789 * The ID for this menu item. This is generated by the application and is |
| 1780 * treated as an opaque token. | 1790 * treated as an opaque token. |
| 1781 */ | 1791 */ |
| 1782 core.String id; | 1792 core.String id; |
| 1783 | 1793 |
| 1784 /** | 1794 /** |
| 1785 * A generic payload whose meaning changes depending on this MenuItem's | 1795 * A generic payload whose meaning changes depending on this MenuItem's |
| 1786 * action. | 1796 * action. |
| 1787 * - When the action is OPEN_URI, the payload is the URL of the website to | 1797 * - When the action is OPEN_URI, the payload is the URL of the website to |
| 1788 * view. | 1798 * view. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1806 */ | 1816 */ |
| 1807 core.List<MenuValue> values; | 1817 core.List<MenuValue> values; |
| 1808 | 1818 |
| 1809 | 1819 |
| 1810 MenuItem(); | 1820 MenuItem(); |
| 1811 | 1821 |
| 1812 MenuItem.fromJson(core.Map _json) { | 1822 MenuItem.fromJson(core.Map _json) { |
| 1813 if (_json.containsKey("action")) { | 1823 if (_json.containsKey("action")) { |
| 1814 action = _json["action"]; | 1824 action = _json["action"]; |
| 1815 } | 1825 } |
| 1826 if (_json.containsKey("contextual_command")) { |
| 1827 contextualCommand = _json["contextual_command"]; |
| 1828 } |
| 1816 if (_json.containsKey("id")) { | 1829 if (_json.containsKey("id")) { |
| 1817 id = _json["id"]; | 1830 id = _json["id"]; |
| 1818 } | 1831 } |
| 1819 if (_json.containsKey("payload")) { | 1832 if (_json.containsKey("payload")) { |
| 1820 payload = _json["payload"]; | 1833 payload = _json["payload"]; |
| 1821 } | 1834 } |
| 1822 if (_json.containsKey("removeWhenSelected")) { | 1835 if (_json.containsKey("removeWhenSelected")) { |
| 1823 removeWhenSelected = _json["removeWhenSelected"]; | 1836 removeWhenSelected = _json["removeWhenSelected"]; |
| 1824 } | 1837 } |
| 1825 if (_json.containsKey("values")) { | 1838 if (_json.containsKey("values")) { |
| 1826 values = _json["values"].map((value) => new MenuValue.fromJson(value)).toL
ist(); | 1839 values = _json["values"].map((value) => new MenuValue.fromJson(value)).toL
ist(); |
| 1827 } | 1840 } |
| 1828 } | 1841 } |
| 1829 | 1842 |
| 1830 core.Map toJson() { | 1843 core.Map toJson() { |
| 1831 var _json = new core.Map(); | 1844 var _json = new core.Map(); |
| 1832 if (action != null) { | 1845 if (action != null) { |
| 1833 _json["action"] = action; | 1846 _json["action"] = action; |
| 1834 } | 1847 } |
| 1848 if (contextualCommand != null) { |
| 1849 _json["contextual_command"] = contextualCommand; |
| 1850 } |
| 1835 if (id != null) { | 1851 if (id != null) { |
| 1836 _json["id"] = id; | 1852 _json["id"] = id; |
| 1837 } | 1853 } |
| 1838 if (payload != null) { | 1854 if (payload != null) { |
| 1839 _json["payload"] = payload; | 1855 _json["payload"] = payload; |
| 1840 } | 1856 } |
| 1841 if (removeWhenSelected != null) { | 1857 if (removeWhenSelected != null) { |
| 1842 _json["removeWhenSelected"] = removeWhenSelected; | 1858 _json["removeWhenSelected"] = removeWhenSelected; |
| 1843 } | 1859 } |
| 1844 if (values != null) { | 1860 if (values != null) { |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2706 _json["key"] = key; | 2722 _json["key"] = key; |
| 2707 } | 2723 } |
| 2708 if (value != null) { | 2724 if (value != null) { |
| 2709 _json["value"] = value; | 2725 _json["value"] = value; |
| 2710 } | 2726 } |
| 2711 return _json; | 2727 return _json; |
| 2712 } | 2728 } |
| 2713 } | 2729 } |
| 2714 | 2730 |
| 2715 | 2731 |
| OLD | NEW |