evernote-thrift 1.23.0 → 1.23.1
Sign up to get free protection for your applications and to get access to all the features.
- data/evernote-thrift.gemspec +1 -1
- data/lib/Evernote/EDAM/errors_constants.rb +5 -4
- data/lib/Evernote/EDAM/errors_types.rb +118 -117
- data/lib/Evernote/EDAM/limits_constants.rb +148 -147
- data/lib/Evernote/EDAM/limits_types.rb +5 -4
- data/lib/Evernote/EDAM/note_store.rb +4989 -4989
- data/lib/Evernote/EDAM/note_store_constants.rb +5 -4
- data/lib/Evernote/EDAM/note_store_types.rb +1078 -1077
- data/lib/Evernote/EDAM/types_constants.rb +11 -10
- data/lib/Evernote/EDAM/types_types.rb +2196 -2166
- data/lib/Evernote/EDAM/user_store.rb +603 -603
- data/lib/Evernote/EDAM/user_store_constants.rb +7 -6
- data/lib/Evernote/EDAM/user_store_types.rb +284 -283
- data/lib/thrift.rb +2 -0
- data/lib/thrift/bytes.rb +131 -0
- data/lib/thrift/protocol/base_protocol.rb +97 -10
- data/lib/thrift/protocol/binary_protocol.rb +15 -7
- data/lib/thrift/protocol/compact_protocol.rb +13 -4
- data/lib/thrift/protocol/json_protocol.rb +765 -0
- data/lib/thrift/struct.rb +1 -1
- data/lib/thrift/struct_union.rb +3 -3
- data/lib/thrift/transport/base_transport.rb +22 -20
- data/lib/thrift/transport/buffered_transport.rb +17 -11
- data/lib/thrift/transport/framed_transport.rb +12 -11
- data/lib/thrift/transport/http_client_transport.rb +6 -4
- data/lib/thrift/transport/io_stream_transport.rb +2 -2
- data/lib/thrift/transport/memory_buffer_transport.rb +6 -6
- data/lib/thrift/transport/socket.rb +4 -2
- metadata +4 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -7,685 +7,685 @@
|
|
7
7
|
require 'thrift'
|
8
8
|
require 'user_store_types'
|
9
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
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
end
|
310
|
-
|
311
|
-
# HELPER FUNCTIONS AND STRUCTURES
|
312
|
-
|
313
|
-
class CheckVersion_args
|
314
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
315
|
-
CLIENTNAME = 1
|
316
|
-
EDAMVERSIONMAJOR = 2
|
317
|
-
EDAMVERSIONMINOR = 3
|
318
|
-
|
319
|
-
FIELDS = {
|
320
|
-
CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
|
321
|
-
EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
|
322
|
-
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 23}
|
323
|
-
}
|
324
|
-
|
325
|
-
def struct_fields; FIELDS; end
|
326
|
-
|
327
|
-
def validate
|
328
|
-
end
|
329
|
-
|
330
|
-
::Thrift::Struct.generate_accessors self
|
331
|
-
end
|
332
|
-
|
333
|
-
class CheckVersion_result
|
334
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
335
|
-
SUCCESS = 0
|
336
|
-
|
337
|
-
FIELDS = {
|
338
|
-
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
339
|
-
}
|
340
|
-
|
341
|
-
def struct_fields; FIELDS; end
|
342
|
-
|
343
|
-
def validate
|
344
|
-
end
|
345
|
-
|
346
|
-
::Thrift::Struct.generate_accessors self
|
347
|
-
end
|
348
|
-
|
349
|
-
class GetBootstrapInfo_args
|
350
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
351
|
-
LOCALE = 1
|
352
|
-
|
353
|
-
FIELDS = {
|
354
|
-
LOCALE => {:type => ::Thrift::Types::STRING, :name => 'locale'}
|
355
|
-
}
|
356
|
-
|
357
|
-
def struct_fields; FIELDS; end
|
358
|
-
|
359
|
-
def validate
|
360
|
-
end
|
361
|
-
|
362
|
-
::Thrift::Struct.generate_accessors self
|
363
|
-
end
|
364
|
-
|
365
|
-
class GetBootstrapInfo_result
|
366
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
367
|
-
SUCCESS = 0
|
368
|
-
|
369
|
-
FIELDS = {
|
370
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::BootstrapInfo}
|
371
|
-
}
|
372
|
-
|
373
|
-
def struct_fields; FIELDS; end
|
374
|
-
|
375
|
-
def validate
|
376
|
-
end
|
377
|
-
|
378
|
-
::Thrift::Struct.generate_accessors self
|
379
|
-
end
|
380
|
-
|
381
|
-
class Authenticate_args
|
382
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
383
|
-
USERNAME = 1
|
384
|
-
PASSWORD = 2
|
385
|
-
CONSUMERKEY = 3
|
386
|
-
CONSUMERSECRET = 4
|
387
|
-
|
388
|
-
FIELDS = {
|
389
|
-
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
390
|
-
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
391
|
-
CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
|
392
|
-
CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'}
|
393
|
-
}
|
10
|
+
module Evernote
|
11
|
+
module EDAM
|
12
|
+
module UserStore
|
13
|
+
module UserStore
|
14
|
+
class Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def checkVersion(clientName, edamVersionMajor, edamVersionMinor)
|
18
|
+
send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
|
19
|
+
return recv_checkVersion()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
|
23
|
+
send_message('checkVersion', CheckVersion_args, :clientName => clientName, :edamVersionMajor => edamVersionMajor, :edamVersionMinor => edamVersionMinor)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_checkVersion()
|
27
|
+
result = receive_message(CheckVersion_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkVersion failed: unknown result')
|
30
|
+
end
|
31
|
+
|
32
|
+
def getBootstrapInfo(locale)
|
33
|
+
send_getBootstrapInfo(locale)
|
34
|
+
return recv_getBootstrapInfo()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_getBootstrapInfo(locale)
|
38
|
+
send_message('getBootstrapInfo', GetBootstrapInfo_args, :locale => locale)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_getBootstrapInfo()
|
42
|
+
result = receive_message(GetBootstrapInfo_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBootstrapInfo failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def authenticate(username, password, consumerKey, consumerSecret)
|
48
|
+
send_authenticate(username, password, consumerKey, consumerSecret)
|
49
|
+
return recv_authenticate()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_authenticate(username, password, consumerKey, consumerSecret)
|
53
|
+
send_message('authenticate', Authenticate_args, :username => username, :password => password, :consumerKey => consumerKey, :consumerSecret => consumerSecret)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_authenticate()
|
57
|
+
result = receive_message(Authenticate_result)
|
58
|
+
return result.success unless result.success.nil?
|
59
|
+
raise result.userException unless result.userException.nil?
|
60
|
+
raise result.systemException unless result.systemException.nil?
|
61
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticate failed: unknown result')
|
62
|
+
end
|
63
|
+
|
64
|
+
def authenticateLongSession(username, password, consumerKey, consumerSecret, deviceIdentifier, deviceDescription)
|
65
|
+
send_authenticateLongSession(username, password, consumerKey, consumerSecret, deviceIdentifier, deviceDescription)
|
66
|
+
return recv_authenticateLongSession()
|
67
|
+
end
|
68
|
+
|
69
|
+
def send_authenticateLongSession(username, password, consumerKey, consumerSecret, deviceIdentifier, deviceDescription)
|
70
|
+
send_message('authenticateLongSession', AuthenticateLongSession_args, :username => username, :password => password, :consumerKey => consumerKey, :consumerSecret => consumerSecret, :deviceIdentifier => deviceIdentifier, :deviceDescription => deviceDescription)
|
71
|
+
end
|
72
|
+
|
73
|
+
def recv_authenticateLongSession()
|
74
|
+
result = receive_message(AuthenticateLongSession_result)
|
75
|
+
return result.success unless result.success.nil?
|
76
|
+
raise result.userException unless result.userException.nil?
|
77
|
+
raise result.systemException unless result.systemException.nil?
|
78
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticateLongSession failed: unknown result')
|
79
|
+
end
|
80
|
+
|
81
|
+
def authenticateToBusiness(authenticationToken)
|
82
|
+
send_authenticateToBusiness(authenticationToken)
|
83
|
+
return recv_authenticateToBusiness()
|
84
|
+
end
|
85
|
+
|
86
|
+
def send_authenticateToBusiness(authenticationToken)
|
87
|
+
send_message('authenticateToBusiness', AuthenticateToBusiness_args, :authenticationToken => authenticationToken)
|
88
|
+
end
|
89
|
+
|
90
|
+
def recv_authenticateToBusiness()
|
91
|
+
result = receive_message(AuthenticateToBusiness_result)
|
92
|
+
return result.success unless result.success.nil?
|
93
|
+
raise result.userException unless result.userException.nil?
|
94
|
+
raise result.systemException unless result.systemException.nil?
|
95
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticateToBusiness failed: unknown result')
|
96
|
+
end
|
97
|
+
|
98
|
+
def refreshAuthentication(authenticationToken)
|
99
|
+
send_refreshAuthentication(authenticationToken)
|
100
|
+
return recv_refreshAuthentication()
|
101
|
+
end
|
102
|
+
|
103
|
+
def send_refreshAuthentication(authenticationToken)
|
104
|
+
send_message('refreshAuthentication', RefreshAuthentication_args, :authenticationToken => authenticationToken)
|
105
|
+
end
|
106
|
+
|
107
|
+
def recv_refreshAuthentication()
|
108
|
+
result = receive_message(RefreshAuthentication_result)
|
109
|
+
return result.success unless result.success.nil?
|
110
|
+
raise result.userException unless result.userException.nil?
|
111
|
+
raise result.systemException unless result.systemException.nil?
|
112
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'refreshAuthentication failed: unknown result')
|
113
|
+
end
|
114
|
+
|
115
|
+
def getUser(authenticationToken)
|
116
|
+
send_getUser(authenticationToken)
|
117
|
+
return recv_getUser()
|
118
|
+
end
|
119
|
+
|
120
|
+
def send_getUser(authenticationToken)
|
121
|
+
send_message('getUser', GetUser_args, :authenticationToken => authenticationToken)
|
122
|
+
end
|
123
|
+
|
124
|
+
def recv_getUser()
|
125
|
+
result = receive_message(GetUser_result)
|
126
|
+
return result.success unless result.success.nil?
|
127
|
+
raise result.userException unless result.userException.nil?
|
128
|
+
raise result.systemException unless result.systemException.nil?
|
129
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUser failed: unknown result')
|
130
|
+
end
|
131
|
+
|
132
|
+
def getPublicUserInfo(username)
|
133
|
+
send_getPublicUserInfo(username)
|
134
|
+
return recv_getPublicUserInfo()
|
135
|
+
end
|
136
|
+
|
137
|
+
def send_getPublicUserInfo(username)
|
138
|
+
send_message('getPublicUserInfo', GetPublicUserInfo_args, :username => username)
|
139
|
+
end
|
140
|
+
|
141
|
+
def recv_getPublicUserInfo()
|
142
|
+
result = receive_message(GetPublicUserInfo_result)
|
143
|
+
return result.success unless result.success.nil?
|
144
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
145
|
+
raise result.systemException unless result.systemException.nil?
|
146
|
+
raise result.userException unless result.userException.nil?
|
147
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicUserInfo failed: unknown result')
|
148
|
+
end
|
149
|
+
|
150
|
+
def getPremiumInfo(authenticationToken)
|
151
|
+
send_getPremiumInfo(authenticationToken)
|
152
|
+
return recv_getPremiumInfo()
|
153
|
+
end
|
154
|
+
|
155
|
+
def send_getPremiumInfo(authenticationToken)
|
156
|
+
send_message('getPremiumInfo', GetPremiumInfo_args, :authenticationToken => authenticationToken)
|
157
|
+
end
|
158
|
+
|
159
|
+
def recv_getPremiumInfo()
|
160
|
+
result = receive_message(GetPremiumInfo_result)
|
161
|
+
return result.success unless result.success.nil?
|
162
|
+
raise result.userException unless result.userException.nil?
|
163
|
+
raise result.systemException unless result.systemException.nil?
|
164
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPremiumInfo failed: unknown result')
|
165
|
+
end
|
166
|
+
|
167
|
+
def getNoteStoreUrl(authenticationToken)
|
168
|
+
send_getNoteStoreUrl(authenticationToken)
|
169
|
+
return recv_getNoteStoreUrl()
|
170
|
+
end
|
171
|
+
|
172
|
+
def send_getNoteStoreUrl(authenticationToken)
|
173
|
+
send_message('getNoteStoreUrl', GetNoteStoreUrl_args, :authenticationToken => authenticationToken)
|
174
|
+
end
|
175
|
+
|
176
|
+
def recv_getNoteStoreUrl()
|
177
|
+
result = receive_message(GetNoteStoreUrl_result)
|
178
|
+
return result.success unless result.success.nil?
|
179
|
+
raise result.userException unless result.userException.nil?
|
180
|
+
raise result.systemException unless result.systemException.nil?
|
181
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteStoreUrl failed: unknown result')
|
182
|
+
end
|
183
|
+
|
184
|
+
end
|
185
|
+
|
186
|
+
class Processor
|
187
|
+
include ::Thrift::Processor
|
188
|
+
|
189
|
+
def process_checkVersion(seqid, iprot, oprot)
|
190
|
+
args = read_args(iprot, CheckVersion_args)
|
191
|
+
result = CheckVersion_result.new()
|
192
|
+
result.success = @handler.checkVersion(args.clientName, args.edamVersionMajor, args.edamVersionMinor)
|
193
|
+
write_result(result, oprot, 'checkVersion', seqid)
|
194
|
+
end
|
195
|
+
|
196
|
+
def process_getBootstrapInfo(seqid, iprot, oprot)
|
197
|
+
args = read_args(iprot, GetBootstrapInfo_args)
|
198
|
+
result = GetBootstrapInfo_result.new()
|
199
|
+
result.success = @handler.getBootstrapInfo(args.locale)
|
200
|
+
write_result(result, oprot, 'getBootstrapInfo', seqid)
|
201
|
+
end
|
202
|
+
|
203
|
+
def process_authenticate(seqid, iprot, oprot)
|
204
|
+
args = read_args(iprot, Authenticate_args)
|
205
|
+
result = Authenticate_result.new()
|
206
|
+
begin
|
207
|
+
result.success = @handler.authenticate(args.username, args.password, args.consumerKey, args.consumerSecret)
|
208
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
209
|
+
result.userException = userException
|
210
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
211
|
+
result.systemException = systemException
|
212
|
+
end
|
213
|
+
write_result(result, oprot, 'authenticate', seqid)
|
214
|
+
end
|
215
|
+
|
216
|
+
def process_authenticateLongSession(seqid, iprot, oprot)
|
217
|
+
args = read_args(iprot, AuthenticateLongSession_args)
|
218
|
+
result = AuthenticateLongSession_result.new()
|
219
|
+
begin
|
220
|
+
result.success = @handler.authenticateLongSession(args.username, args.password, args.consumerKey, args.consumerSecret, args.deviceIdentifier, args.deviceDescription)
|
221
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
222
|
+
result.userException = userException
|
223
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
224
|
+
result.systemException = systemException
|
225
|
+
end
|
226
|
+
write_result(result, oprot, 'authenticateLongSession', seqid)
|
227
|
+
end
|
228
|
+
|
229
|
+
def process_authenticateToBusiness(seqid, iprot, oprot)
|
230
|
+
args = read_args(iprot, AuthenticateToBusiness_args)
|
231
|
+
result = AuthenticateToBusiness_result.new()
|
232
|
+
begin
|
233
|
+
result.success = @handler.authenticateToBusiness(args.authenticationToken)
|
234
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
235
|
+
result.userException = userException
|
236
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
237
|
+
result.systemException = systemException
|
238
|
+
end
|
239
|
+
write_result(result, oprot, 'authenticateToBusiness', seqid)
|
240
|
+
end
|
241
|
+
|
242
|
+
def process_refreshAuthentication(seqid, iprot, oprot)
|
243
|
+
args = read_args(iprot, RefreshAuthentication_args)
|
244
|
+
result = RefreshAuthentication_result.new()
|
245
|
+
begin
|
246
|
+
result.success = @handler.refreshAuthentication(args.authenticationToken)
|
247
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
248
|
+
result.userException = userException
|
249
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
250
|
+
result.systemException = systemException
|
251
|
+
end
|
252
|
+
write_result(result, oprot, 'refreshAuthentication', seqid)
|
253
|
+
end
|
254
|
+
|
255
|
+
def process_getUser(seqid, iprot, oprot)
|
256
|
+
args = read_args(iprot, GetUser_args)
|
257
|
+
result = GetUser_result.new()
|
258
|
+
begin
|
259
|
+
result.success = @handler.getUser(args.authenticationToken)
|
260
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
261
|
+
result.userException = userException
|
262
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
263
|
+
result.systemException = systemException
|
264
|
+
end
|
265
|
+
write_result(result, oprot, 'getUser', seqid)
|
266
|
+
end
|
267
|
+
|
268
|
+
def process_getPublicUserInfo(seqid, iprot, oprot)
|
269
|
+
args = read_args(iprot, GetPublicUserInfo_args)
|
270
|
+
result = GetPublicUserInfo_result.new()
|
271
|
+
begin
|
272
|
+
result.success = @handler.getPublicUserInfo(args.username)
|
273
|
+
rescue ::Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
274
|
+
result.notFoundException = notFoundException
|
275
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
276
|
+
result.systemException = systemException
|
277
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
278
|
+
result.userException = userException
|
279
|
+
end
|
280
|
+
write_result(result, oprot, 'getPublicUserInfo', seqid)
|
281
|
+
end
|
282
|
+
|
283
|
+
def process_getPremiumInfo(seqid, iprot, oprot)
|
284
|
+
args = read_args(iprot, GetPremiumInfo_args)
|
285
|
+
result = GetPremiumInfo_result.new()
|
286
|
+
begin
|
287
|
+
result.success = @handler.getPremiumInfo(args.authenticationToken)
|
288
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
289
|
+
result.userException = userException
|
290
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
291
|
+
result.systemException = systemException
|
292
|
+
end
|
293
|
+
write_result(result, oprot, 'getPremiumInfo', seqid)
|
294
|
+
end
|
295
|
+
|
296
|
+
def process_getNoteStoreUrl(seqid, iprot, oprot)
|
297
|
+
args = read_args(iprot, GetNoteStoreUrl_args)
|
298
|
+
result = GetNoteStoreUrl_result.new()
|
299
|
+
begin
|
300
|
+
result.success = @handler.getNoteStoreUrl(args.authenticationToken)
|
301
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
302
|
+
result.userException = userException
|
303
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
304
|
+
result.systemException = systemException
|
305
|
+
end
|
306
|
+
write_result(result, oprot, 'getNoteStoreUrl', seqid)
|
307
|
+
end
|
394
308
|
|
395
|
-
|
309
|
+
end
|
396
310
|
|
397
|
-
|
398
|
-
end
|
311
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
399
312
|
|
400
|
-
|
401
|
-
|
313
|
+
class CheckVersion_args
|
314
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
315
|
+
CLIENTNAME = 1
|
316
|
+
EDAMVERSIONMAJOR = 2
|
317
|
+
EDAMVERSIONMINOR = 3
|
402
318
|
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
319
|
+
FIELDS = {
|
320
|
+
CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
|
321
|
+
EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
|
322
|
+
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 23}
|
323
|
+
}
|
408
324
|
|
409
|
-
|
410
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
411
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
412
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
413
|
-
}
|
325
|
+
def struct_fields; FIELDS; end
|
414
326
|
|
415
|
-
|
327
|
+
def validate
|
328
|
+
end
|
416
329
|
|
417
|
-
|
418
|
-
|
330
|
+
::Thrift::Struct.generate_accessors self
|
331
|
+
end
|
419
332
|
|
420
|
-
|
421
|
-
|
333
|
+
class CheckVersion_result
|
334
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
335
|
+
SUCCESS = 0
|
422
336
|
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
PASSWORD = 2
|
427
|
-
CONSUMERKEY = 3
|
428
|
-
CONSUMERSECRET = 4
|
429
|
-
DEVICEIDENTIFIER = 5
|
430
|
-
DEVICEDESCRIPTION = 6
|
337
|
+
FIELDS = {
|
338
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
339
|
+
}
|
431
340
|
|
432
|
-
|
433
|
-
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
434
|
-
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
435
|
-
CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
|
436
|
-
CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'},
|
437
|
-
DEVICEIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'deviceIdentifier'},
|
438
|
-
DEVICEDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'deviceDescription'}
|
439
|
-
}
|
341
|
+
def struct_fields; FIELDS; end
|
440
342
|
|
441
|
-
|
343
|
+
def validate
|
344
|
+
end
|
442
345
|
|
443
|
-
|
444
|
-
|
346
|
+
::Thrift::Struct.generate_accessors self
|
347
|
+
end
|
445
348
|
|
446
|
-
|
447
|
-
|
349
|
+
class GetBootstrapInfo_args
|
350
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
351
|
+
LOCALE = 1
|
448
352
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
USEREXCEPTION = 1
|
453
|
-
SYSTEMEXCEPTION = 2
|
353
|
+
FIELDS = {
|
354
|
+
LOCALE => {:type => ::Thrift::Types::STRING, :name => 'locale'}
|
355
|
+
}
|
454
356
|
|
455
|
-
|
456
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
457
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
458
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
459
|
-
}
|
357
|
+
def struct_fields; FIELDS; end
|
460
358
|
|
461
|
-
|
359
|
+
def validate
|
360
|
+
end
|
462
361
|
|
463
|
-
|
464
|
-
|
362
|
+
::Thrift::Struct.generate_accessors self
|
363
|
+
end
|
465
364
|
|
466
|
-
|
467
|
-
|
365
|
+
class GetBootstrapInfo_result
|
366
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
367
|
+
SUCCESS = 0
|
468
368
|
|
469
|
-
|
470
|
-
|
471
|
-
|
369
|
+
FIELDS = {
|
370
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::BootstrapInfo}
|
371
|
+
}
|
472
372
|
|
473
|
-
|
474
|
-
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
475
|
-
}
|
373
|
+
def struct_fields; FIELDS; end
|
476
374
|
|
477
|
-
|
375
|
+
def validate
|
376
|
+
end
|
478
377
|
|
479
|
-
|
480
|
-
|
378
|
+
::Thrift::Struct.generate_accessors self
|
379
|
+
end
|
481
380
|
|
482
|
-
|
483
|
-
|
381
|
+
class Authenticate_args
|
382
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
383
|
+
USERNAME = 1
|
384
|
+
PASSWORD = 2
|
385
|
+
CONSUMERKEY = 3
|
386
|
+
CONSUMERSECRET = 4
|
484
387
|
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
388
|
+
FIELDS = {
|
389
|
+
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
390
|
+
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
391
|
+
CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
|
392
|
+
CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'}
|
393
|
+
}
|
490
394
|
|
491
|
-
|
492
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
493
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
494
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
495
|
-
}
|
395
|
+
def struct_fields; FIELDS; end
|
496
396
|
|
497
|
-
|
397
|
+
def validate
|
398
|
+
end
|
498
399
|
|
499
|
-
|
500
|
-
|
400
|
+
::Thrift::Struct.generate_accessors self
|
401
|
+
end
|
501
402
|
|
502
|
-
|
503
|
-
|
403
|
+
class Authenticate_result
|
404
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
405
|
+
SUCCESS = 0
|
406
|
+
USEREXCEPTION = 1
|
407
|
+
SYSTEMEXCEPTION = 2
|
504
408
|
|
505
|
-
|
506
|
-
|
507
|
-
|
409
|
+
FIELDS = {
|
410
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::AuthenticationResult},
|
411
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
412
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
413
|
+
}
|
508
414
|
|
509
|
-
|
510
|
-
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
511
|
-
}
|
415
|
+
def struct_fields; FIELDS; end
|
512
416
|
|
513
|
-
|
417
|
+
def validate
|
418
|
+
end
|
514
419
|
|
515
|
-
|
516
|
-
|
420
|
+
::Thrift::Struct.generate_accessors self
|
421
|
+
end
|
517
422
|
|
518
|
-
|
519
|
-
|
423
|
+
class AuthenticateLongSession_args
|
424
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
425
|
+
USERNAME = 1
|
426
|
+
PASSWORD = 2
|
427
|
+
CONSUMERKEY = 3
|
428
|
+
CONSUMERSECRET = 4
|
429
|
+
DEVICEIDENTIFIER = 5
|
430
|
+
DEVICEDESCRIPTION = 6
|
520
431
|
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
432
|
+
FIELDS = {
|
433
|
+
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
434
|
+
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
435
|
+
CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
|
436
|
+
CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'},
|
437
|
+
DEVICEIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'deviceIdentifier'},
|
438
|
+
DEVICEDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'deviceDescription'}
|
439
|
+
}
|
526
440
|
|
527
|
-
|
528
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
529
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
530
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
531
|
-
}
|
441
|
+
def struct_fields; FIELDS; end
|
532
442
|
|
533
|
-
|
443
|
+
def validate
|
444
|
+
end
|
534
445
|
|
535
|
-
|
536
|
-
|
446
|
+
::Thrift::Struct.generate_accessors self
|
447
|
+
end
|
537
448
|
|
538
|
-
|
539
|
-
|
449
|
+
class AuthenticateLongSession_result
|
450
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
451
|
+
SUCCESS = 0
|
452
|
+
USEREXCEPTION = 1
|
453
|
+
SYSTEMEXCEPTION = 2
|
540
454
|
|
541
|
-
|
542
|
-
|
543
|
-
|
455
|
+
FIELDS = {
|
456
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::AuthenticationResult},
|
457
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
458
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
459
|
+
}
|
544
460
|
|
545
|
-
|
546
|
-
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
547
|
-
}
|
461
|
+
def struct_fields; FIELDS; end
|
548
462
|
|
549
|
-
|
463
|
+
def validate
|
464
|
+
end
|
550
465
|
|
551
|
-
|
552
|
-
|
466
|
+
::Thrift::Struct.generate_accessors self
|
467
|
+
end
|
553
468
|
|
554
|
-
|
555
|
-
|
469
|
+
class AuthenticateToBusiness_args
|
470
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
471
|
+
AUTHENTICATIONTOKEN = 1
|
556
472
|
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
USEREXCEPTION = 1
|
561
|
-
SYSTEMEXCEPTION = 2
|
473
|
+
FIELDS = {
|
474
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
475
|
+
}
|
562
476
|
|
563
|
-
|
564
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::User},
|
565
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
566
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
567
|
-
}
|
477
|
+
def struct_fields; FIELDS; end
|
568
478
|
|
569
|
-
|
479
|
+
def validate
|
480
|
+
end
|
570
481
|
|
571
|
-
|
572
|
-
|
482
|
+
::Thrift::Struct.generate_accessors self
|
483
|
+
end
|
573
484
|
|
574
|
-
|
575
|
-
|
485
|
+
class AuthenticateToBusiness_result
|
486
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
487
|
+
SUCCESS = 0
|
488
|
+
USEREXCEPTION = 1
|
489
|
+
SYSTEMEXCEPTION = 2
|
576
490
|
|
577
|
-
|
578
|
-
|
579
|
-
|
491
|
+
FIELDS = {
|
492
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::AuthenticationResult},
|
493
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
494
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
495
|
+
}
|
580
496
|
|
581
|
-
|
582
|
-
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
|
583
|
-
}
|
497
|
+
def struct_fields; FIELDS; end
|
584
498
|
|
585
|
-
|
499
|
+
def validate
|
500
|
+
end
|
586
501
|
|
587
|
-
|
588
|
-
|
502
|
+
::Thrift::Struct.generate_accessors self
|
503
|
+
end
|
589
504
|
|
590
|
-
|
591
|
-
|
505
|
+
class RefreshAuthentication_args
|
506
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
507
|
+
AUTHENTICATIONTOKEN = 1
|
592
508
|
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
NOTFOUNDEXCEPTION = 1
|
597
|
-
SYSTEMEXCEPTION = 2
|
598
|
-
USEREXCEPTION = 3
|
509
|
+
FIELDS = {
|
510
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
511
|
+
}
|
599
512
|
|
600
|
-
|
601
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PublicUserInfo},
|
602
|
-
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
|
603
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
604
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}
|
605
|
-
}
|
513
|
+
def struct_fields; FIELDS; end
|
606
514
|
|
607
|
-
|
515
|
+
def validate
|
516
|
+
end
|
608
517
|
|
609
|
-
|
610
|
-
|
518
|
+
::Thrift::Struct.generate_accessors self
|
519
|
+
end
|
611
520
|
|
612
|
-
|
613
|
-
|
521
|
+
class RefreshAuthentication_result
|
522
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
523
|
+
SUCCESS = 0
|
524
|
+
USEREXCEPTION = 1
|
525
|
+
SYSTEMEXCEPTION = 2
|
614
526
|
|
615
|
-
|
616
|
-
|
617
|
-
|
527
|
+
FIELDS = {
|
528
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::AuthenticationResult},
|
529
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
530
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
531
|
+
}
|
618
532
|
|
619
|
-
|
620
|
-
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
621
|
-
}
|
533
|
+
def struct_fields; FIELDS; end
|
622
534
|
|
623
|
-
|
535
|
+
def validate
|
536
|
+
end
|
624
537
|
|
625
|
-
|
626
|
-
|
538
|
+
::Thrift::Struct.generate_accessors self
|
539
|
+
end
|
627
540
|
|
628
|
-
|
629
|
-
|
541
|
+
class GetUser_args
|
542
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
543
|
+
AUTHENTICATIONTOKEN = 1
|
630
544
|
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
USEREXCEPTION = 1
|
635
|
-
SYSTEMEXCEPTION = 2
|
545
|
+
FIELDS = {
|
546
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
547
|
+
}
|
636
548
|
|
637
|
-
|
638
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::PremiumInfo},
|
639
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
640
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
641
|
-
}
|
549
|
+
def struct_fields; FIELDS; end
|
642
550
|
|
643
|
-
|
551
|
+
def validate
|
552
|
+
end
|
644
553
|
|
645
|
-
|
646
|
-
|
554
|
+
::Thrift::Struct.generate_accessors self
|
555
|
+
end
|
647
556
|
|
648
|
-
|
649
|
-
|
557
|
+
class GetUser_result
|
558
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
559
|
+
SUCCESS = 0
|
560
|
+
USEREXCEPTION = 1
|
561
|
+
SYSTEMEXCEPTION = 2
|
650
562
|
|
651
|
-
|
652
|
-
|
653
|
-
|
563
|
+
FIELDS = {
|
564
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::Type::User},
|
565
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
566
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
567
|
+
}
|
654
568
|
|
655
|
-
|
656
|
-
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
657
|
-
}
|
569
|
+
def struct_fields; FIELDS; end
|
658
570
|
|
659
|
-
|
571
|
+
def validate
|
572
|
+
end
|
660
573
|
|
661
|
-
|
662
|
-
|
574
|
+
::Thrift::Struct.generate_accessors self
|
575
|
+
end
|
663
576
|
|
664
|
-
|
665
|
-
|
577
|
+
class GetPublicUserInfo_args
|
578
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
579
|
+
USERNAME = 1
|
666
580
|
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
USEREXCEPTION = 1
|
671
|
-
SYSTEMEXCEPTION = 2
|
581
|
+
FIELDS = {
|
582
|
+
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
|
583
|
+
}
|
672
584
|
|
673
|
-
|
674
|
-
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
675
|
-
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
676
|
-
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
677
|
-
}
|
585
|
+
def struct_fields; FIELDS; end
|
678
586
|
|
679
|
-
|
587
|
+
def validate
|
588
|
+
end
|
680
589
|
|
681
|
-
|
682
|
-
|
590
|
+
::Thrift::Struct.generate_accessors self
|
591
|
+
end
|
683
592
|
|
684
|
-
|
685
|
-
|
593
|
+
class GetPublicUserInfo_result
|
594
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
595
|
+
SUCCESS = 0
|
596
|
+
NOTFOUNDEXCEPTION = 1
|
597
|
+
SYSTEMEXCEPTION = 2
|
598
|
+
USEREXCEPTION = 3
|
686
599
|
|
687
|
-
|
600
|
+
FIELDS = {
|
601
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::PublicUserInfo},
|
602
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => ::Evernote::EDAM::Error::EDAMNotFoundException},
|
603
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException},
|
604
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException}
|
605
|
+
}
|
688
606
|
|
689
|
-
|
690
|
-
|
691
|
-
|
607
|
+
def struct_fields; FIELDS; end
|
608
|
+
|
609
|
+
def validate
|
610
|
+
end
|
611
|
+
|
612
|
+
::Thrift::Struct.generate_accessors self
|
613
|
+
end
|
614
|
+
|
615
|
+
class GetPremiumInfo_args
|
616
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
617
|
+
AUTHENTICATIONTOKEN = 1
|
618
|
+
|
619
|
+
FIELDS = {
|
620
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
621
|
+
}
|
622
|
+
|
623
|
+
def struct_fields; FIELDS; end
|
624
|
+
|
625
|
+
def validate
|
626
|
+
end
|
627
|
+
|
628
|
+
::Thrift::Struct.generate_accessors self
|
629
|
+
end
|
630
|
+
|
631
|
+
class GetPremiumInfo_result
|
632
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
633
|
+
SUCCESS = 0
|
634
|
+
USEREXCEPTION = 1
|
635
|
+
SYSTEMEXCEPTION = 2
|
636
|
+
|
637
|
+
FIELDS = {
|
638
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::Type::PremiumInfo},
|
639
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
640
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
641
|
+
}
|
642
|
+
|
643
|
+
def struct_fields; FIELDS; end
|
644
|
+
|
645
|
+
def validate
|
646
|
+
end
|
647
|
+
|
648
|
+
::Thrift::Struct.generate_accessors self
|
649
|
+
end
|
650
|
+
|
651
|
+
class GetNoteStoreUrl_args
|
652
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
653
|
+
AUTHENTICATIONTOKEN = 1
|
654
|
+
|
655
|
+
FIELDS = {
|
656
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
657
|
+
}
|
658
|
+
|
659
|
+
def struct_fields; FIELDS; end
|
660
|
+
|
661
|
+
def validate
|
662
|
+
end
|
663
|
+
|
664
|
+
::Thrift::Struct.generate_accessors self
|
665
|
+
end
|
666
|
+
|
667
|
+
class GetNoteStoreUrl_result
|
668
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
669
|
+
SUCCESS = 0
|
670
|
+
USEREXCEPTION = 1
|
671
|
+
SYSTEMEXCEPTION = 2
|
672
|
+
|
673
|
+
FIELDS = {
|
674
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
675
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
676
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
677
|
+
}
|
678
|
+
|
679
|
+
def struct_fields; FIELDS; end
|
680
|
+
|
681
|
+
def validate
|
682
|
+
end
|
683
|
+
|
684
|
+
::Thrift::Struct.generate_accessors self
|
685
|
+
end
|
686
|
+
|
687
|
+
end
|
688
|
+
|
689
|
+
end
|
690
|
+
end
|
691
|
+
end
|