line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# Autogenerated by Thrift Compiler (0.7.0) |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
require 5.6.0; |
7
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
8
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
9
|
1
|
|
|
1
|
|
3
|
use Thrift; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::SponsoredGroupRole; |
12
|
1
|
|
|
1
|
|
3
|
use constant GROUP_MEMBER => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
13
|
1
|
|
|
1
|
|
8
|
use constant GROUP_ADMIN => 2; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
14
|
1
|
|
|
1
|
|
4
|
use constant GROUP_OWNER => 3; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
46
|
|
15
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::PublicUserInfo; |
16
|
1
|
|
|
1
|
|
4
|
use base qw(Class::Accessor); |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
1204
|
|
17
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::PublicUserInfo->mk_accessors( qw( userId shardId privilege username noteStoreUrl ) ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new { |
20
|
|
|
|
|
|
|
my $classname = shift; |
21
|
|
|
|
|
|
|
my $self = {}; |
22
|
|
|
|
|
|
|
my $vals = shift || {}; |
23
|
|
|
|
|
|
|
$self->{userId} = undef; |
24
|
|
|
|
|
|
|
$self->{shardId} = undef; |
25
|
|
|
|
|
|
|
$self->{privilege} = undef; |
26
|
|
|
|
|
|
|
$self->{username} = undef; |
27
|
|
|
|
|
|
|
$self->{noteStoreUrl} = undef; |
28
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
29
|
|
|
|
|
|
|
if (defined $vals->{userId}) { |
30
|
|
|
|
|
|
|
$self->{userId} = $vals->{userId}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
if (defined $vals->{shardId}) { |
33
|
|
|
|
|
|
|
$self->{shardId} = $vals->{shardId}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
if (defined $vals->{privilege}) { |
36
|
|
|
|
|
|
|
$self->{privilege} = $vals->{privilege}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
if (defined $vals->{username}) { |
39
|
|
|
|
|
|
|
$self->{username} = $vals->{username}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
if (defined $vals->{noteStoreUrl}) { |
42
|
|
|
|
|
|
|
$self->{noteStoreUrl} = $vals->{noteStoreUrl}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
return bless ($self, $classname); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getName { |
49
|
|
|
|
|
|
|
return 'PublicUserInfo'; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub read { |
53
|
|
|
|
|
|
|
my ($self, $input) = @_; |
54
|
|
|
|
|
|
|
my $xfer = 0; |
55
|
|
|
|
|
|
|
my $fname; |
56
|
|
|
|
|
|
|
my $ftype = 0; |
57
|
|
|
|
|
|
|
my $fid = 0; |
58
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
59
|
|
|
|
|
|
|
while (1) |
60
|
|
|
|
|
|
|
{ |
61
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
62
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
63
|
|
|
|
|
|
|
last; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
SWITCH: for($fid) |
66
|
|
|
|
|
|
|
{ |
67
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
68
|
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{userId}); |
69
|
|
|
|
|
|
|
} else { |
70
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
last; }; |
73
|
|
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
74
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{shardId}); |
75
|
|
|
|
|
|
|
} else { |
76
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
last; }; |
79
|
|
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I32) { |
80
|
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{privilege}); |
81
|
|
|
|
|
|
|
} else { |
82
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
last; }; |
85
|
|
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
86
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{username}); |
87
|
|
|
|
|
|
|
} else { |
88
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
last; }; |
91
|
|
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRING) { |
92
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{noteStoreUrl}); |
93
|
|
|
|
|
|
|
} else { |
94
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
last; }; |
97
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
102
|
|
|
|
|
|
|
return $xfer; |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub write { |
106
|
|
|
|
|
|
|
my ($self, $output) = @_; |
107
|
|
|
|
|
|
|
my $xfer = 0; |
108
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('PublicUserInfo'); |
109
|
|
|
|
|
|
|
if (defined $self->{userId}) { |
110
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('userId', TType::I32, 1); |
111
|
|
|
|
|
|
|
$xfer += $output->writeI32($self->{userId}); |
112
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
if (defined $self->{shardId}) { |
115
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('shardId', TType::STRING, 2); |
116
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{shardId}); |
117
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
if (defined $self->{privilege}) { |
120
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('privilege', TType::I32, 3); |
121
|
|
|
|
|
|
|
$xfer += $output->writeI32($self->{privilege}); |
122
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
123
|
|
|
|
|
|
|
} |
124
|
|
|
|
|
|
|
if (defined $self->{username}) { |
125
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('username', TType::STRING, 4); |
126
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{username}); |
127
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
if (defined $self->{noteStoreUrl}) { |
130
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('noteStoreUrl', TType::STRING, 5); |
131
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{noteStoreUrl}); |
132
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
135
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
136
|
|
|
|
|
|
|
return $xfer; |
137
|
|
|
|
|
|
|
} |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::PremiumInfo; |
140
|
|
|
|
|
|
|
use base qw(Class::Accessor); |
141
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::PremiumInfo->mk_accessors( qw( currentTime premium premiumRecurring premiumExpirationDate premiumExtendable premiumPending premiumCancellationPending canPurchaseUploadAllowance sponsoredGroupName sponsoredGroupRole ) ); |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
sub new { |
144
|
|
|
|
|
|
|
my $classname = shift; |
145
|
|
|
|
|
|
|
my $self = {}; |
146
|
|
|
|
|
|
|
my $vals = shift || {}; |
147
|
|
|
|
|
|
|
$self->{currentTime} = undef; |
148
|
|
|
|
|
|
|
$self->{premium} = undef; |
149
|
|
|
|
|
|
|
$self->{premiumRecurring} = undef; |
150
|
|
|
|
|
|
|
$self->{premiumExpirationDate} = undef; |
151
|
|
|
|
|
|
|
$self->{premiumExtendable} = undef; |
152
|
|
|
|
|
|
|
$self->{premiumPending} = undef; |
153
|
|
|
|
|
|
|
$self->{premiumCancellationPending} = undef; |
154
|
|
|
|
|
|
|
$self->{canPurchaseUploadAllowance} = undef; |
155
|
|
|
|
|
|
|
$self->{sponsoredGroupName} = undef; |
156
|
|
|
|
|
|
|
$self->{sponsoredGroupRole} = undef; |
157
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
158
|
|
|
|
|
|
|
if (defined $vals->{currentTime}) { |
159
|
|
|
|
|
|
|
$self->{currentTime} = $vals->{currentTime}; |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
if (defined $vals->{premium}) { |
162
|
|
|
|
|
|
|
$self->{premium} = $vals->{premium}; |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
if (defined $vals->{premiumRecurring}) { |
165
|
|
|
|
|
|
|
$self->{premiumRecurring} = $vals->{premiumRecurring}; |
166
|
|
|
|
|
|
|
} |
167
|
|
|
|
|
|
|
if (defined $vals->{premiumExpirationDate}) { |
168
|
|
|
|
|
|
|
$self->{premiumExpirationDate} = $vals->{premiumExpirationDate}; |
169
|
|
|
|
|
|
|
} |
170
|
|
|
|
|
|
|
if (defined $vals->{premiumExtendable}) { |
171
|
|
|
|
|
|
|
$self->{premiumExtendable} = $vals->{premiumExtendable}; |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
if (defined $vals->{premiumPending}) { |
174
|
|
|
|
|
|
|
$self->{premiumPending} = $vals->{premiumPending}; |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
if (defined $vals->{premiumCancellationPending}) { |
177
|
|
|
|
|
|
|
$self->{premiumCancellationPending} = $vals->{premiumCancellationPending}; |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
if (defined $vals->{canPurchaseUploadAllowance}) { |
180
|
|
|
|
|
|
|
$self->{canPurchaseUploadAllowance} = $vals->{canPurchaseUploadAllowance}; |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
if (defined $vals->{sponsoredGroupName}) { |
183
|
|
|
|
|
|
|
$self->{sponsoredGroupName} = $vals->{sponsoredGroupName}; |
184
|
|
|
|
|
|
|
} |
185
|
|
|
|
|
|
|
if (defined $vals->{sponsoredGroupRole}) { |
186
|
|
|
|
|
|
|
$self->{sponsoredGroupRole} = $vals->{sponsoredGroupRole}; |
187
|
|
|
|
|
|
|
} |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
return bless ($self, $classname); |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
sub getName { |
193
|
|
|
|
|
|
|
return 'PremiumInfo'; |
194
|
|
|
|
|
|
|
} |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
sub read { |
197
|
|
|
|
|
|
|
my ($self, $input) = @_; |
198
|
|
|
|
|
|
|
my $xfer = 0; |
199
|
|
|
|
|
|
|
my $fname; |
200
|
|
|
|
|
|
|
my $ftype = 0; |
201
|
|
|
|
|
|
|
my $fid = 0; |
202
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
203
|
|
|
|
|
|
|
while (1) |
204
|
|
|
|
|
|
|
{ |
205
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
206
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
207
|
|
|
|
|
|
|
last; |
208
|
|
|
|
|
|
|
} |
209
|
|
|
|
|
|
|
SWITCH: for($fid) |
210
|
|
|
|
|
|
|
{ |
211
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
212
|
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{currentTime}); |
213
|
|
|
|
|
|
|
} else { |
214
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
215
|
|
|
|
|
|
|
} |
216
|
|
|
|
|
|
|
last; }; |
217
|
|
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::BOOL) { |
218
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{premium}); |
219
|
|
|
|
|
|
|
} else { |
220
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
last; }; |
223
|
|
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::BOOL) { |
224
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{premiumRecurring}); |
225
|
|
|
|
|
|
|
} else { |
226
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
227
|
|
|
|
|
|
|
} |
228
|
|
|
|
|
|
|
last; }; |
229
|
|
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::I64) { |
230
|
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{premiumExpirationDate}); |
231
|
|
|
|
|
|
|
} else { |
232
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
last; }; |
235
|
|
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::BOOL) { |
236
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{premiumExtendable}); |
237
|
|
|
|
|
|
|
} else { |
238
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
239
|
|
|
|
|
|
|
} |
240
|
|
|
|
|
|
|
last; }; |
241
|
|
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::BOOL) { |
242
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{premiumPending}); |
243
|
|
|
|
|
|
|
} else { |
244
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
245
|
|
|
|
|
|
|
} |
246
|
|
|
|
|
|
|
last; }; |
247
|
|
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::BOOL) { |
248
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{premiumCancellationPending}); |
249
|
|
|
|
|
|
|
} else { |
250
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
last; }; |
253
|
|
|
|
|
|
|
/^8$/ && do{ if ($ftype == TType::BOOL) { |
254
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{canPurchaseUploadAllowance}); |
255
|
|
|
|
|
|
|
} else { |
256
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
257
|
|
|
|
|
|
|
} |
258
|
|
|
|
|
|
|
last; }; |
259
|
|
|
|
|
|
|
/^9$/ && do{ if ($ftype == TType::STRING) { |
260
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{sponsoredGroupName}); |
261
|
|
|
|
|
|
|
} else { |
262
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
263
|
|
|
|
|
|
|
} |
264
|
|
|
|
|
|
|
last; }; |
265
|
|
|
|
|
|
|
/^10$/ && do{ if ($ftype == TType::I32) { |
266
|
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{sponsoredGroupRole}); |
267
|
|
|
|
|
|
|
} else { |
268
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
269
|
|
|
|
|
|
|
} |
270
|
|
|
|
|
|
|
last; }; |
271
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
272
|
|
|
|
|
|
|
} |
273
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
274
|
|
|
|
|
|
|
} |
275
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
276
|
|
|
|
|
|
|
return $xfer; |
277
|
|
|
|
|
|
|
} |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
sub write { |
280
|
|
|
|
|
|
|
my ($self, $output) = @_; |
281
|
|
|
|
|
|
|
my $xfer = 0; |
282
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('PremiumInfo'); |
283
|
|
|
|
|
|
|
if (defined $self->{currentTime}) { |
284
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('currentTime', TType::I64, 1); |
285
|
|
|
|
|
|
|
$xfer += $output->writeI64($self->{currentTime}); |
286
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
287
|
|
|
|
|
|
|
} |
288
|
|
|
|
|
|
|
if (defined $self->{premium}) { |
289
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premium', TType::BOOL, 2); |
290
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{premium}); |
291
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
292
|
|
|
|
|
|
|
} |
293
|
|
|
|
|
|
|
if (defined $self->{premiumRecurring}) { |
294
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premiumRecurring', TType::BOOL, 3); |
295
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{premiumRecurring}); |
296
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
297
|
|
|
|
|
|
|
} |
298
|
|
|
|
|
|
|
if (defined $self->{premiumExpirationDate}) { |
299
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premiumExpirationDate', TType::I64, 4); |
300
|
|
|
|
|
|
|
$xfer += $output->writeI64($self->{premiumExpirationDate}); |
301
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
302
|
|
|
|
|
|
|
} |
303
|
|
|
|
|
|
|
if (defined $self->{premiumExtendable}) { |
304
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premiumExtendable', TType::BOOL, 5); |
305
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{premiumExtendable}); |
306
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
307
|
|
|
|
|
|
|
} |
308
|
|
|
|
|
|
|
if (defined $self->{premiumPending}) { |
309
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premiumPending', TType::BOOL, 6); |
310
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{premiumPending}); |
311
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
312
|
|
|
|
|
|
|
} |
313
|
|
|
|
|
|
|
if (defined $self->{premiumCancellationPending}) { |
314
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('premiumCancellationPending', TType::BOOL, 7); |
315
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{premiumCancellationPending}); |
316
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
317
|
|
|
|
|
|
|
} |
318
|
|
|
|
|
|
|
if (defined $self->{canPurchaseUploadAllowance}) { |
319
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('canPurchaseUploadAllowance', TType::BOOL, 8); |
320
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{canPurchaseUploadAllowance}); |
321
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
322
|
|
|
|
|
|
|
} |
323
|
|
|
|
|
|
|
if (defined $self->{sponsoredGroupName}) { |
324
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sponsoredGroupName', TType::STRING, 9); |
325
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{sponsoredGroupName}); |
326
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
327
|
|
|
|
|
|
|
} |
328
|
|
|
|
|
|
|
if (defined $self->{sponsoredGroupRole}) { |
329
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sponsoredGroupRole', TType::I32, 10); |
330
|
|
|
|
|
|
|
$xfer += $output->writeI32($self->{sponsoredGroupRole}); |
331
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
332
|
|
|
|
|
|
|
} |
333
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
334
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
335
|
|
|
|
|
|
|
return $xfer; |
336
|
|
|
|
|
|
|
} |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::AuthenticationResult; |
339
|
|
|
|
|
|
|
use base qw(Class::Accessor); |
340
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::AuthenticationResult->mk_accessors( qw( currentTime authenticationToken expiration user publicUserInfo noteStoreUrl webApiUrlPrefix ) ); |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
sub new { |
343
|
|
|
|
|
|
|
my $classname = shift; |
344
|
|
|
|
|
|
|
my $self = {}; |
345
|
|
|
|
|
|
|
my $vals = shift || {}; |
346
|
|
|
|
|
|
|
$self->{currentTime} = undef; |
347
|
|
|
|
|
|
|
$self->{authenticationToken} = undef; |
348
|
|
|
|
|
|
|
$self->{expiration} = undef; |
349
|
|
|
|
|
|
|
$self->{user} = undef; |
350
|
|
|
|
|
|
|
$self->{publicUserInfo} = undef; |
351
|
|
|
|
|
|
|
$self->{noteStoreUrl} = undef; |
352
|
|
|
|
|
|
|
$self->{webApiUrlPrefix} = undef; |
353
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
354
|
|
|
|
|
|
|
if (defined $vals->{currentTime}) { |
355
|
|
|
|
|
|
|
$self->{currentTime} = $vals->{currentTime}; |
356
|
|
|
|
|
|
|
} |
357
|
|
|
|
|
|
|
if (defined $vals->{authenticationToken}) { |
358
|
|
|
|
|
|
|
$self->{authenticationToken} = $vals->{authenticationToken}; |
359
|
|
|
|
|
|
|
} |
360
|
|
|
|
|
|
|
if (defined $vals->{expiration}) { |
361
|
|
|
|
|
|
|
$self->{expiration} = $vals->{expiration}; |
362
|
|
|
|
|
|
|
} |
363
|
|
|
|
|
|
|
if (defined $vals->{user}) { |
364
|
|
|
|
|
|
|
$self->{user} = $vals->{user}; |
365
|
|
|
|
|
|
|
} |
366
|
|
|
|
|
|
|
if (defined $vals->{publicUserInfo}) { |
367
|
|
|
|
|
|
|
$self->{publicUserInfo} = $vals->{publicUserInfo}; |
368
|
|
|
|
|
|
|
} |
369
|
|
|
|
|
|
|
if (defined $vals->{noteStoreUrl}) { |
370
|
|
|
|
|
|
|
$self->{noteStoreUrl} = $vals->{noteStoreUrl}; |
371
|
|
|
|
|
|
|
} |
372
|
|
|
|
|
|
|
if (defined $vals->{webApiUrlPrefix}) { |
373
|
|
|
|
|
|
|
$self->{webApiUrlPrefix} = $vals->{webApiUrlPrefix}; |
374
|
|
|
|
|
|
|
} |
375
|
|
|
|
|
|
|
} |
376
|
|
|
|
|
|
|
return bless ($self, $classname); |
377
|
|
|
|
|
|
|
} |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
sub getName { |
380
|
|
|
|
|
|
|
return 'AuthenticationResult'; |
381
|
|
|
|
|
|
|
} |
382
|
|
|
|
|
|
|
|
383
|
|
|
|
|
|
|
sub read { |
384
|
|
|
|
|
|
|
my ($self, $input) = @_; |
385
|
|
|
|
|
|
|
my $xfer = 0; |
386
|
|
|
|
|
|
|
my $fname; |
387
|
|
|
|
|
|
|
my $ftype = 0; |
388
|
|
|
|
|
|
|
my $fid = 0; |
389
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
390
|
|
|
|
|
|
|
while (1) |
391
|
|
|
|
|
|
|
{ |
392
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
393
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
394
|
|
|
|
|
|
|
last; |
395
|
|
|
|
|
|
|
} |
396
|
|
|
|
|
|
|
SWITCH: for($fid) |
397
|
|
|
|
|
|
|
{ |
398
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
399
|
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{currentTime}); |
400
|
|
|
|
|
|
|
} else { |
401
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
402
|
|
|
|
|
|
|
} |
403
|
|
|
|
|
|
|
last; }; |
404
|
|
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
405
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{authenticationToken}); |
406
|
|
|
|
|
|
|
} else { |
407
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
408
|
|
|
|
|
|
|
} |
409
|
|
|
|
|
|
|
last; }; |
410
|
|
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I64) { |
411
|
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{expiration}); |
412
|
|
|
|
|
|
|
} else { |
413
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
414
|
|
|
|
|
|
|
} |
415
|
|
|
|
|
|
|
last; }; |
416
|
|
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRUCT) { |
417
|
|
|
|
|
|
|
$self->{user} = Net::Evernote::Simple::EDAMTypes::User->new(); |
418
|
|
|
|
|
|
|
$xfer += $self->{user}->read($input); |
419
|
|
|
|
|
|
|
} else { |
420
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
421
|
|
|
|
|
|
|
} |
422
|
|
|
|
|
|
|
last; }; |
423
|
|
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRUCT) { |
424
|
|
|
|
|
|
|
$self->{publicUserInfo} = Net::Evernote::Simple::EDAMUserStore::PublicUserInfo->new(); |
425
|
|
|
|
|
|
|
$xfer += $self->{publicUserInfo}->read($input); |
426
|
|
|
|
|
|
|
} else { |
427
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
428
|
|
|
|
|
|
|
} |
429
|
|
|
|
|
|
|
last; }; |
430
|
|
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::STRING) { |
431
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{noteStoreUrl}); |
432
|
|
|
|
|
|
|
} else { |
433
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
434
|
|
|
|
|
|
|
} |
435
|
|
|
|
|
|
|
last; }; |
436
|
|
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::STRING) { |
437
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{webApiUrlPrefix}); |
438
|
|
|
|
|
|
|
} else { |
439
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
440
|
|
|
|
|
|
|
} |
441
|
|
|
|
|
|
|
last; }; |
442
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
443
|
|
|
|
|
|
|
} |
444
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
445
|
|
|
|
|
|
|
} |
446
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
447
|
|
|
|
|
|
|
return $xfer; |
448
|
|
|
|
|
|
|
} |
449
|
|
|
|
|
|
|
|
450
|
|
|
|
|
|
|
sub write { |
451
|
|
|
|
|
|
|
my ($self, $output) = @_; |
452
|
|
|
|
|
|
|
my $xfer = 0; |
453
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('AuthenticationResult'); |
454
|
|
|
|
|
|
|
if (defined $self->{currentTime}) { |
455
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('currentTime', TType::I64, 1); |
456
|
|
|
|
|
|
|
$xfer += $output->writeI64($self->{currentTime}); |
457
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
458
|
|
|
|
|
|
|
} |
459
|
|
|
|
|
|
|
if (defined $self->{authenticationToken}) { |
460
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('authenticationToken', TType::STRING, 2); |
461
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{authenticationToken}); |
462
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
463
|
|
|
|
|
|
|
} |
464
|
|
|
|
|
|
|
if (defined $self->{expiration}) { |
465
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('expiration', TType::I64, 3); |
466
|
|
|
|
|
|
|
$xfer += $output->writeI64($self->{expiration}); |
467
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
468
|
|
|
|
|
|
|
} |
469
|
|
|
|
|
|
|
if (defined $self->{user}) { |
470
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('user', TType::STRUCT, 4); |
471
|
|
|
|
|
|
|
$xfer += $self->{user}->write($output); |
472
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
473
|
|
|
|
|
|
|
} |
474
|
|
|
|
|
|
|
if (defined $self->{publicUserInfo}) { |
475
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('publicUserInfo', TType::STRUCT, 5); |
476
|
|
|
|
|
|
|
$xfer += $self->{publicUserInfo}->write($output); |
477
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
478
|
|
|
|
|
|
|
} |
479
|
|
|
|
|
|
|
if (defined $self->{noteStoreUrl}) { |
480
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('noteStoreUrl', TType::STRING, 6); |
481
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{noteStoreUrl}); |
482
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
483
|
|
|
|
|
|
|
} |
484
|
|
|
|
|
|
|
if (defined $self->{webApiUrlPrefix}) { |
485
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('webApiUrlPrefix', TType::STRING, 7); |
486
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{webApiUrlPrefix}); |
487
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
488
|
|
|
|
|
|
|
} |
489
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
490
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
491
|
|
|
|
|
|
|
return $xfer; |
492
|
|
|
|
|
|
|
} |
493
|
|
|
|
|
|
|
|
494
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::BootstrapSettings; |
495
|
|
|
|
|
|
|
use base qw(Class::Accessor); |
496
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::BootstrapSettings->mk_accessors( qw( serviceHost marketingUrl supportUrl accountEmailDomain enableFacebookSharing enableGiftSubscriptions enableSupportTickets enableSharedNotebooks enableSingleNoteSharing enableSponsoredAccounts enableTwitterSharing ) ); |
497
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
sub new { |
499
|
|
|
|
|
|
|
my $classname = shift; |
500
|
|
|
|
|
|
|
my $self = {}; |
501
|
|
|
|
|
|
|
my $vals = shift || {}; |
502
|
|
|
|
|
|
|
$self->{serviceHost} = undef; |
503
|
|
|
|
|
|
|
$self->{marketingUrl} = undef; |
504
|
|
|
|
|
|
|
$self->{supportUrl} = undef; |
505
|
|
|
|
|
|
|
$self->{accountEmailDomain} = undef; |
506
|
|
|
|
|
|
|
$self->{enableFacebookSharing} = undef; |
507
|
|
|
|
|
|
|
$self->{enableGiftSubscriptions} = undef; |
508
|
|
|
|
|
|
|
$self->{enableSupportTickets} = undef; |
509
|
|
|
|
|
|
|
$self->{enableSharedNotebooks} = undef; |
510
|
|
|
|
|
|
|
$self->{enableSingleNoteSharing} = undef; |
511
|
|
|
|
|
|
|
$self->{enableSponsoredAccounts} = undef; |
512
|
|
|
|
|
|
|
$self->{enableTwitterSharing} = undef; |
513
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
514
|
|
|
|
|
|
|
if (defined $vals->{serviceHost}) { |
515
|
|
|
|
|
|
|
$self->{serviceHost} = $vals->{serviceHost}; |
516
|
|
|
|
|
|
|
} |
517
|
|
|
|
|
|
|
if (defined $vals->{marketingUrl}) { |
518
|
|
|
|
|
|
|
$self->{marketingUrl} = $vals->{marketingUrl}; |
519
|
|
|
|
|
|
|
} |
520
|
|
|
|
|
|
|
if (defined $vals->{supportUrl}) { |
521
|
|
|
|
|
|
|
$self->{supportUrl} = $vals->{supportUrl}; |
522
|
|
|
|
|
|
|
} |
523
|
|
|
|
|
|
|
if (defined $vals->{accountEmailDomain}) { |
524
|
|
|
|
|
|
|
$self->{accountEmailDomain} = $vals->{accountEmailDomain}; |
525
|
|
|
|
|
|
|
} |
526
|
|
|
|
|
|
|
if (defined $vals->{enableFacebookSharing}) { |
527
|
|
|
|
|
|
|
$self->{enableFacebookSharing} = $vals->{enableFacebookSharing}; |
528
|
|
|
|
|
|
|
} |
529
|
|
|
|
|
|
|
if (defined $vals->{enableGiftSubscriptions}) { |
530
|
|
|
|
|
|
|
$self->{enableGiftSubscriptions} = $vals->{enableGiftSubscriptions}; |
531
|
|
|
|
|
|
|
} |
532
|
|
|
|
|
|
|
if (defined $vals->{enableSupportTickets}) { |
533
|
|
|
|
|
|
|
$self->{enableSupportTickets} = $vals->{enableSupportTickets}; |
534
|
|
|
|
|
|
|
} |
535
|
|
|
|
|
|
|
if (defined $vals->{enableSharedNotebooks}) { |
536
|
|
|
|
|
|
|
$self->{enableSharedNotebooks} = $vals->{enableSharedNotebooks}; |
537
|
|
|
|
|
|
|
} |
538
|
|
|
|
|
|
|
if (defined $vals->{enableSingleNoteSharing}) { |
539
|
|
|
|
|
|
|
$self->{enableSingleNoteSharing} = $vals->{enableSingleNoteSharing}; |
540
|
|
|
|
|
|
|
} |
541
|
|
|
|
|
|
|
if (defined $vals->{enableSponsoredAccounts}) { |
542
|
|
|
|
|
|
|
$self->{enableSponsoredAccounts} = $vals->{enableSponsoredAccounts}; |
543
|
|
|
|
|
|
|
} |
544
|
|
|
|
|
|
|
if (defined $vals->{enableTwitterSharing}) { |
545
|
|
|
|
|
|
|
$self->{enableTwitterSharing} = $vals->{enableTwitterSharing}; |
546
|
|
|
|
|
|
|
} |
547
|
|
|
|
|
|
|
} |
548
|
|
|
|
|
|
|
return bless ($self, $classname); |
549
|
|
|
|
|
|
|
} |
550
|
|
|
|
|
|
|
|
551
|
|
|
|
|
|
|
sub getName { |
552
|
|
|
|
|
|
|
return 'BootstrapSettings'; |
553
|
|
|
|
|
|
|
} |
554
|
|
|
|
|
|
|
|
555
|
|
|
|
|
|
|
sub read { |
556
|
|
|
|
|
|
|
my ($self, $input) = @_; |
557
|
|
|
|
|
|
|
my $xfer = 0; |
558
|
|
|
|
|
|
|
my $fname; |
559
|
|
|
|
|
|
|
my $ftype = 0; |
560
|
|
|
|
|
|
|
my $fid = 0; |
561
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
562
|
|
|
|
|
|
|
while (1) |
563
|
|
|
|
|
|
|
{ |
564
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
565
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
566
|
|
|
|
|
|
|
last; |
567
|
|
|
|
|
|
|
} |
568
|
|
|
|
|
|
|
SWITCH: for($fid) |
569
|
|
|
|
|
|
|
{ |
570
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
571
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{serviceHost}); |
572
|
|
|
|
|
|
|
} else { |
573
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
574
|
|
|
|
|
|
|
} |
575
|
|
|
|
|
|
|
last; }; |
576
|
|
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
577
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{marketingUrl}); |
578
|
|
|
|
|
|
|
} else { |
579
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
580
|
|
|
|
|
|
|
} |
581
|
|
|
|
|
|
|
last; }; |
582
|
|
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
583
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{supportUrl}); |
584
|
|
|
|
|
|
|
} else { |
585
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
586
|
|
|
|
|
|
|
} |
587
|
|
|
|
|
|
|
last; }; |
588
|
|
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
589
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{accountEmailDomain}); |
590
|
|
|
|
|
|
|
} else { |
591
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
592
|
|
|
|
|
|
|
} |
593
|
|
|
|
|
|
|
last; }; |
594
|
|
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::BOOL) { |
595
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableFacebookSharing}); |
596
|
|
|
|
|
|
|
} else { |
597
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
598
|
|
|
|
|
|
|
} |
599
|
|
|
|
|
|
|
last; }; |
600
|
|
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::BOOL) { |
601
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableGiftSubscriptions}); |
602
|
|
|
|
|
|
|
} else { |
603
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
604
|
|
|
|
|
|
|
} |
605
|
|
|
|
|
|
|
last; }; |
606
|
|
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::BOOL) { |
607
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableSupportTickets}); |
608
|
|
|
|
|
|
|
} else { |
609
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
610
|
|
|
|
|
|
|
} |
611
|
|
|
|
|
|
|
last; }; |
612
|
|
|
|
|
|
|
/^8$/ && do{ if ($ftype == TType::BOOL) { |
613
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableSharedNotebooks}); |
614
|
|
|
|
|
|
|
} else { |
615
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
616
|
|
|
|
|
|
|
} |
617
|
|
|
|
|
|
|
last; }; |
618
|
|
|
|
|
|
|
/^9$/ && do{ if ($ftype == TType::BOOL) { |
619
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableSingleNoteSharing}); |
620
|
|
|
|
|
|
|
} else { |
621
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
622
|
|
|
|
|
|
|
} |
623
|
|
|
|
|
|
|
last; }; |
624
|
|
|
|
|
|
|
/^10$/ && do{ if ($ftype == TType::BOOL) { |
625
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableSponsoredAccounts}); |
626
|
|
|
|
|
|
|
} else { |
627
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
628
|
|
|
|
|
|
|
} |
629
|
|
|
|
|
|
|
last; }; |
630
|
|
|
|
|
|
|
/^11$/ && do{ if ($ftype == TType::BOOL) { |
631
|
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{enableTwitterSharing}); |
632
|
|
|
|
|
|
|
} else { |
633
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
634
|
|
|
|
|
|
|
} |
635
|
|
|
|
|
|
|
last; }; |
636
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
637
|
|
|
|
|
|
|
} |
638
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
639
|
|
|
|
|
|
|
} |
640
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
641
|
|
|
|
|
|
|
return $xfer; |
642
|
|
|
|
|
|
|
} |
643
|
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
sub write { |
645
|
|
|
|
|
|
|
my ($self, $output) = @_; |
646
|
|
|
|
|
|
|
my $xfer = 0; |
647
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('BootstrapSettings'); |
648
|
|
|
|
|
|
|
if (defined $self->{serviceHost}) { |
649
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('serviceHost', TType::STRING, 1); |
650
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{serviceHost}); |
651
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
652
|
|
|
|
|
|
|
} |
653
|
|
|
|
|
|
|
if (defined $self->{marketingUrl}) { |
654
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('marketingUrl', TType::STRING, 2); |
655
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{marketingUrl}); |
656
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
657
|
|
|
|
|
|
|
} |
658
|
|
|
|
|
|
|
if (defined $self->{supportUrl}) { |
659
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('supportUrl', TType::STRING, 3); |
660
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{supportUrl}); |
661
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
662
|
|
|
|
|
|
|
} |
663
|
|
|
|
|
|
|
if (defined $self->{accountEmailDomain}) { |
664
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('accountEmailDomain', TType::STRING, 4); |
665
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{accountEmailDomain}); |
666
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
667
|
|
|
|
|
|
|
} |
668
|
|
|
|
|
|
|
if (defined $self->{enableFacebookSharing}) { |
669
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableFacebookSharing', TType::BOOL, 5); |
670
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableFacebookSharing}); |
671
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
672
|
|
|
|
|
|
|
} |
673
|
|
|
|
|
|
|
if (defined $self->{enableGiftSubscriptions}) { |
674
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableGiftSubscriptions', TType::BOOL, 6); |
675
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableGiftSubscriptions}); |
676
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
677
|
|
|
|
|
|
|
} |
678
|
|
|
|
|
|
|
if (defined $self->{enableSupportTickets}) { |
679
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableSupportTickets', TType::BOOL, 7); |
680
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableSupportTickets}); |
681
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
682
|
|
|
|
|
|
|
} |
683
|
|
|
|
|
|
|
if (defined $self->{enableSharedNotebooks}) { |
684
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableSharedNotebooks', TType::BOOL, 8); |
685
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableSharedNotebooks}); |
686
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
687
|
|
|
|
|
|
|
} |
688
|
|
|
|
|
|
|
if (defined $self->{enableSingleNoteSharing}) { |
689
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableSingleNoteSharing', TType::BOOL, 9); |
690
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableSingleNoteSharing}); |
691
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
692
|
|
|
|
|
|
|
} |
693
|
|
|
|
|
|
|
if (defined $self->{enableSponsoredAccounts}) { |
694
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableSponsoredAccounts', TType::BOOL, 10); |
695
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableSponsoredAccounts}); |
696
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
697
|
|
|
|
|
|
|
} |
698
|
|
|
|
|
|
|
if (defined $self->{enableTwitterSharing}) { |
699
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('enableTwitterSharing', TType::BOOL, 11); |
700
|
|
|
|
|
|
|
$xfer += $output->writeBool($self->{enableTwitterSharing}); |
701
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
702
|
|
|
|
|
|
|
} |
703
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
704
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
705
|
|
|
|
|
|
|
return $xfer; |
706
|
|
|
|
|
|
|
} |
707
|
|
|
|
|
|
|
|
708
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::BootstrapProfile; |
709
|
|
|
|
|
|
|
use base qw(Class::Accessor); |
710
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::BootstrapProfile->mk_accessors( qw( name settings ) ); |
711
|
|
|
|
|
|
|
|
712
|
|
|
|
|
|
|
sub new { |
713
|
|
|
|
|
|
|
my $classname = shift; |
714
|
|
|
|
|
|
|
my $self = {}; |
715
|
|
|
|
|
|
|
my $vals = shift || {}; |
716
|
|
|
|
|
|
|
$self->{name} = undef; |
717
|
|
|
|
|
|
|
$self->{settings} = undef; |
718
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
719
|
|
|
|
|
|
|
if (defined $vals->{name}) { |
720
|
|
|
|
|
|
|
$self->{name} = $vals->{name}; |
721
|
|
|
|
|
|
|
} |
722
|
|
|
|
|
|
|
if (defined $vals->{settings}) { |
723
|
|
|
|
|
|
|
$self->{settings} = $vals->{settings}; |
724
|
|
|
|
|
|
|
} |
725
|
|
|
|
|
|
|
} |
726
|
|
|
|
|
|
|
return bless ($self, $classname); |
727
|
|
|
|
|
|
|
} |
728
|
|
|
|
|
|
|
|
729
|
|
|
|
|
|
|
sub getName { |
730
|
|
|
|
|
|
|
return 'BootstrapProfile'; |
731
|
|
|
|
|
|
|
} |
732
|
|
|
|
|
|
|
|
733
|
|
|
|
|
|
|
sub read { |
734
|
|
|
|
|
|
|
my ($self, $input) = @_; |
735
|
|
|
|
|
|
|
my $xfer = 0; |
736
|
|
|
|
|
|
|
my $fname; |
737
|
|
|
|
|
|
|
my $ftype = 0; |
738
|
|
|
|
|
|
|
my $fid = 0; |
739
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
740
|
|
|
|
|
|
|
while (1) |
741
|
|
|
|
|
|
|
{ |
742
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
743
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
744
|
|
|
|
|
|
|
last; |
745
|
|
|
|
|
|
|
} |
746
|
|
|
|
|
|
|
SWITCH: for($fid) |
747
|
|
|
|
|
|
|
{ |
748
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
749
|
|
|
|
|
|
|
$xfer += $input->readString(\$self->{name}); |
750
|
|
|
|
|
|
|
} else { |
751
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
752
|
|
|
|
|
|
|
} |
753
|
|
|
|
|
|
|
last; }; |
754
|
|
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
755
|
|
|
|
|
|
|
$self->{settings} = Net::Evernote::Simple::EDAMUserStore::BootstrapSettings->new(); |
756
|
|
|
|
|
|
|
$xfer += $self->{settings}->read($input); |
757
|
|
|
|
|
|
|
} else { |
758
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
759
|
|
|
|
|
|
|
} |
760
|
|
|
|
|
|
|
last; }; |
761
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
762
|
|
|
|
|
|
|
} |
763
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
764
|
|
|
|
|
|
|
} |
765
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
766
|
|
|
|
|
|
|
return $xfer; |
767
|
|
|
|
|
|
|
} |
768
|
|
|
|
|
|
|
|
769
|
|
|
|
|
|
|
sub write { |
770
|
|
|
|
|
|
|
my ($self, $output) = @_; |
771
|
|
|
|
|
|
|
my $xfer = 0; |
772
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('BootstrapProfile'); |
773
|
|
|
|
|
|
|
if (defined $self->{name}) { |
774
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('name', TType::STRING, 1); |
775
|
|
|
|
|
|
|
$xfer += $output->writeString($self->{name}); |
776
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
777
|
|
|
|
|
|
|
} |
778
|
|
|
|
|
|
|
if (defined $self->{settings}) { |
779
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('settings', TType::STRUCT, 2); |
780
|
|
|
|
|
|
|
$xfer += $self->{settings}->write($output); |
781
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
782
|
|
|
|
|
|
|
} |
783
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
784
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
785
|
|
|
|
|
|
|
return $xfer; |
786
|
|
|
|
|
|
|
} |
787
|
|
|
|
|
|
|
|
788
|
|
|
|
|
|
|
package Net::Evernote::Simple::EDAMUserStore::BootstrapInfo; |
789
|
|
|
|
|
|
|
use base qw(Class::Accessor); |
790
|
|
|
|
|
|
|
Net::Evernote::Simple::EDAMUserStore::BootstrapInfo->mk_accessors( qw( profiles ) ); |
791
|
|
|
|
|
|
|
|
792
|
|
|
|
|
|
|
sub new { |
793
|
|
|
|
|
|
|
my $classname = shift; |
794
|
|
|
|
|
|
|
my $self = {}; |
795
|
|
|
|
|
|
|
my $vals = shift || {}; |
796
|
|
|
|
|
|
|
$self->{profiles} = undef; |
797
|
|
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
798
|
|
|
|
|
|
|
if (defined $vals->{profiles}) { |
799
|
|
|
|
|
|
|
$self->{profiles} = $vals->{profiles}; |
800
|
|
|
|
|
|
|
} |
801
|
|
|
|
|
|
|
} |
802
|
|
|
|
|
|
|
return bless ($self, $classname); |
803
|
|
|
|
|
|
|
} |
804
|
|
|
|
|
|
|
|
805
|
|
|
|
|
|
|
sub getName { |
806
|
|
|
|
|
|
|
return 'BootstrapInfo'; |
807
|
|
|
|
|
|
|
} |
808
|
|
|
|
|
|
|
|
809
|
|
|
|
|
|
|
sub read { |
810
|
|
|
|
|
|
|
my ($self, $input) = @_; |
811
|
|
|
|
|
|
|
my $xfer = 0; |
812
|
|
|
|
|
|
|
my $fname; |
813
|
|
|
|
|
|
|
my $ftype = 0; |
814
|
|
|
|
|
|
|
my $fid = 0; |
815
|
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
816
|
|
|
|
|
|
|
while (1) |
817
|
|
|
|
|
|
|
{ |
818
|
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
819
|
|
|
|
|
|
|
if ($ftype == TType::STOP) { |
820
|
|
|
|
|
|
|
last; |
821
|
|
|
|
|
|
|
} |
822
|
|
|
|
|
|
|
SWITCH: for($fid) |
823
|
|
|
|
|
|
|
{ |
824
|
|
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
825
|
|
|
|
|
|
|
{ |
826
|
|
|
|
|
|
|
my $_size0 = 0; |
827
|
|
|
|
|
|
|
$self->{profiles} = []; |
828
|
|
|
|
|
|
|
my $_etype3 = 0; |
829
|
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype3, \$_size0); |
830
|
|
|
|
|
|
|
for (my $_i4 = 0; $_i4 < $_size0; ++$_i4) |
831
|
|
|
|
|
|
|
{ |
832
|
|
|
|
|
|
|
my $elem5 = undef; |
833
|
|
|
|
|
|
|
$elem5 = Net::Evernote::Simple::EDAMUserStore::BootstrapProfile->new(); |
834
|
|
|
|
|
|
|
$xfer += $elem5->read($input); |
835
|
|
|
|
|
|
|
push(@{$self->{profiles}},$elem5); |
836
|
|
|
|
|
|
|
} |
837
|
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
838
|
|
|
|
|
|
|
} |
839
|
|
|
|
|
|
|
} else { |
840
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
841
|
|
|
|
|
|
|
} |
842
|
|
|
|
|
|
|
last; }; |
843
|
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
844
|
|
|
|
|
|
|
} |
845
|
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
846
|
|
|
|
|
|
|
} |
847
|
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
848
|
|
|
|
|
|
|
return $xfer; |
849
|
|
|
|
|
|
|
} |
850
|
|
|
|
|
|
|
|
851
|
|
|
|
|
|
|
sub write { |
852
|
|
|
|
|
|
|
my ($self, $output) = @_; |
853
|
|
|
|
|
|
|
my $xfer = 0; |
854
|
|
|
|
|
|
|
$xfer += $output->writeStructBegin('BootstrapInfo'); |
855
|
|
|
|
|
|
|
if (defined $self->{profiles}) { |
856
|
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('profiles', TType::LIST, 1); |
857
|
|
|
|
|
|
|
{ |
858
|
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{profiles}})); |
859
|
|
|
|
|
|
|
{ |
860
|
|
|
|
|
|
|
foreach my $iter6 (@{$self->{profiles}}) |
861
|
|
|
|
|
|
|
{ |
862
|
|
|
|
|
|
|
$xfer += ${iter6}->write($output); |
863
|
|
|
|
|
|
|
} |
864
|
|
|
|
|
|
|
} |
865
|
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
866
|
|
|
|
|
|
|
} |
867
|
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
868
|
|
|
|
|
|
|
} |
869
|
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
870
|
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
871
|
|
|
|
|
|
|
return $xfer; |
872
|
|
|
|
|
|
|
} |
873
|
|
|
|
|
|
|
|
874
|
|
|
|
|
|
|
1; |