/
google_maps_adsense.g.dart
201 lines (191 loc) · 8.78 KB
/
google_maps_adsense.g.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
// GENERATED CODE - DO NOT MODIFY BY HAND
// 2015-04-24T13:53:17.653Z
part of google_maps.adsense;
// **************************************************************************
// Generator: JsInterfaceGenerator
// Target: abstract class _AdUnit
// **************************************************************************
@JsName('google.maps.adsense.AdUnit')
class AdUnit extends MVCObject implements _AdUnit {
AdUnit.created(JsObject o) : super.created(o);
AdUnit(Node container, AdUnitOptions opts) : this.created(new JsObject(
getPath('google.maps.adsense.AdUnit'), [
container,
__codec160.encode(opts)
]));
String get backgroundColor => _getBackgroundColor();
String _getBackgroundColor() =>
asJsObject(this).callMethod('getBackgroundColor');
String get borderColor => _getBorderColor();
String _getBorderColor() => asJsObject(this).callMethod('getBorderColor');
String get channelNumber => _getChannelNumber();
String _getChannelNumber() => asJsObject(this).callMethod('getChannelNumber');
Node get container => _getContainer();
Node _getContainer() => asJsObject(this).callMethod('getContainer');
AdFormat get format => _getFormat();
AdFormat _getFormat() =>
__codec161.decode(asJsObject(this).callMethod('getFormat'));
GMap get map => _getMap();
GMap _getMap() => __codec162.decode(asJsObject(this).callMethod('getMap'));
ControlPosition get position => _getPosition();
ControlPosition _getPosition() =>
__codec163.decode(asJsObject(this).callMethod('getPosition'));
String get publisherId => _getPublisherId();
String _getPublisherId() => asJsObject(this).callMethod('getPublisherId');
String get textColor => _getTextColor();
String _getTextColor() => asJsObject(this).callMethod('getTextColor');
String get titleColor => _getTitleColor();
String _getTitleColor() => asJsObject(this).callMethod('getTitleColor');
String get urlColor => _getUrlColor();
String _getUrlColor() => asJsObject(this).callMethod('getUrlColor');
void set backgroundColor(String backgroundColor) =>
_setBackgroundColor(backgroundColor);
void _setBackgroundColor(String backgroundColor) {
asJsObject(this).callMethod('setBackgroundColor', [backgroundColor]);
}
void set borderColor(String borderColor) => _setBorderColor(borderColor);
void _setBorderColor(String borderColor) {
asJsObject(this).callMethod('setBorderColor', [borderColor]);
}
void set channelNumber(String channelNumber) =>
_setChannelNumber(channelNumber);
void _setChannelNumber(String channelNumber) {
asJsObject(this).callMethod('setChannelNumber', [channelNumber]);
}
void set format(AdFormat format) => _setFormat(format);
void _setFormat(AdFormat format) {
asJsObject(this).callMethod('setFormat', [__codec161.encode(format)]);
}
void set map(GMap map) => _setMap(map);
void _setMap(GMap map) {
asJsObject(this).callMethod('setMap', [__codec162.encode(map)]);
}
void set position(ControlPosition position) => _setPosition(position);
void _setPosition(ControlPosition position) {
asJsObject(this).callMethod('setPosition', [__codec163.encode(position)]);
}
void set textColor(String textColor) => _setTextColor(textColor);
void _setTextColor(String textColor) {
asJsObject(this).callMethod('setTextColor', [textColor]);
}
void set titleColor(String titleColor) => _setTitleColor(titleColor);
void _setTitleColor(String titleColor) {
asJsObject(this).callMethod('setTitleColor', [titleColor]);
}
void set urlColor(String urlColor) => _setUrlColor(urlColor);
void _setUrlColor(String urlColor) {
asJsObject(this).callMethod('setUrlColor', [urlColor]);
}
}
/// codec for AdUnitOptions
final __codec160 =
new JsInterfaceCodec<AdUnitOptions>((o) => new AdUnitOptions.created(o));
/// codec for AdFormat
final __codec161 = new BiMapCodec<AdFormat, dynamic>({
AdFormat.BANNER: getPath('google.maps.adsense.AdFormat')['BANNER'],
AdFormat.BUTTON: getPath('google.maps.adsense.AdFormat')['BUTTON'],
AdFormat.HALF_BANNER: getPath('google.maps.adsense.AdFormat')['HALF_BANNER'],
AdFormat.LARGE_HORIZONTAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['LARGE_HORIZONTAL_LINK_UNIT'],
AdFormat.LARGE_RECTANGLE:
getPath('google.maps.adsense.AdFormat')['LARGE_RECTANGLE'],
AdFormat.LARGE_VERTICAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['LARGE_VERTICAL_LINK_UNIT'],
AdFormat.LEADERBOARD: getPath('google.maps.adsense.AdFormat')['LEADERBOARD'],
AdFormat.MEDIUM_RECTANGLE:
getPath('google.maps.adsense.AdFormat')['MEDIUM_RECTANGLE'],
AdFormat.MEDIUM_VERTICAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['MEDIUM_VERTICAL_LINK_UNIT'],
AdFormat.SKYSCRAPER: getPath('google.maps.adsense.AdFormat')['SKYSCRAPER'],
AdFormat.SMALL_HORIZONTAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['SMALL_HORIZONTAL_LINK_UNIT'],
AdFormat.SMALL_RECTANGLE:
getPath('google.maps.adsense.AdFormat')['SMALL_RECTANGLE'],
AdFormat.SMALL_SQUARE:
getPath('google.maps.adsense.AdFormat')['SMALL_SQUARE'],
AdFormat.SMALL_VERTICAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['SMALL_VERTICAL_LINK_UNIT'],
AdFormat.SQUARE: getPath('google.maps.adsense.AdFormat')['SQUARE'],
AdFormat.VERTICAL_BANNER:
getPath('google.maps.adsense.AdFormat')['VERTICAL_BANNER'],
AdFormat.WIDE_SKYSCRAPER:
getPath('google.maps.adsense.AdFormat')['WIDE_SKYSCRAPER'],
AdFormat.X_LARGE_VERTICAL_LINK_UNIT:
getPath('google.maps.adsense.AdFormat')['X_LARGE_VERTICAL_LINK_UNIT']
});
/// codec for GMap
final __codec162 = new JsInterfaceCodec<GMap>((o) => new GMap.created(o));
/// codec for ControlPosition
final __codec163 = new BiMapCodec<ControlPosition, dynamic>({
ControlPosition.BOTTOM_CENTER:
getPath('google.maps.ControlPosition')['BOTTOM_CENTER'],
ControlPosition.BOTTOM_LEFT:
getPath('google.maps.ControlPosition')['BOTTOM_LEFT'],
ControlPosition.BOTTOM_RIGHT:
getPath('google.maps.ControlPosition')['BOTTOM_RIGHT'],
ControlPosition.LEFT_BOTTOM:
getPath('google.maps.ControlPosition')['LEFT_BOTTOM'],
ControlPosition.LEFT_CENTER:
getPath('google.maps.ControlPosition')['LEFT_CENTER'],
ControlPosition.LEFT_TOP: getPath('google.maps.ControlPosition')['LEFT_TOP'],
ControlPosition.RIGHT_BOTTOM:
getPath('google.maps.ControlPosition')['RIGHT_BOTTOM'],
ControlPosition.RIGHT_CENTER:
getPath('google.maps.ControlPosition')['RIGHT_CENTER'],
ControlPosition.RIGHT_TOP:
getPath('google.maps.ControlPosition')['RIGHT_TOP'],
ControlPosition.TOP_CENTER:
getPath('google.maps.ControlPosition')['TOP_CENTER'],
ControlPosition.TOP_LEFT: getPath('google.maps.ControlPosition')['TOP_LEFT'],
ControlPosition.TOP_RIGHT: getPath('google.maps.ControlPosition')['TOP_RIGHT']
});
// **************************************************************************
// Generator: JsInterfaceGenerator
// Target: abstract class _AdUnitOptions
// **************************************************************************
@anonymous
class AdUnitOptions extends JsInterface implements _AdUnitOptions {
AdUnitOptions.created(JsObject o) : super.created(o);
AdUnitOptions() : this.created(new JsObject(context['Object']));
void set backgroundColor(String _backgroundColor) {
asJsObject(this)['backgroundColor'] = _backgroundColor;
}
String get backgroundColor => asJsObject(this)['backgroundColor'];
void set borderColor(String _borderColor) {
asJsObject(this)['borderColor'] = _borderColor;
}
String get borderColor => asJsObject(this)['borderColor'];
void set channelNumber(String _channelNumber) {
asJsObject(this)['channelNumber'] = _channelNumber;
}
String get channelNumber => asJsObject(this)['channelNumber'];
void set format(AdFormat _format) {
asJsObject(this)['format'] = __codec161.encode(_format);
}
AdFormat get format => __codec161.decode(asJsObject(this)['format']);
void set map(GMap _map) {
asJsObject(this)['map'] = __codec162.encode(_map);
}
GMap get map => __codec162.decode(asJsObject(this)['map']);
void set position(ControlPosition _position) {
asJsObject(this)['position'] = __codec163.encode(_position);
}
ControlPosition get position =>
__codec163.decode(asJsObject(this)['position']);
void set publisherId(String _publisherId) {
asJsObject(this)['publisherId'] = _publisherId;
}
String get publisherId => asJsObject(this)['publisherId'];
void set textColor(String _textColor) {
asJsObject(this)['textColor'] = _textColor;
}
String get textColor => asJsObject(this)['textColor'];
void set titleColor(String _titleColor) {
asJsObject(this)['titleColor'] = _titleColor;
}
String get titleColor => asJsObject(this)['titleColor'];
void set urlColor(String _urlColor) {
asJsObject(this)['urlColor'] = _urlColor;
}
String get urlColor => asJsObject(this)['urlColor'];
}