radar-api 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b1a6afa71a13720f811b34e733bf0ad6b1dd80b
4
- data.tar.gz: 1f61b38b0307034dae2f9a689e6183525c3c0439
3
+ metadata.gz: 7238fbc992951469e819ec774d4a3ac0e05374d7
4
+ data.tar.gz: 21ff24ec13bd8fe099921db93f9dcc0e72a73396
5
5
  SHA512:
6
- metadata.gz: d0355537edba571f87af51787323dd8d51a2a037b179295034a15bd63bb172843dfba9ba4605d1076f58b48255fc7ec939f02abcb5eaf8672d7bb6b2c4fcb2cb
7
- data.tar.gz: ac51521121b78f51b9151e6c399aa84a296fcad1ede456a7c7d13f8a5d9aa4586dc7669d2c0aa4537cda1b859a7ebe106aee1439ef91749e246383e74afb226d
6
+ metadata.gz: 9d481fc71f583bc4cde75e5ec8c380e6e18e7c5e3ec90240c1525b5b8f05cb71c292fc886a6d7e9a0158c282226514b059706ea5ec51758df73fcbeba355af90
7
+ data.tar.gz: 17d818db55fd10b095cdc2e516b4a9d282c2beb80f8eaa1ebc7c8f7393968870daaeadccd6ee0b7a257787d5b31a462a052dadb3823e53b8a47b68dd0d998c3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.8.3)
4
+ radar-api (0.9.0)
5
5
  thrift (~> 0.9.0)
6
6
 
7
7
  GEM
@@ -22,6 +22,8 @@ module Radar
22
22
 
23
23
  class SecurityId < ::Thrift::Union; end
24
24
 
25
+ class Broker; end
26
+
25
27
  class StockId
26
28
  include ::Thrift::Struct, ::Thrift::Struct_Union
27
29
  SYMBOL = 1
@@ -177,5 +179,25 @@ module Radar
177
179
  ::Thrift::Union.generate_accessors self
178
180
  end
179
181
 
182
+ class Broker
183
+ include ::Thrift::Struct, ::Thrift::Struct_Union
184
+ CODE = 1
185
+ NAME = 2
186
+ SEGMENT = 3
187
+
188
+ FIELDS = {
189
+ CODE => {:type => ::Thrift::Types::STRING, :name => 'code'},
190
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
191
+ SEGMENT => {:type => ::Thrift::Types::STRING, :name => 'segment'}
192
+ }
193
+
194
+ def struct_fields; FIELDS; end
195
+
196
+ def validate
197
+ end
198
+
199
+ ::Thrift::Struct.generate_accessors self
200
+ end
201
+
180
202
  end
181
203
  end
@@ -42,6 +42,20 @@ module Radar
42
42
  return
43
43
  end
44
44
 
45
+ def persist_brokers(brokers, user)
46
+ send_persist_brokers(brokers, user)
47
+ recv_persist_brokers()
48
+ end
49
+
50
+ def send_persist_brokers(brokers, user)
51
+ send_message('persist_brokers', Persist_brokers_args, :brokers => brokers, :user => user)
52
+ end
53
+
54
+ def recv_persist_brokers()
55
+ result = receive_message(Persist_brokers_result)
56
+ return
57
+ end
58
+
45
59
  end
46
60
 
47
61
  class Processor
@@ -61,6 +75,13 @@ module Radar
61
75
  write_result(result, oprot, 'persist', seqid)
62
76
  end
63
77
 
78
+ def process_persist_brokers(seqid, iprot, oprot)
79
+ args = read_args(iprot, Persist_brokers_args)
80
+ result = Persist_brokers_result.new()
81
+ @handler.persist_brokers(args.brokers, args.user)
82
+ write_result(result, oprot, 'persist_brokers', seqid)
83
+ end
84
+
64
85
  end
65
86
 
66
87
  # HELPER FUNCTIONS AND STRUCTURES
@@ -134,6 +155,39 @@ module Radar
134
155
  ::Thrift::Struct.generate_accessors self
135
156
  end
136
157
 
158
+ class Persist_brokers_args
159
+ include ::Thrift::Struct, ::Thrift::Struct_Union
160
+ BROKERS = 1
161
+ USER = 2
162
+
163
+ FIELDS = {
164
+ BROKERS => {:type => ::Thrift::Types::LIST, :name => 'brokers', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Broker}},
165
+ USER => {:type => ::Thrift::Types::STRING, :name => 'user'}
166
+ }
167
+
168
+ def struct_fields; FIELDS; end
169
+
170
+ def validate
171
+ end
172
+
173
+ ::Thrift::Struct.generate_accessors self
174
+ end
175
+
176
+ class Persist_brokers_result
177
+ include ::Thrift::Struct, ::Thrift::Struct_Union
178
+
179
+ FIELDS = {
180
+
181
+ }
182
+
183
+ def struct_fields; FIELDS; end
184
+
185
+ def validate
186
+ end
187
+
188
+ ::Thrift::Struct.generate_accessors self
189
+ end
190
+
137
191
  end
138
192
 
139
193
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-12 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler