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.adexchangebuyer.v1_4; | 3 library googleapis.adexchangebuyer.v1_4; |
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:crypto/crypto.dart' as crypto; | |
11 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
12 | 11 |
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
15 | 14 |
16 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.4'; | 15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.4'; |
17 | 16 |
18 /** | 17 /** |
19 * Accesses your bidding-account information, submits creatives for validation, | 18 * Accesses your bidding-account information, submits creatives for validation, |
20 * finds available direct deals, and retrieves performance reports. | 19 * finds available direct deals, and retrieves performance reports. |
(...skipping 4985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5006 _json["price"] = (price).toJson(); | 5005 _json["price"] = (price).toJson(); |
5007 } | 5006 } |
5008 return _json; | 5007 return _json; |
5009 } | 5008 } |
5010 } | 5009 } |
5011 | 5010 |
5012 class PrivateData { | 5011 class PrivateData { |
5013 core.String referenceId; | 5012 core.String referenceId; |
5014 core.String referencePayload; | 5013 core.String referencePayload; |
5015 core.List<core.int> get referencePayloadAsBytes { | 5014 core.List<core.int> get referencePayloadAsBytes { |
5016 return crypto.CryptoUtils.base64StringToBytes(referencePayload); | 5015 return convert.BASE64.decode(referencePayload); |
5017 } | 5016 } |
5018 | 5017 |
5019 void set referencePayloadAsBytes(core.List<core.int> _bytes) { | 5018 void set referencePayloadAsBytes(core.List<core.int> _bytes) { |
5020 referencePayload = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 5019 referencePayload = convert.BASE64.encode(_bytes).replaceAll("/", "_").replac
eAll("+", "-"); |
5021 } | 5020 } |
5022 | 5021 |
5023 PrivateData(); | 5022 PrivateData(); |
5024 | 5023 |
5025 PrivateData.fromJson(core.Map _json) { | 5024 PrivateData.fromJson(core.Map _json) { |
5026 if (_json.containsKey("referenceId")) { | 5025 if (_json.containsKey("referenceId")) { |
5027 referenceId = _json["referenceId"]; | 5026 referenceId = _json["referenceId"]; |
5028 } | 5027 } |
5029 if (_json.containsKey("referencePayload")) { | 5028 if (_json.containsKey("referencePayload")) { |
5030 referencePayload = _json["referencePayload"]; | 5029 referencePayload = _json["referencePayload"]; |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6065 } | 6064 } |
6066 if (proposalRevisionNumber != null) { | 6065 if (proposalRevisionNumber != null) { |
6067 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 6066 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
6068 } | 6067 } |
6069 if (updateAction != null) { | 6068 if (updateAction != null) { |
6070 _json["updateAction"] = updateAction; | 6069 _json["updateAction"] = updateAction; |
6071 } | 6070 } |
6072 return _json; | 6071 return _json; |
6073 } | 6072 } |
6074 } | 6073 } |
OLD | NEW |