| 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 14 matching lines...) Expand all Loading... |
| 25 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; | 25 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; |
| 26 | 26 |
| 27 /** View your emails messages and settings */ | 27 /** View your emails messages and settings */ |
| 28 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; | 28 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; |
| 29 | 29 |
| 30 | 30 |
| 31 final common_internal.ApiRequester _requester; | 31 final common_internal.ApiRequester _requester; |
| 32 | 32 |
| 33 UsersResourceApi get users => new UsersResourceApi(_requester); | 33 UsersResourceApi get users => new UsersResourceApi(_requester); |
| 34 | 34 |
| 35 GmailApi(http.Client client) : | 35 GmailApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "gmail/v1/users/"}) : |
| 36 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "gmail/v1/users/"); | 36 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 /** Not documented yet. */ | 40 /** Not documented yet. */ |
| 41 class UsersResourceApi { | 41 class UsersResourceApi { |
| 42 final common_internal.ApiRequester _requester; | 42 final common_internal.ApiRequester _requester; |
| 43 | 43 |
| 44 UsersDraftsResourceApi get drafts => new UsersDraftsResourceApi(_requester); | 44 UsersDraftsResourceApi get drafts => new UsersDraftsResourceApi(_requester); |
| 45 UsersHistoryResourceApi get history => new UsersHistoryResourceApi(_requester)
; | 45 UsersHistoryResourceApi get history => new UsersHistoryResourceApi(_requester)
; |
| 46 UsersLabelsResourceApi get labels => new UsersLabelsResourceApi(_requester); | 46 UsersLabelsResourceApi get labels => new UsersLabelsResourceApi(_requester); |
| (...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2134 /** The immutable ID of the message. */ | 2134 /** The immutable ID of the message. */ |
| 2135 core.String id; | 2135 core.String id; |
| 2136 | 2136 |
| 2137 /** List of IDs of labels applied to this message. */ | 2137 /** List of IDs of labels applied to this message. */ |
| 2138 core.List<core.String> labelIds; | 2138 core.List<core.String> labelIds; |
| 2139 | 2139 |
| 2140 /** The parsed email structure in the message parts. */ | 2140 /** The parsed email structure in the message parts. */ |
| 2141 MessagePart payload; | 2141 MessagePart payload; |
| 2142 | 2142 |
| 2143 /** | 2143 /** |
| 2144 * The entire email message in an RFC 2822 formatted and URL-safe base64 | 2144 * The entire email message in an RFC 2822 formatted and base64url encoded |
| 2145 * encoded string. Returned in messages.get and drafts.get responses when the | 2145 * string. Returned in messages.get and drafts.get responses when the |
| 2146 * format=RAW parameter is supplied. | 2146 * format=RAW parameter is supplied. |
| 2147 */ | 2147 */ |
| 2148 core.String raw; | 2148 core.String raw; |
| 2149 | 2149 |
| 2150 core.List<core.int> get rawAsBytes { | 2150 core.List<core.int> get rawAsBytes { |
| 2151 return crypto.CryptoUtils.base64StringToBytes(raw); | 2151 return crypto.CryptoUtils.base64StringToBytes(raw); |
| 2152 } | 2152 } |
| 2153 | 2153 |
| 2154 void set rawAsBytes(core.List<core.int> _bytes) { | 2154 void set rawAsBytes(core.List<core.int> _bytes) { |
| 2155 raw = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 2155 raw = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2573 _json["messages"] = messages.map((value) => (value).toJson()).toList(); | 2573 _json["messages"] = messages.map((value) => (value).toJson()).toList(); |
| 2574 } | 2574 } |
| 2575 if (snippet != null) { | 2575 if (snippet != null) { |
| 2576 _json["snippet"] = snippet; | 2576 _json["snippet"] = snippet; |
| 2577 } | 2577 } |
| 2578 return _json; | 2578 return _json; |
| 2579 } | 2579 } |
| 2580 } | 2580 } |
| 2581 | 2581 |
| 2582 | 2582 |
| OLD | NEW |