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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.8.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
- 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
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
- def struct_fields; FIELDS; end
309
+ end
396
310
 
397
- def validate
398
- end
311
+ # HELPER FUNCTIONS AND STRUCTURES
399
312
 
400
- ::Thrift::Struct.generate_accessors self
401
- end
313
+ class CheckVersion_args
314
+ include ::Thrift::Struct, ::Thrift::Struct_Union
315
+ CLIENTNAME = 1
316
+ EDAMVERSIONMAJOR = 2
317
+ EDAMVERSIONMINOR = 3
402
318
 
403
- class Authenticate_result
404
- include ::Thrift::Struct, ::Thrift::Struct_Union
405
- SUCCESS = 0
406
- USEREXCEPTION = 1
407
- SYSTEMEXCEPTION = 2
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
- 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
- }
325
+ def struct_fields; FIELDS; end
414
326
 
415
- def struct_fields; FIELDS; end
327
+ def validate
328
+ end
416
329
 
417
- def validate
418
- end
330
+ ::Thrift::Struct.generate_accessors self
331
+ end
419
332
 
420
- ::Thrift::Struct.generate_accessors self
421
- end
333
+ class CheckVersion_result
334
+ include ::Thrift::Struct, ::Thrift::Struct_Union
335
+ SUCCESS = 0
422
336
 
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
337
+ FIELDS = {
338
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
339
+ }
431
340
 
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
- }
341
+ def struct_fields; FIELDS; end
440
342
 
441
- def struct_fields; FIELDS; end
343
+ def validate
344
+ end
442
345
 
443
- def validate
444
- end
346
+ ::Thrift::Struct.generate_accessors self
347
+ end
445
348
 
446
- ::Thrift::Struct.generate_accessors self
447
- end
349
+ class GetBootstrapInfo_args
350
+ include ::Thrift::Struct, ::Thrift::Struct_Union
351
+ LOCALE = 1
448
352
 
449
- class AuthenticateLongSession_result
450
- include ::Thrift::Struct, ::Thrift::Struct_Union
451
- SUCCESS = 0
452
- USEREXCEPTION = 1
453
- SYSTEMEXCEPTION = 2
353
+ FIELDS = {
354
+ LOCALE => {:type => ::Thrift::Types::STRING, :name => 'locale'}
355
+ }
454
356
 
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
- }
357
+ def struct_fields; FIELDS; end
460
358
 
461
- def struct_fields; FIELDS; end
359
+ def validate
360
+ end
462
361
 
463
- def validate
464
- end
362
+ ::Thrift::Struct.generate_accessors self
363
+ end
465
364
 
466
- ::Thrift::Struct.generate_accessors self
467
- end
365
+ class GetBootstrapInfo_result
366
+ include ::Thrift::Struct, ::Thrift::Struct_Union
367
+ SUCCESS = 0
468
368
 
469
- class AuthenticateToBusiness_args
470
- include ::Thrift::Struct, ::Thrift::Struct_Union
471
- AUTHENTICATIONTOKEN = 1
369
+ FIELDS = {
370
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Evernote::EDAM::UserStore::BootstrapInfo}
371
+ }
472
372
 
473
- FIELDS = {
474
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
475
- }
373
+ def struct_fields; FIELDS; end
476
374
 
477
- def struct_fields; FIELDS; end
375
+ def validate
376
+ end
478
377
 
479
- def validate
480
- end
378
+ ::Thrift::Struct.generate_accessors self
379
+ end
481
380
 
482
- ::Thrift::Struct.generate_accessors self
483
- end
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
- class AuthenticateToBusiness_result
486
- include ::Thrift::Struct, ::Thrift::Struct_Union
487
- SUCCESS = 0
488
- USEREXCEPTION = 1
489
- SYSTEMEXCEPTION = 2
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
- 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
- }
395
+ def struct_fields; FIELDS; end
496
396
 
497
- def struct_fields; FIELDS; end
397
+ def validate
398
+ end
498
399
 
499
- def validate
500
- end
400
+ ::Thrift::Struct.generate_accessors self
401
+ end
501
402
 
502
- ::Thrift::Struct.generate_accessors self
503
- end
403
+ class Authenticate_result
404
+ include ::Thrift::Struct, ::Thrift::Struct_Union
405
+ SUCCESS = 0
406
+ USEREXCEPTION = 1
407
+ SYSTEMEXCEPTION = 2
504
408
 
505
- class RefreshAuthentication_args
506
- include ::Thrift::Struct, ::Thrift::Struct_Union
507
- AUTHENTICATIONTOKEN = 1
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
- FIELDS = {
510
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
511
- }
415
+ def struct_fields; FIELDS; end
512
416
 
513
- def struct_fields; FIELDS; end
417
+ def validate
418
+ end
514
419
 
515
- def validate
516
- end
420
+ ::Thrift::Struct.generate_accessors self
421
+ end
517
422
 
518
- ::Thrift::Struct.generate_accessors self
519
- end
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
- class RefreshAuthentication_result
522
- include ::Thrift::Struct, ::Thrift::Struct_Union
523
- SUCCESS = 0
524
- USEREXCEPTION = 1
525
- SYSTEMEXCEPTION = 2
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
- 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
- }
441
+ def struct_fields; FIELDS; end
532
442
 
533
- def struct_fields; FIELDS; end
443
+ def validate
444
+ end
534
445
 
535
- def validate
536
- end
446
+ ::Thrift::Struct.generate_accessors self
447
+ end
537
448
 
538
- ::Thrift::Struct.generate_accessors self
539
- end
449
+ class AuthenticateLongSession_result
450
+ include ::Thrift::Struct, ::Thrift::Struct_Union
451
+ SUCCESS = 0
452
+ USEREXCEPTION = 1
453
+ SYSTEMEXCEPTION = 2
540
454
 
541
- class GetUser_args
542
- include ::Thrift::Struct, ::Thrift::Struct_Union
543
- AUTHENTICATIONTOKEN = 1
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
- FIELDS = {
546
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
547
- }
461
+ def struct_fields; FIELDS; end
548
462
 
549
- def struct_fields; FIELDS; end
463
+ def validate
464
+ end
550
465
 
551
- def validate
552
- end
466
+ ::Thrift::Struct.generate_accessors self
467
+ end
553
468
 
554
- ::Thrift::Struct.generate_accessors self
555
- end
469
+ class AuthenticateToBusiness_args
470
+ include ::Thrift::Struct, ::Thrift::Struct_Union
471
+ AUTHENTICATIONTOKEN = 1
556
472
 
557
- class GetUser_result
558
- include ::Thrift::Struct, ::Thrift::Struct_Union
559
- SUCCESS = 0
560
- USEREXCEPTION = 1
561
- SYSTEMEXCEPTION = 2
473
+ FIELDS = {
474
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
475
+ }
562
476
 
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
- }
477
+ def struct_fields; FIELDS; end
568
478
 
569
- def struct_fields; FIELDS; end
479
+ def validate
480
+ end
570
481
 
571
- def validate
572
- end
482
+ ::Thrift::Struct.generate_accessors self
483
+ end
573
484
 
574
- ::Thrift::Struct.generate_accessors self
575
- end
485
+ class AuthenticateToBusiness_result
486
+ include ::Thrift::Struct, ::Thrift::Struct_Union
487
+ SUCCESS = 0
488
+ USEREXCEPTION = 1
489
+ SYSTEMEXCEPTION = 2
576
490
 
577
- class GetPublicUserInfo_args
578
- include ::Thrift::Struct, ::Thrift::Struct_Union
579
- USERNAME = 1
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
- FIELDS = {
582
- USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
583
- }
497
+ def struct_fields; FIELDS; end
584
498
 
585
- def struct_fields; FIELDS; end
499
+ def validate
500
+ end
586
501
 
587
- def validate
588
- end
502
+ ::Thrift::Struct.generate_accessors self
503
+ end
589
504
 
590
- ::Thrift::Struct.generate_accessors self
591
- end
505
+ class RefreshAuthentication_args
506
+ include ::Thrift::Struct, ::Thrift::Struct_Union
507
+ AUTHENTICATIONTOKEN = 1
592
508
 
593
- class GetPublicUserInfo_result
594
- include ::Thrift::Struct, ::Thrift::Struct_Union
595
- SUCCESS = 0
596
- NOTFOUNDEXCEPTION = 1
597
- SYSTEMEXCEPTION = 2
598
- USEREXCEPTION = 3
509
+ FIELDS = {
510
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
511
+ }
599
512
 
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
- }
513
+ def struct_fields; FIELDS; end
606
514
 
607
- def struct_fields; FIELDS; end
515
+ def validate
516
+ end
608
517
 
609
- def validate
610
- end
518
+ ::Thrift::Struct.generate_accessors self
519
+ end
611
520
 
612
- ::Thrift::Struct.generate_accessors self
613
- end
521
+ class RefreshAuthentication_result
522
+ include ::Thrift::Struct, ::Thrift::Struct_Union
523
+ SUCCESS = 0
524
+ USEREXCEPTION = 1
525
+ SYSTEMEXCEPTION = 2
614
526
 
615
- class GetPremiumInfo_args
616
- include ::Thrift::Struct, ::Thrift::Struct_Union
617
- AUTHENTICATIONTOKEN = 1
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
- FIELDS = {
620
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
621
- }
533
+ def struct_fields; FIELDS; end
622
534
 
623
- def struct_fields; FIELDS; end
535
+ def validate
536
+ end
624
537
 
625
- def validate
626
- end
538
+ ::Thrift::Struct.generate_accessors self
539
+ end
627
540
 
628
- ::Thrift::Struct.generate_accessors self
629
- end
541
+ class GetUser_args
542
+ include ::Thrift::Struct, ::Thrift::Struct_Union
543
+ AUTHENTICATIONTOKEN = 1
630
544
 
631
- class GetPremiumInfo_result
632
- include ::Thrift::Struct, ::Thrift::Struct_Union
633
- SUCCESS = 0
634
- USEREXCEPTION = 1
635
- SYSTEMEXCEPTION = 2
545
+ FIELDS = {
546
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
547
+ }
636
548
 
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
- }
549
+ def struct_fields; FIELDS; end
642
550
 
643
- def struct_fields; FIELDS; end
551
+ def validate
552
+ end
644
553
 
645
- def validate
646
- end
554
+ ::Thrift::Struct.generate_accessors self
555
+ end
647
556
 
648
- ::Thrift::Struct.generate_accessors self
649
- end
557
+ class GetUser_result
558
+ include ::Thrift::Struct, ::Thrift::Struct_Union
559
+ SUCCESS = 0
560
+ USEREXCEPTION = 1
561
+ SYSTEMEXCEPTION = 2
650
562
 
651
- class GetNoteStoreUrl_args
652
- include ::Thrift::Struct, ::Thrift::Struct_Union
653
- AUTHENTICATIONTOKEN = 1
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
- FIELDS = {
656
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
657
- }
569
+ def struct_fields; FIELDS; end
658
570
 
659
- def struct_fields; FIELDS; end
571
+ def validate
572
+ end
660
573
 
661
- def validate
662
- end
574
+ ::Thrift::Struct.generate_accessors self
575
+ end
663
576
 
664
- ::Thrift::Struct.generate_accessors self
665
- end
577
+ class GetPublicUserInfo_args
578
+ include ::Thrift::Struct, ::Thrift::Struct_Union
579
+ USERNAME = 1
666
580
 
667
- class GetNoteStoreUrl_result
668
- include ::Thrift::Struct, ::Thrift::Struct_Union
669
- SUCCESS = 0
670
- USEREXCEPTION = 1
671
- SYSTEMEXCEPTION = 2
581
+ FIELDS = {
582
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
583
+ }
672
584
 
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
- }
585
+ def struct_fields; FIELDS; end
678
586
 
679
- def struct_fields; FIELDS; end
587
+ def validate
588
+ end
680
589
 
681
- def validate
682
- end
590
+ ::Thrift::Struct.generate_accessors self
591
+ end
683
592
 
684
- ::Thrift::Struct.generate_accessors self
685
- end
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
- end
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
- end
690
- end
691
- end
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