radar-api-legacy 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +57 -0
  4. data/Guardfile +3 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/gen/radar/api/analyzer_controller.rb +605 -0
  9. data/gen/radar/api/calendar_service.rb +200 -0
  10. data/gen/radar/api/common_constants.rb +13 -0
  11. data/gen/radar/api/common_types.rb +223 -0
  12. data/gen/radar/api/data_server_constants.rb +13 -0
  13. data/gen/radar/api/data_server_types.rb +97 -0
  14. data/gen/radar/api/fund_service.rb +192 -0
  15. data/gen/radar/api/healthz.rb +84 -0
  16. data/gen/radar/api/healthz_constants.rb +13 -0
  17. data/gen/radar/api/healthz_types.rb +19 -0
  18. data/gen/radar/api/index_service.rb +200 -0
  19. data/gen/radar/api/integration_status_service.rb +74 -0
  20. data/gen/radar/api/portfolio_analyzer_constants.rb +13 -0
  21. data/gen/radar/api/portfolio_analyzer_types.rb +661 -0
  22. data/gen/radar/api/portfolio_service.rb +194 -0
  23. data/gen/radar/api/security_service.rb +370 -0
  24. data/gen/radar/api/transaction_constants.rb +13 -0
  25. data/gen/radar/api/transaction_file_importer.rb +94 -0
  26. data/gen/radar/api/transaction_file_importer_constants.rb +13 -0
  27. data/gen/radar/api/transaction_file_importer_types.rb +38 -0
  28. data/gen/radar/api/transaction_importer.rb +252 -0
  29. data/gen/radar/api/transaction_importer_constants.rb +13 -0
  30. data/gen/radar/api/transaction_importer_types.rb +60 -0
  31. data/gen/radar/api/transaction_types.rb +302 -0
  32. data/gen/radar_constants.rb +9 -0
  33. data/gen/radar_types.rb +14 -0
  34. data/lib/radar-api-legacy.rb +13 -0
  35. data/radar-api.gemspec +23 -0
  36. metadata +120 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: afe38ffe928013b49d83d991bdd3ff4e58869edb399877be8bd24b68568cdeba
4
+ data.tar.gz: 575eb630724ef1569968b3d4b7f7585a550442e454c10df25d333e24ec6914f3
5
+ SHA512:
6
+ metadata.gz: '02099f90b92bcf82d95f8df9b5e4a884d21c054503e195d993c4e82dfc8bcf10b3944905edfc01cc2ad9701222aedf72dea656922b42a53731183a196d4ac2b6'
7
+ data.tar.gz: 6cc03022fefb29a2f6541ea6cefd7b3a56208fa6f6dfb08605699465d776b0c6f9b6490ed115d53bbfedd710a1e138504d803b99cd1d5bd2cf6e8f1053d88317
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in radar-api.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ radar-api-legacy (0.14.0)
5
+ thrift (~> 0.9.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ celluloid (0.15.2)
11
+ timers (~> 1.1.0)
12
+ celluloid-io (0.15.0)
13
+ celluloid (>= 0.15.0)
14
+ nio4r (>= 0.5.0)
15
+ coderay (1.1.0)
16
+ ffi (1.9.3)
17
+ formatador (0.2.4)
18
+ guard (2.6.0)
19
+ formatador (>= 0.2.4)
20
+ listen (~> 2.7)
21
+ lumberjack (~> 1.0)
22
+ pry (>= 0.9.12)
23
+ thor (>= 0.18.1)
24
+ guard-rake (0.0.9)
25
+ guard
26
+ rake
27
+ listen (2.7.1)
28
+ celluloid (>= 0.15.2)
29
+ celluloid-io (>= 0.15.0)
30
+ rb-fsevent (>= 0.9.3)
31
+ rb-inotify (>= 0.9)
32
+ lumberjack (1.0.5)
33
+ method_source (0.8.2)
34
+ nio4r (1.2.1)
35
+ pry (0.9.12.6)
36
+ coderay (~> 1.0)
37
+ method_source (~> 0.8)
38
+ slop (~> 3.4)
39
+ rake (13.0.1)
40
+ rb-fsevent (0.9.4)
41
+ rb-inotify (0.9.3)
42
+ ffi (>= 0.5.0)
43
+ slop (3.5.0)
44
+ thor (0.19.1)
45
+ thrift (0.9.3.0)
46
+ timers (1.1.0)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ bundler (~> 1.5)
53
+ guard-rake (= 0.0.9)
54
+ radar-api-legacy!
55
+
56
+ BUNDLED WITH
57
+ 1.17.3
data/Guardfile ADDED
@@ -0,0 +1,3 @@
1
+ guard 'rake', :task => 'install' do
2
+ watch(/\.rb$/)
3
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 André Aizim Kelmanson
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Radar::Api
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'radar-api'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install radar-api
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( http://github.com/<my-github-username>/radar-api/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,605 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.12.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'radar/api/portfolio_analyzer_types'
9
+
10
+ module Radar
11
+ module Api
12
+ module AnalyzerController
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def analyzers()
17
+ send_analyzers()
18
+ return recv_analyzers()
19
+ end
20
+
21
+ def send_analyzers()
22
+ send_message('analyzers', Analyzers_args)
23
+ end
24
+
25
+ def recv_analyzers()
26
+ result = receive_message(Analyzers_result)
27
+ return result.success unless result.success.nil?
28
+ raise result.app_error unless result.app_error.nil?
29
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'analyzers failed: unknown result')
30
+ end
31
+
32
+ def on_each_day(sessionid, portfolio)
33
+ send_on_each_day(sessionid, portfolio)
34
+ end
35
+
36
+ def send_on_each_day(sessionid, portfolio)
37
+ send_oneway_message('on_each_day', On_each_day_args, :sessionid => sessionid, :portfolio => portfolio)
38
+ end
39
+ def on_each_month(sessionid, portfolio)
40
+ send_on_each_month(sessionid, portfolio)
41
+ end
42
+
43
+ def send_on_each_month(sessionid, portfolio)
44
+ send_oneway_message('on_each_month', On_each_month_args, :sessionid => sessionid, :portfolio => portfolio)
45
+ end
46
+ def on_finish(session_id, portfolio)
47
+ send_on_finish(session_id, portfolio)
48
+ end
49
+
50
+ def send_on_finish(session_id, portfolio)
51
+ send_oneway_message('on_finish', On_finish_args, :session_id => session_id, :portfolio => portfolio)
52
+ end
53
+ def on_cash_flow(session_id, cash_flow)
54
+ send_on_cash_flow(session_id, cash_flow)
55
+ end
56
+
57
+ def send_on_cash_flow(session_id, cash_flow)
58
+ send_oneway_message('on_cash_flow', On_cash_flow_args, :session_id => session_id, :cash_flow => cash_flow)
59
+ end
60
+ def create_session(session_id, analyzer_id)
61
+ send_create_session(session_id, analyzer_id)
62
+ return recv_create_session()
63
+ end
64
+
65
+ def send_create_session(session_id, analyzer_id)
66
+ send_message('create_session', Create_session_args, :session_id => session_id, :analyzer_id => analyzer_id)
67
+ end
68
+
69
+ def recv_create_session()
70
+ result = receive_message(Create_session_result)
71
+ return result.success unless result.success.nil?
72
+ raise result.app_error unless result.app_error.nil?
73
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_session failed: unknown result')
74
+ end
75
+
76
+ def dump(session_id)
77
+ send_dump(session_id)
78
+ return recv_dump()
79
+ end
80
+
81
+ def send_dump(session_id)
82
+ send_message('dump', Dump_args, :session_id => session_id)
83
+ end
84
+
85
+ def recv_dump()
86
+ result = receive_message(Dump_result)
87
+ return result.success unless result.success.nil?
88
+ raise result.app_error unless result.app_error.nil?
89
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'dump failed: unknown result')
90
+ end
91
+
92
+ def resume(session_id, data)
93
+ send_resume(session_id, data)
94
+ end
95
+
96
+ def send_resume(session_id, data)
97
+ send_oneway_message('resume', Resume_args, :session_id => session_id, :data => data)
98
+ end
99
+ def result(session_id)
100
+ send_result(session_id)
101
+ return recv_result()
102
+ end
103
+
104
+ def send_result(session_id)
105
+ send_message('result', Result_args, :session_id => session_id)
106
+ end
107
+
108
+ def recv_result()
109
+ result = receive_message(Result_result)
110
+ return result.success unless result.success.nil?
111
+ raise result.app_error unless result.app_error.nil?
112
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'result failed: unknown result')
113
+ end
114
+
115
+ def example_result(session_id)
116
+ send_example_result(session_id)
117
+ recv_example_result()
118
+ end
119
+
120
+ def send_example_result(session_id)
121
+ send_message('example_result', Example_result_args, :session_id => session_id)
122
+ end
123
+
124
+ def recv_example_result()
125
+ result = receive_message(Example_result_result)
126
+ raise result.app_error unless result.app_error.nil?
127
+ return
128
+ end
129
+
130
+ def destroy_session(session_id)
131
+ send_destroy_session(session_id)
132
+ end
133
+
134
+ def send_destroy_session(session_id)
135
+ send_oneway_message('destroy_session', Destroy_session_args, :session_id => session_id)
136
+ end
137
+ end
138
+
139
+ class Processor
140
+ include ::Thrift::Processor
141
+
142
+ def process_analyzers(seqid, iprot, oprot)
143
+ args = read_args(iprot, Analyzers_args)
144
+ result = Analyzers_result.new()
145
+ begin
146
+ result.success = @handler.analyzers()
147
+ rescue ::Radar::Api::ApplicationError => app_error
148
+ result.app_error = app_error
149
+ end
150
+ write_result(result, oprot, 'analyzers', seqid)
151
+ end
152
+
153
+ def process_on_each_day(seqid, iprot, oprot)
154
+ args = read_args(iprot, On_each_day_args)
155
+ @handler.on_each_day(args.sessionid, args.portfolio)
156
+ return
157
+ end
158
+
159
+ def process_on_each_month(seqid, iprot, oprot)
160
+ args = read_args(iprot, On_each_month_args)
161
+ @handler.on_each_month(args.sessionid, args.portfolio)
162
+ return
163
+ end
164
+
165
+ def process_on_finish(seqid, iprot, oprot)
166
+ args = read_args(iprot, On_finish_args)
167
+ @handler.on_finish(args.session_id, args.portfolio)
168
+ return
169
+ end
170
+
171
+ def process_on_cash_flow(seqid, iprot, oprot)
172
+ args = read_args(iprot, On_cash_flow_args)
173
+ @handler.on_cash_flow(args.session_id, args.cash_flow)
174
+ return
175
+ end
176
+
177
+ def process_create_session(seqid, iprot, oprot)
178
+ args = read_args(iprot, Create_session_args)
179
+ result = Create_session_result.new()
180
+ begin
181
+ result.success = @handler.create_session(args.session_id, args.analyzer_id)
182
+ rescue ::Radar::Api::ApplicationError => app_error
183
+ result.app_error = app_error
184
+ end
185
+ write_result(result, oprot, 'create_session', seqid)
186
+ end
187
+
188
+ def process_dump(seqid, iprot, oprot)
189
+ args = read_args(iprot, Dump_args)
190
+ result = Dump_result.new()
191
+ begin
192
+ result.success = @handler.dump(args.session_id)
193
+ rescue ::Radar::Api::ApplicationError => app_error
194
+ result.app_error = app_error
195
+ end
196
+ write_result(result, oprot, 'dump', seqid)
197
+ end
198
+
199
+ def process_resume(seqid, iprot, oprot)
200
+ args = read_args(iprot, Resume_args)
201
+ @handler.resume(args.session_id, args.data)
202
+ return
203
+ end
204
+
205
+ def process_result(seqid, iprot, oprot)
206
+ args = read_args(iprot, Result_args)
207
+ result = Result_result.new()
208
+ begin
209
+ result.success = @handler.result(args.session_id)
210
+ rescue ::Radar::Api::ApplicationError => app_error
211
+ result.app_error = app_error
212
+ end
213
+ write_result(result, oprot, 'result', seqid)
214
+ end
215
+
216
+ def process_example_result(seqid, iprot, oprot)
217
+ args = read_args(iprot, Example_result_args)
218
+ result = Example_result_result.new()
219
+ begin
220
+ @handler.example_result(args.session_id)
221
+ rescue ::Radar::Api::ApplicationError => app_error
222
+ result.app_error = app_error
223
+ end
224
+ write_result(result, oprot, 'example_result', seqid)
225
+ end
226
+
227
+ def process_destroy_session(seqid, iprot, oprot)
228
+ args = read_args(iprot, Destroy_session_args)
229
+ @handler.destroy_session(args.session_id)
230
+ return
231
+ end
232
+
233
+ end
234
+
235
+ # HELPER FUNCTIONS AND STRUCTURES
236
+
237
+ class Analyzers_args
238
+ include ::Thrift::Struct, ::Thrift::Struct_Union
239
+
240
+ FIELDS = {
241
+
242
+ }
243
+
244
+ def struct_fields; FIELDS; end
245
+
246
+ def validate
247
+ end
248
+
249
+ ::Thrift::Struct.generate_accessors self
250
+ end
251
+
252
+ class Analyzers_result
253
+ include ::Thrift::Struct, ::Thrift::Struct_Union
254
+ SUCCESS = 0
255
+ APP_ERROR = 100
256
+
257
+ FIELDS = {
258
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::AnalyzerConfig}},
259
+ APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
260
+ }
261
+
262
+ def struct_fields; FIELDS; end
263
+
264
+ def validate
265
+ end
266
+
267
+ ::Thrift::Struct.generate_accessors self
268
+ end
269
+
270
+ class On_each_day_args
271
+ include ::Thrift::Struct, ::Thrift::Struct_Union
272
+ SESSIONID = 1
273
+ PORTFOLIO = 2
274
+
275
+ FIELDS = {
276
+ SESSIONID => {:type => ::Thrift::Types::I16, :name => 'sessionid'},
277
+ PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
278
+ }
279
+
280
+ def struct_fields; FIELDS; end
281
+
282
+ def validate
283
+ end
284
+
285
+ ::Thrift::Struct.generate_accessors self
286
+ end
287
+
288
+ class On_each_day_result
289
+ include ::Thrift::Struct, ::Thrift::Struct_Union
290
+
291
+ FIELDS = {
292
+
293
+ }
294
+
295
+ def struct_fields; FIELDS; end
296
+
297
+ def validate
298
+ end
299
+
300
+ ::Thrift::Struct.generate_accessors self
301
+ end
302
+
303
+ class On_each_month_args
304
+ include ::Thrift::Struct, ::Thrift::Struct_Union
305
+ SESSIONID = 1
306
+ PORTFOLIO = 2
307
+
308
+ FIELDS = {
309
+ SESSIONID => {:type => ::Thrift::Types::I16, :name => 'sessionid'},
310
+ PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
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 On_each_month_result
322
+ include ::Thrift::Struct, ::Thrift::Struct_Union
323
+
324
+ FIELDS = {
325
+
326
+ }
327
+
328
+ def struct_fields; FIELDS; end
329
+
330
+ def validate
331
+ end
332
+
333
+ ::Thrift::Struct.generate_accessors self
334
+ end
335
+
336
+ class On_finish_args
337
+ include ::Thrift::Struct, ::Thrift::Struct_Union
338
+ SESSION_ID = 1
339
+ PORTFOLIO = 2
340
+
341
+ FIELDS = {
342
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
343
+ PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
344
+ }
345
+
346
+ def struct_fields; FIELDS; end
347
+
348
+ def validate
349
+ end
350
+
351
+ ::Thrift::Struct.generate_accessors self
352
+ end
353
+
354
+ class On_finish_result
355
+ include ::Thrift::Struct, ::Thrift::Struct_Union
356
+
357
+ FIELDS = {
358
+
359
+ }
360
+
361
+ def struct_fields; FIELDS; end
362
+
363
+ def validate
364
+ end
365
+
366
+ ::Thrift::Struct.generate_accessors self
367
+ end
368
+
369
+ class On_cash_flow_args
370
+ include ::Thrift::Struct, ::Thrift::Struct_Union
371
+ SESSION_ID = 1
372
+ CASH_FLOW = 2
373
+
374
+ FIELDS = {
375
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
376
+ CASH_FLOW => {:type => ::Thrift::Types::STRUCT, :name => 'cash_flow', :class => ::Radar::Api::CashFlow}
377
+ }
378
+
379
+ def struct_fields; FIELDS; end
380
+
381
+ def validate
382
+ end
383
+
384
+ ::Thrift::Struct.generate_accessors self
385
+ end
386
+
387
+ class On_cash_flow_result
388
+ include ::Thrift::Struct, ::Thrift::Struct_Union
389
+
390
+ FIELDS = {
391
+
392
+ }
393
+
394
+ def struct_fields; FIELDS; end
395
+
396
+ def validate
397
+ end
398
+
399
+ ::Thrift::Struct.generate_accessors self
400
+ end
401
+
402
+ class Create_session_args
403
+ include ::Thrift::Struct, ::Thrift::Struct_Union
404
+ SESSION_ID = 1
405
+ ANALYZER_ID = 2
406
+
407
+ FIELDS = {
408
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
409
+ ANALYZER_ID => {:type => ::Thrift::Types::STRING, :name => 'analyzer_id'}
410
+ }
411
+
412
+ def struct_fields; FIELDS; end
413
+
414
+ def validate
415
+ end
416
+
417
+ ::Thrift::Struct.generate_accessors self
418
+ end
419
+
420
+ class Create_session_result
421
+ include ::Thrift::Struct, ::Thrift::Struct_Union
422
+ SUCCESS = 0
423
+ APP_ERROR = 100
424
+
425
+ FIELDS = {
426
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Radar::Api::AnalyzerConfig},
427
+ APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
428
+ }
429
+
430
+ def struct_fields; FIELDS; end
431
+
432
+ def validate
433
+ end
434
+
435
+ ::Thrift::Struct.generate_accessors self
436
+ end
437
+
438
+ class Dump_args
439
+ include ::Thrift::Struct, ::Thrift::Struct_Union
440
+ SESSION_ID = 1
441
+
442
+ FIELDS = {
443
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
444
+ }
445
+
446
+ def struct_fields; FIELDS; end
447
+
448
+ def validate
449
+ end
450
+
451
+ ::Thrift::Struct.generate_accessors self
452
+ end
453
+
454
+ class Dump_result
455
+ include ::Thrift::Struct, ::Thrift::Struct_Union
456
+ SUCCESS = 0
457
+ APP_ERROR = 100
458
+
459
+ FIELDS = {
460
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true},
461
+ APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
462
+ }
463
+
464
+ def struct_fields; FIELDS; end
465
+
466
+ def validate
467
+ end
468
+
469
+ ::Thrift::Struct.generate_accessors self
470
+ end
471
+
472
+ class Resume_args
473
+ include ::Thrift::Struct, ::Thrift::Struct_Union
474
+ SESSION_ID = 1
475
+ DATA = 2
476
+
477
+ FIELDS = {
478
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
479
+ DATA => {:type => ::Thrift::Types::STRING, :name => 'data', :binary => true}
480
+ }
481
+
482
+ def struct_fields; FIELDS; end
483
+
484
+ def validate
485
+ end
486
+
487
+ ::Thrift::Struct.generate_accessors self
488
+ end
489
+
490
+ class Resume_result
491
+ include ::Thrift::Struct, ::Thrift::Struct_Union
492
+
493
+ FIELDS = {
494
+
495
+ }
496
+
497
+ def struct_fields; FIELDS; end
498
+
499
+ def validate
500
+ end
501
+
502
+ ::Thrift::Struct.generate_accessors self
503
+ end
504
+
505
+ class Result_args
506
+ include ::Thrift::Struct, ::Thrift::Struct_Union
507
+ SESSION_ID = 1
508
+
509
+ FIELDS = {
510
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
511
+ }
512
+
513
+ def struct_fields; FIELDS; end
514
+
515
+ def validate
516
+ end
517
+
518
+ ::Thrift::Struct.generate_accessors self
519
+ end
520
+
521
+ class Result_result
522
+ include ::Thrift::Struct, ::Thrift::Struct_Union
523
+ SUCCESS = 0
524
+ APP_ERROR = 100
525
+
526
+ FIELDS = {
527
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Radar::Api::Result},
528
+ APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
529
+ }
530
+
531
+ def struct_fields; FIELDS; end
532
+
533
+ def validate
534
+ end
535
+
536
+ ::Thrift::Struct.generate_accessors self
537
+ end
538
+
539
+ class Example_result_args
540
+ include ::Thrift::Struct, ::Thrift::Struct_Union
541
+ SESSION_ID = 1
542
+
543
+ FIELDS = {
544
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
545
+ }
546
+
547
+ def struct_fields; FIELDS; end
548
+
549
+ def validate
550
+ end
551
+
552
+ ::Thrift::Struct.generate_accessors self
553
+ end
554
+
555
+ class Example_result_result
556
+ include ::Thrift::Struct, ::Thrift::Struct_Union
557
+ APP_ERROR = 100
558
+
559
+ FIELDS = {
560
+ APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
561
+ }
562
+
563
+ def struct_fields; FIELDS; end
564
+
565
+ def validate
566
+ end
567
+
568
+ ::Thrift::Struct.generate_accessors self
569
+ end
570
+
571
+ class Destroy_session_args
572
+ include ::Thrift::Struct, ::Thrift::Struct_Union
573
+ SESSION_ID = 1
574
+
575
+ FIELDS = {
576
+ SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
577
+ }
578
+
579
+ def struct_fields; FIELDS; end
580
+
581
+ def validate
582
+ end
583
+
584
+ ::Thrift::Struct.generate_accessors self
585
+ end
586
+
587
+ class Destroy_session_result
588
+ include ::Thrift::Struct, ::Thrift::Struct_Union
589
+
590
+ FIELDS = {
591
+
592
+ }
593
+
594
+ def struct_fields; FIELDS; end
595
+
596
+ def validate
597
+ end
598
+
599
+ ::Thrift::Struct.generate_accessors self
600
+ end
601
+
602
+ end
603
+
604
+ end
605
+ end