log4ever 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +33 -0
  2. data/.project +11 -0
  3. data/README.md +36 -0
  4. data/config/evernote.auth.test.yml +1 -0
  5. data/config/log4r.xml +19 -0
  6. data/lib/log4r/evernote/lib/Evernote/EDAM/errors_constants.rb +14 -0
  7. data/lib/log4r/evernote/lib/Evernote/EDAM/errors_types.rb +128 -0
  8. data/lib/log4r/evernote/lib/Evernote/EDAM/limits_constants.rb +240 -0
  9. data/lib/log4r/evernote/lib/Evernote/EDAM/limits_types.rb +13 -0
  10. data/lib/log4r/evernote/lib/Evernote/EDAM/note_store.rb +5487 -0
  11. data/lib/log4r/evernote/lib/Evernote/EDAM/note_store_constants.rb +14 -0
  12. data/lib/log4r/evernote/lib/Evernote/EDAM/note_store_types.rb +1012 -0
  13. data/lib/log4r/evernote/lib/Evernote/EDAM/types_constants.rb +20 -0
  14. data/lib/log4r/evernote/lib/Evernote/EDAM/types_types.rb +1792 -0
  15. data/lib/log4r/evernote/lib/Evernote/EDAM/user_store.rb +549 -0
  16. data/lib/log4r/evernote/lib/Evernote/EDAM/user_store_constants.rb +18 -0
  17. data/lib/log4r/evernote/lib/Evernote/EDAM/user_store_types.rb +415 -0
  18. data/lib/log4r/evernote/lib/thrift/client.rb +62 -0
  19. data/lib/log4r/evernote/lib/thrift/core_ext/fixnum.rb +29 -0
  20. data/lib/log4r/evernote/lib/thrift/core_ext.rb +23 -0
  21. data/lib/log4r/evernote/lib/thrift/exceptions.rb +84 -0
  22. data/lib/log4r/evernote/lib/thrift/processor.rb +57 -0
  23. data/lib/log4r/evernote/lib/thrift/protocol/base_protocol.rb +290 -0
  24. data/lib/log4r/evernote/lib/thrift/protocol/binary_protocol.rb +229 -0
  25. data/lib/log4r/evernote/lib/thrift/protocol/binary_protocol_accelerated.rb +39 -0
  26. data/lib/log4r/evernote/lib/thrift/protocol/compact_protocol.rb +426 -0
  27. data/lib/log4r/evernote/lib/thrift/serializer/deserializer.rb +33 -0
  28. data/lib/log4r/evernote/lib/thrift/serializer/serializer.rb +34 -0
  29. data/lib/log4r/evernote/lib/thrift/server/base_server.rb +31 -0
  30. data/lib/log4r/evernote/lib/thrift/server/mongrel_http_server.rb +58 -0
  31. data/lib/log4r/evernote/lib/thrift/server/nonblocking_server.rb +305 -0
  32. data/lib/log4r/evernote/lib/thrift/server/simple_server.rb +43 -0
  33. data/lib/log4r/evernote/lib/thrift/server/thread_pool_server.rb +75 -0
  34. data/lib/log4r/evernote/lib/thrift/server/threaded_server.rb +47 -0
  35. data/lib/log4r/evernote/lib/thrift/struct.rb +237 -0
  36. data/lib/log4r/evernote/lib/thrift/struct_union.rb +192 -0
  37. data/lib/log4r/evernote/lib/thrift/thrift_native.rb +24 -0
  38. data/lib/log4r/evernote/lib/thrift/transport/base_server_transport.rb +37 -0
  39. data/lib/log4r/evernote/lib/thrift/transport/base_transport.rb +107 -0
  40. data/lib/log4r/evernote/lib/thrift/transport/buffered_transport.rb +108 -0
  41. data/lib/log4r/evernote/lib/thrift/transport/framed_transport.rb +116 -0
  42. data/lib/log4r/evernote/lib/thrift/transport/http_client_transport.rb +53 -0
  43. data/lib/log4r/evernote/lib/thrift/transport/io_stream_transport.rb +39 -0
  44. data/lib/log4r/evernote/lib/thrift/transport/memory_buffer_transport.rb +125 -0
  45. data/lib/log4r/evernote/lib/thrift/transport/server_socket.rb +63 -0
  46. data/lib/log4r/evernote/lib/thrift/transport/socket.rb +137 -0
  47. data/lib/log4r/evernote/lib/thrift/transport/unix_server_socket.rb +60 -0
  48. data/lib/log4r/evernote/lib/thrift/transport/unix_socket.rb +40 -0
  49. data/lib/log4r/evernote/lib/thrift/types.rb +101 -0
  50. data/lib/log4r/evernote/lib/thrift/union.rb +179 -0
  51. data/lib/log4r/evernote/lib/thrift.rb +64 -0
  52. data/lib/log4r/evernote.rb +206 -0
  53. data/lib/log4r/outputter/evernoteoutputter.rb +156 -0
  54. data/spec/log4ever_spec.rb +94 -0
  55. data/spec/spec_helper.rb +14 -0
  56. metadata +105 -0
@@ -0,0 +1,549 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'user_store_types'
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 refreshAuthentication(authenticationToken)
65
+ send_refreshAuthentication(authenticationToken)
66
+ return recv_refreshAuthentication()
67
+ end
68
+
69
+ def send_refreshAuthentication(authenticationToken)
70
+ send_message('refreshAuthentication', RefreshAuthentication_args, :authenticationToken => authenticationToken)
71
+ end
72
+
73
+ def recv_refreshAuthentication()
74
+ result = receive_message(RefreshAuthentication_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, 'refreshAuthentication failed: unknown result')
79
+ end
80
+
81
+ def getUser(authenticationToken)
82
+ send_getUser(authenticationToken)
83
+ return recv_getUser()
84
+ end
85
+
86
+ def send_getUser(authenticationToken)
87
+ send_message('getUser', GetUser_args, :authenticationToken => authenticationToken)
88
+ end
89
+
90
+ def recv_getUser()
91
+ result = receive_message(GetUser_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, 'getUser failed: unknown result')
96
+ end
97
+
98
+ def getPublicUserInfo(username)
99
+ send_getPublicUserInfo(username)
100
+ return recv_getPublicUserInfo()
101
+ end
102
+
103
+ def send_getPublicUserInfo(username)
104
+ send_message('getPublicUserInfo', GetPublicUserInfo_args, :username => username)
105
+ end
106
+
107
+ def recv_getPublicUserInfo()
108
+ result = receive_message(GetPublicUserInfo_result)
109
+ return result.success unless result.success.nil?
110
+ raise result.notFoundException unless result.notFoundException.nil?
111
+ raise result.systemException unless result.systemException.nil?
112
+ raise result.userException unless result.userException.nil?
113
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicUserInfo failed: unknown result')
114
+ end
115
+
116
+ def getPremiumInfo(authenticationToken)
117
+ send_getPremiumInfo(authenticationToken)
118
+ return recv_getPremiumInfo()
119
+ end
120
+
121
+ def send_getPremiumInfo(authenticationToken)
122
+ send_message('getPremiumInfo', GetPremiumInfo_args, :authenticationToken => authenticationToken)
123
+ end
124
+
125
+ def recv_getPremiumInfo()
126
+ result = receive_message(GetPremiumInfo_result)
127
+ return result.success unless result.success.nil?
128
+ raise result.userException unless result.userException.nil?
129
+ raise result.systemException unless result.systemException.nil?
130
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPremiumInfo failed: unknown result')
131
+ end
132
+
133
+ def getNoteStoreUrl(authenticationToken)
134
+ send_getNoteStoreUrl(authenticationToken)
135
+ return recv_getNoteStoreUrl()
136
+ end
137
+
138
+ def send_getNoteStoreUrl(authenticationToken)
139
+ send_message('getNoteStoreUrl', GetNoteStoreUrl_args, :authenticationToken => authenticationToken)
140
+ end
141
+
142
+ def recv_getNoteStoreUrl()
143
+ result = receive_message(GetNoteStoreUrl_result)
144
+ return result.success unless result.success.nil?
145
+ raise result.userException unless result.userException.nil?
146
+ raise result.systemException unless result.systemException.nil?
147
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteStoreUrl failed: unknown result')
148
+ end
149
+
150
+ end
151
+
152
+ class Processor
153
+ include ::Thrift::Processor
154
+
155
+ def process_checkVersion(seqid, iprot, oprot)
156
+ args = read_args(iprot, CheckVersion_args)
157
+ result = CheckVersion_result.new()
158
+ result.success = @handler.checkVersion(args.clientName, args.edamVersionMajor, args.edamVersionMinor)
159
+ write_result(result, oprot, 'checkVersion', seqid)
160
+ end
161
+
162
+ def process_getBootstrapInfo(seqid, iprot, oprot)
163
+ args = read_args(iprot, GetBootstrapInfo_args)
164
+ result = GetBootstrapInfo_result.new()
165
+ result.success = @handler.getBootstrapInfo(args.locale)
166
+ write_result(result, oprot, 'getBootstrapInfo', seqid)
167
+ end
168
+
169
+ def process_authenticate(seqid, iprot, oprot)
170
+ args = read_args(iprot, Authenticate_args)
171
+ result = Authenticate_result.new()
172
+ begin
173
+ result.success = @handler.authenticate(args.username, args.password, args.consumerKey, args.consumerSecret)
174
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
175
+ result.userException = userException
176
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
177
+ result.systemException = systemException
178
+ end
179
+ write_result(result, oprot, 'authenticate', seqid)
180
+ end
181
+
182
+ def process_refreshAuthentication(seqid, iprot, oprot)
183
+ args = read_args(iprot, RefreshAuthentication_args)
184
+ result = RefreshAuthentication_result.new()
185
+ begin
186
+ result.success = @handler.refreshAuthentication(args.authenticationToken)
187
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
188
+ result.userException = userException
189
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
190
+ result.systemException = systemException
191
+ end
192
+ write_result(result, oprot, 'refreshAuthentication', seqid)
193
+ end
194
+
195
+ def process_getUser(seqid, iprot, oprot)
196
+ args = read_args(iprot, GetUser_args)
197
+ result = GetUser_result.new()
198
+ begin
199
+ result.success = @handler.getUser(args.authenticationToken)
200
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
201
+ result.userException = userException
202
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
203
+ result.systemException = systemException
204
+ end
205
+ write_result(result, oprot, 'getUser', seqid)
206
+ end
207
+
208
+ def process_getPublicUserInfo(seqid, iprot, oprot)
209
+ args = read_args(iprot, GetPublicUserInfo_args)
210
+ result = GetPublicUserInfo_result.new()
211
+ begin
212
+ result.success = @handler.getPublicUserInfo(args.username)
213
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
214
+ result.notFoundException = notFoundException
215
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
216
+ result.systemException = systemException
217
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
218
+ result.userException = userException
219
+ end
220
+ write_result(result, oprot, 'getPublicUserInfo', seqid)
221
+ end
222
+
223
+ def process_getPremiumInfo(seqid, iprot, oprot)
224
+ args = read_args(iprot, GetPremiumInfo_args)
225
+ result = GetPremiumInfo_result.new()
226
+ begin
227
+ result.success = @handler.getPremiumInfo(args.authenticationToken)
228
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
229
+ result.userException = userException
230
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
231
+ result.systemException = systemException
232
+ end
233
+ write_result(result, oprot, 'getPremiumInfo', seqid)
234
+ end
235
+
236
+ def process_getNoteStoreUrl(seqid, iprot, oprot)
237
+ args = read_args(iprot, GetNoteStoreUrl_args)
238
+ result = GetNoteStoreUrl_result.new()
239
+ begin
240
+ result.success = @handler.getNoteStoreUrl(args.authenticationToken)
241
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
242
+ result.userException = userException
243
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
244
+ result.systemException = systemException
245
+ end
246
+ write_result(result, oprot, 'getNoteStoreUrl', seqid)
247
+ end
248
+
249
+ end
250
+
251
+ # HELPER FUNCTIONS AND STRUCTURES
252
+
253
+ class CheckVersion_args
254
+ include ::Thrift::Struct, ::Thrift::Struct_Union
255
+ CLIENTNAME = 1
256
+ EDAMVERSIONMAJOR = 2
257
+ EDAMVERSIONMINOR = 3
258
+
259
+ FIELDS = {
260
+ CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
261
+ EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
262
+ EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 21}
263
+ }
264
+
265
+ def struct_fields; FIELDS; end
266
+
267
+ def validate
268
+ end
269
+
270
+ ::Thrift::Struct.generate_accessors self
271
+ end
272
+
273
+ class CheckVersion_result
274
+ include ::Thrift::Struct, ::Thrift::Struct_Union
275
+ SUCCESS = 0
276
+
277
+ FIELDS = {
278
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
279
+ }
280
+
281
+ def struct_fields; FIELDS; end
282
+
283
+ def validate
284
+ end
285
+
286
+ ::Thrift::Struct.generate_accessors self
287
+ end
288
+
289
+ class GetBootstrapInfo_args
290
+ include ::Thrift::Struct, ::Thrift::Struct_Union
291
+ LOCALE = 1
292
+
293
+ FIELDS = {
294
+ LOCALE => {:type => ::Thrift::Types::STRING, :name => 'locale'}
295
+ }
296
+
297
+ def struct_fields; FIELDS; end
298
+
299
+ def validate
300
+ end
301
+
302
+ ::Thrift::Struct.generate_accessors self
303
+ end
304
+
305
+ class GetBootstrapInfo_result
306
+ include ::Thrift::Struct, ::Thrift::Struct_Union
307
+ SUCCESS = 0
308
+
309
+ FIELDS = {
310
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::BootstrapInfo}
311
+ }
312
+
313
+ def struct_fields; FIELDS; end
314
+
315
+ def validate
316
+ end
317
+
318
+ ::Thrift::Struct.generate_accessors self
319
+ end
320
+
321
+ class Authenticate_args
322
+ include ::Thrift::Struct, ::Thrift::Struct_Union
323
+ USERNAME = 1
324
+ PASSWORD = 2
325
+ CONSUMERKEY = 3
326
+ CONSUMERSECRET = 4
327
+
328
+ FIELDS = {
329
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
330
+ PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
331
+ CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
332
+ CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'}
333
+ }
334
+
335
+ def struct_fields; FIELDS; end
336
+
337
+ def validate
338
+ end
339
+
340
+ ::Thrift::Struct.generate_accessors self
341
+ end
342
+
343
+ class Authenticate_result
344
+ include ::Thrift::Struct, ::Thrift::Struct_Union
345
+ SUCCESS = 0
346
+ USEREXCEPTION = 1
347
+ SYSTEMEXCEPTION = 2
348
+
349
+ FIELDS = {
350
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
351
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
352
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
353
+ }
354
+
355
+ def struct_fields; FIELDS; end
356
+
357
+ def validate
358
+ end
359
+
360
+ ::Thrift::Struct.generate_accessors self
361
+ end
362
+
363
+ class RefreshAuthentication_args
364
+ include ::Thrift::Struct, ::Thrift::Struct_Union
365
+ AUTHENTICATIONTOKEN = 1
366
+
367
+ FIELDS = {
368
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
369
+ }
370
+
371
+ def struct_fields; FIELDS; end
372
+
373
+ def validate
374
+ end
375
+
376
+ ::Thrift::Struct.generate_accessors self
377
+ end
378
+
379
+ class RefreshAuthentication_result
380
+ include ::Thrift::Struct, ::Thrift::Struct_Union
381
+ SUCCESS = 0
382
+ USEREXCEPTION = 1
383
+ SYSTEMEXCEPTION = 2
384
+
385
+ FIELDS = {
386
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
387
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
388
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
389
+ }
390
+
391
+ def struct_fields; FIELDS; end
392
+
393
+ def validate
394
+ end
395
+
396
+ ::Thrift::Struct.generate_accessors self
397
+ end
398
+
399
+ class GetUser_args
400
+ include ::Thrift::Struct, ::Thrift::Struct_Union
401
+ AUTHENTICATIONTOKEN = 1
402
+
403
+ FIELDS = {
404
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
405
+ }
406
+
407
+ def struct_fields; FIELDS; end
408
+
409
+ def validate
410
+ end
411
+
412
+ ::Thrift::Struct.generate_accessors self
413
+ end
414
+
415
+ class GetUser_result
416
+ include ::Thrift::Struct, ::Thrift::Struct_Union
417
+ SUCCESS = 0
418
+ USEREXCEPTION = 1
419
+ SYSTEMEXCEPTION = 2
420
+
421
+ FIELDS = {
422
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::User},
423
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
424
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
425
+ }
426
+
427
+ def struct_fields; FIELDS; end
428
+
429
+ def validate
430
+ end
431
+
432
+ ::Thrift::Struct.generate_accessors self
433
+ end
434
+
435
+ class GetPublicUserInfo_args
436
+ include ::Thrift::Struct, ::Thrift::Struct_Union
437
+ USERNAME = 1
438
+
439
+ FIELDS = {
440
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
441
+ }
442
+
443
+ def struct_fields; FIELDS; end
444
+
445
+ def validate
446
+ end
447
+
448
+ ::Thrift::Struct.generate_accessors self
449
+ end
450
+
451
+ class GetPublicUserInfo_result
452
+ include ::Thrift::Struct, ::Thrift::Struct_Union
453
+ SUCCESS = 0
454
+ NOTFOUNDEXCEPTION = 1
455
+ SYSTEMEXCEPTION = 2
456
+ USEREXCEPTION = 3
457
+
458
+ FIELDS = {
459
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PublicUserInfo},
460
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
461
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
462
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}
463
+ }
464
+
465
+ def struct_fields; FIELDS; end
466
+
467
+ def validate
468
+ end
469
+
470
+ ::Thrift::Struct.generate_accessors self
471
+ end
472
+
473
+ class GetPremiumInfo_args
474
+ include ::Thrift::Struct, ::Thrift::Struct_Union
475
+ AUTHENTICATIONTOKEN = 1
476
+
477
+ FIELDS = {
478
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
479
+ }
480
+
481
+ def struct_fields; FIELDS; end
482
+
483
+ def validate
484
+ end
485
+
486
+ ::Thrift::Struct.generate_accessors self
487
+ end
488
+
489
+ class GetPremiumInfo_result
490
+ include ::Thrift::Struct, ::Thrift::Struct_Union
491
+ SUCCESS = 0
492
+ USEREXCEPTION = 1
493
+ SYSTEMEXCEPTION = 2
494
+
495
+ FIELDS = {
496
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PremiumInfo},
497
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
498
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
499
+ }
500
+
501
+ def struct_fields; FIELDS; end
502
+
503
+ def validate
504
+ end
505
+
506
+ ::Thrift::Struct.generate_accessors self
507
+ end
508
+
509
+ class GetNoteStoreUrl_args
510
+ include ::Thrift::Struct, ::Thrift::Struct_Union
511
+ AUTHENTICATIONTOKEN = 1
512
+
513
+ FIELDS = {
514
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
515
+ }
516
+
517
+ def struct_fields; FIELDS; end
518
+
519
+ def validate
520
+ end
521
+
522
+ ::Thrift::Struct.generate_accessors self
523
+ end
524
+
525
+ class GetNoteStoreUrl_result
526
+ include ::Thrift::Struct, ::Thrift::Struct_Union
527
+ SUCCESS = 0
528
+ USEREXCEPTION = 1
529
+ SYSTEMEXCEPTION = 2
530
+
531
+ FIELDS = {
532
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
533
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
534
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
535
+ }
536
+
537
+ def struct_fields; FIELDS; end
538
+
539
+ def validate
540
+ end
541
+
542
+ ::Thrift::Struct.generate_accessors self
543
+ end
544
+
545
+ end
546
+
547
+ end
548
+ end
549
+ end
@@ -0,0 +1,18 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'user_store_types'
8
+
9
+ module Evernote
10
+ module EDAM
11
+ module UserStore
12
+ EDAM_VERSION_MAJOR = 1
13
+
14
+ EDAM_VERSION_MINOR = 21
15
+
16
+ end
17
+ end
18
+ end