OLD | NEW |
1 library googleapis.gmail.v1; | 1 library googleapis.gmail.v1; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 core.String labelListVisibility; | 1773 core.String labelListVisibility; |
1774 | 1774 |
1775 /** | 1775 /** |
1776 * The visibility of the label in the message list in the Gmail web interface. | 1776 * The visibility of the label in the message list in the Gmail web interface. |
1777 * Possible string values are: | 1777 * Possible string values are: |
1778 * - "hide" | 1778 * - "hide" |
1779 * - "show" | 1779 * - "show" |
1780 */ | 1780 */ |
1781 core.String messageListVisibility; | 1781 core.String messageListVisibility; |
1782 | 1782 |
| 1783 /** The total number of messages with the label. */ |
| 1784 core.int messagesTotal; |
| 1785 |
| 1786 /** The number of unread messages with the label. */ |
| 1787 core.int messagesUnread; |
| 1788 |
1783 /** The display name of the label. */ | 1789 /** The display name of the label. */ |
1784 core.String name; | 1790 core.String name; |
1785 | 1791 |
| 1792 /** The total number of threads with the label. */ |
| 1793 core.int threadsTotal; |
| 1794 |
| 1795 /** The number of unread threads with the label. */ |
| 1796 core.int threadsUnread; |
| 1797 |
1786 /** | 1798 /** |
1787 * The owner type for the label. User labels are created by the user and can | 1799 * The owner type for the label. User labels are created by the user and can |
1788 * be modified and deleted by the user and can be applied to any message or | 1800 * be modified and deleted by the user and can be applied to any message or |
1789 * thread. System labels are internally created and cannot be added, modified, | 1801 * thread. System labels are internally created and cannot be added, modified, |
1790 * or deleted. System labels may be able to be applied to or removed from | 1802 * or deleted. System labels may be able to be applied to or removed from |
1791 * messages and threads under some circumstances but this is not guaranteed. | 1803 * messages and threads under some circumstances but this is not guaranteed. |
1792 * For example, users can apply and remove the INBOX and UNREAD labels from | 1804 * For example, users can apply and remove the INBOX and UNREAD labels from |
1793 * messages and threads, but cannot apply or remove the DRAFTS or SENT labels | 1805 * messages and threads, but cannot apply or remove the DRAFTS or SENT labels |
1794 * from messages or threads. | 1806 * from messages or threads. |
1795 * Possible string values are: | 1807 * Possible string values are: |
1796 * - "system" | 1808 * - "system" |
1797 * - "user" | 1809 * - "user" |
1798 */ | 1810 */ |
1799 core.String type; | 1811 core.String type; |
1800 | 1812 |
1801 | 1813 |
1802 Label(); | 1814 Label(); |
1803 | 1815 |
1804 Label.fromJson(core.Map _json) { | 1816 Label.fromJson(core.Map _json) { |
1805 if (_json.containsKey("id")) { | 1817 if (_json.containsKey("id")) { |
1806 id = _json["id"]; | 1818 id = _json["id"]; |
1807 } | 1819 } |
1808 if (_json.containsKey("labelListVisibility")) { | 1820 if (_json.containsKey("labelListVisibility")) { |
1809 labelListVisibility = _json["labelListVisibility"]; | 1821 labelListVisibility = _json["labelListVisibility"]; |
1810 } | 1822 } |
1811 if (_json.containsKey("messageListVisibility")) { | 1823 if (_json.containsKey("messageListVisibility")) { |
1812 messageListVisibility = _json["messageListVisibility"]; | 1824 messageListVisibility = _json["messageListVisibility"]; |
1813 } | 1825 } |
| 1826 if (_json.containsKey("messagesTotal")) { |
| 1827 messagesTotal = _json["messagesTotal"]; |
| 1828 } |
| 1829 if (_json.containsKey("messagesUnread")) { |
| 1830 messagesUnread = _json["messagesUnread"]; |
| 1831 } |
1814 if (_json.containsKey("name")) { | 1832 if (_json.containsKey("name")) { |
1815 name = _json["name"]; | 1833 name = _json["name"]; |
1816 } | 1834 } |
| 1835 if (_json.containsKey("threadsTotal")) { |
| 1836 threadsTotal = _json["threadsTotal"]; |
| 1837 } |
| 1838 if (_json.containsKey("threadsUnread")) { |
| 1839 threadsUnread = _json["threadsUnread"]; |
| 1840 } |
1817 if (_json.containsKey("type")) { | 1841 if (_json.containsKey("type")) { |
1818 type = _json["type"]; | 1842 type = _json["type"]; |
1819 } | 1843 } |
1820 } | 1844 } |
1821 | 1845 |
1822 core.Map toJson() { | 1846 core.Map toJson() { |
1823 var _json = new core.Map(); | 1847 var _json = new core.Map(); |
1824 if (id != null) { | 1848 if (id != null) { |
1825 _json["id"] = id; | 1849 _json["id"] = id; |
1826 } | 1850 } |
1827 if (labelListVisibility != null) { | 1851 if (labelListVisibility != null) { |
1828 _json["labelListVisibility"] = labelListVisibility; | 1852 _json["labelListVisibility"] = labelListVisibility; |
1829 } | 1853 } |
1830 if (messageListVisibility != null) { | 1854 if (messageListVisibility != null) { |
1831 _json["messageListVisibility"] = messageListVisibility; | 1855 _json["messageListVisibility"] = messageListVisibility; |
1832 } | 1856 } |
| 1857 if (messagesTotal != null) { |
| 1858 _json["messagesTotal"] = messagesTotal; |
| 1859 } |
| 1860 if (messagesUnread != null) { |
| 1861 _json["messagesUnread"] = messagesUnread; |
| 1862 } |
1833 if (name != null) { | 1863 if (name != null) { |
1834 _json["name"] = name; | 1864 _json["name"] = name; |
1835 } | 1865 } |
| 1866 if (threadsTotal != null) { |
| 1867 _json["threadsTotal"] = threadsTotal; |
| 1868 } |
| 1869 if (threadsUnread != null) { |
| 1870 _json["threadsUnread"] = threadsUnread; |
| 1871 } |
1836 if (type != null) { | 1872 if (type != null) { |
1837 _json["type"] = type; | 1873 _json["type"] = type; |
1838 } | 1874 } |
1839 return _json; | 1875 return _json; |
1840 } | 1876 } |
1841 } | 1877 } |
1842 | 1878 |
1843 | 1879 |
1844 /** Not documented yet. */ | 1880 /** Not documented yet. */ |
1845 class ListDraftsResponse { | 1881 class ListDraftsResponse { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 | 2103 |
2068 /** A short part of the message text. */ | 2104 /** A short part of the message text. */ |
2069 core.String snippet; | 2105 core.String snippet; |
2070 | 2106 |
2071 /** | 2107 /** |
2072 * The ID of the thread the message belongs to. To add a message or draft to a | 2108 * The ID of the thread the message belongs to. To add a message or draft to a |
2073 * thread, the following criteria must be met: | 2109 * thread, the following criteria must be met: |
2074 * - The requested threadId must be specified on the Message or Draft.Message | 2110 * - The requested threadId must be specified on the Message or Draft.Message |
2075 * you supply with your request. | 2111 * you supply with your request. |
2076 * - The References and In-Reply-To headers must be set in compliance with the | 2112 * - The References and In-Reply-To headers must be set in compliance with the |
2077 * <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard. | 2113 * RFC 2822 standard. |
2078 * - The Subject headers must match. | 2114 * - The Subject headers must match. |
2079 */ | 2115 */ |
2080 core.String threadId; | 2116 core.String threadId; |
2081 | 2117 |
2082 | 2118 |
2083 Message(); | 2119 Message(); |
2084 | 2120 |
2085 Message.fromJson(core.Map _json) { | 2121 Message.fromJson(core.Map _json) { |
2086 if (_json.containsKey("historyId")) { | 2122 if (_json.containsKey("historyId")) { |
2087 historyId = _json["historyId"]; | 2123 historyId = _json["historyId"]; |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2429 _json["messages"] = messages.map((value) => (value).toJson()).toList(); | 2465 _json["messages"] = messages.map((value) => (value).toJson()).toList(); |
2430 } | 2466 } |
2431 if (snippet != null) { | 2467 if (snippet != null) { |
2432 _json["snippet"] = snippet; | 2468 _json["snippet"] = snippet; |
2433 } | 2469 } |
2434 return _json; | 2470 return _json; |
2435 } | 2471 } |
2436 } | 2472 } |
2437 | 2473 |
2438 | 2474 |
OLD | NEW |