Skip to content
This repository
Newer
Older
100644 307 lines (232 sloc) 8.673 kb
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
1 #
2 # Autogenerated by Thrift Compiler (0.7.0)
3 #
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 #
6
7
8 module OpenZWave
9 module RemoteValueGenre
10 ValueGenre_Basic = 0
11 ValueGenre_User = 1
12 ValueGenre_Config = 2
13 ValueGenre_System = 3
14 ValueGenre_Count = 4
15 VALUE_MAP = {0 => "ValueGenre_Basic", 1 => "ValueGenre_User", 2 => "ValueGenre_Config", 3 => "ValueGenre_System", 4 => "ValueGenre_Count"}
16 VALID_VALUES = Set.new([ValueGenre_Basic, ValueGenre_User, ValueGenre_Config, ValueGenre_System, ValueGenre_Count]).freeze
17 end
18
19 module RemoteValueType
20 ValueType_Bool = 0
21 ValueType_Byte = 1
22 ValueType_Decimal = 2
23 ValueType_Int = 3
24 ValueType_List = 4
25 ValueType_Schedule = 5
26 ValueType_Short = 6
27 ValueType_String = 7
28 ValueType_Button = 8
29 ValueType_Max = 8
30 VALUE_MAP = {0 => "ValueType_Bool", 1 => "ValueType_Byte", 2 => "ValueType_Decimal", 3 => "ValueType_Int", 4 => "ValueType_List", 5 => "ValueType_Schedule", 6 => "ValueType_Short", 7 => "ValueType_String", 8 => "ValueType_Button", 8 => "ValueType_Max"}
31 VALID_VALUES = Set.new([ValueType_Bool, ValueType_Byte, ValueType_Decimal, ValueType_Int, ValueType_List, ValueType_Schedule, ValueType_Short, ValueType_String, ValueType_Button, ValueType_Max]).freeze
32 end
33
34c2ebe3 »
2011-12-12 More OpenZWave compatibility fixes
34 class RemoteValueID
35 include ::Thrift::Struct, ::Thrift::Struct_Union
36 _HOMEID = 1
37 _NODEID = 2
38 _GENRE = 3
39 _COMMANDCLASSID = 4
40 _INSTANCE = 5
41 _VALUEINDEX = 6
42 _TYPE = 7
43
44 FIELDS = {
45 _HOMEID => {:type => ::Thrift::Types::I32, :name => '_homeId'},
46 _NODEID => {:type => ::Thrift::Types::BYTE, :name => '_nodeId'},
47 _GENRE => {:type => ::Thrift::Types::I32, :name => '_genre', :enum_class => OpenZWave::RemoteValueGenre},
48 _COMMANDCLASSID => {:type => ::Thrift::Types::BYTE, :name => '_commandClassId'},
49 _INSTANCE => {:type => ::Thrift::Types::BYTE, :name => '_instance'},
50 _VALUEINDEX => {:type => ::Thrift::Types::BYTE, :name => '_valueIndex'},
51 _TYPE => {:type => ::Thrift::Types::I32, :name => '_type', :enum_class => OpenZWave::RemoteValueType}
52 }
53
54 def struct_fields; FIELDS; end
55
56 def validate
57 unless @_genre.nil? || OpenZWave::RemoteValueGenre::VALID_VALUES.include?(@_genre)
58 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field _genre!')
59 end
60 unless @_type.nil? || OpenZWave::RemoteValueType::VALID_VALUES.include?(@_type)
61 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field _type!')
62 end
63 end
64
65 ::Thrift::Struct.generate_accessors self
66 end
67
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
68 class GetSwitchPointReturnStruct
69 include ::Thrift::Struct, ::Thrift::Struct_Union
70 O_HOURS = 1
71 O_MINUTES = 2
72 O_SETBACK = 3
73
74 FIELDS = {
75 O_HOURS => {:type => ::Thrift::Types::BYTE, :name => 'o_hours'},
76 O_MINUTES => {:type => ::Thrift::Types::BYTE, :name => 'o_minutes'},
77 O_SETBACK => {:type => ::Thrift::Types::BYTE, :name => 'o_setback'}
78 }
79
80 def struct_fields; FIELDS; end
81
82 def validate
83 end
84
85 ::Thrift::Struct.generate_accessors self
86 end
87
88 class Bool_Bool
89 include ::Thrift::Struct, ::Thrift::Struct_Union
90 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
91 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
92
93 FIELDS = {
94 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
95 O_VALUE => {:type => ::Thrift::Types::BOOL, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
96 }
97
98 def struct_fields; FIELDS; end
99
100 def validate
101 end
102
103 ::Thrift::Struct.generate_accessors self
104 end
105
106 class Bool_UInt8
107 include ::Thrift::Struct, ::Thrift::Struct_Union
108 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
109 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
110
111 FIELDS = {
112 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
113 O_VALUE => {:type => ::Thrift::Types::BYTE, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
114 }
115
116 def struct_fields; FIELDS; end
117
118 def validate
119 end
120
121 ::Thrift::Struct.generate_accessors self
122 end
123
124 class Bool_Float
125 include ::Thrift::Struct, ::Thrift::Struct_Union
126 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
127 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
128
129 FIELDS = {
130 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
131 O_VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
132 }
133
134 def struct_fields; FIELDS; end
135
136 def validate
137 end
138
139 ::Thrift::Struct.generate_accessors self
140 end
141
142 class Bool_Int
143 include ::Thrift::Struct, ::Thrift::Struct_Union
144 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
145 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
146
147 FIELDS = {
148 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
149 O_VALUE => {:type => ::Thrift::Types::I32, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
150 }
151
152 def struct_fields; FIELDS; end
153
154 def validate
155 end
156
157 ::Thrift::Struct.generate_accessors self
158 end
159
160 class Bool_Int16
161 include ::Thrift::Struct, ::Thrift::Struct_Union
162 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
163 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
164
165 FIELDS = {
166 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
167 O_VALUE => {:type => ::Thrift::Types::I16, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
168 }
169
170 def struct_fields; FIELDS; end
171
172 def validate
173 end
174
175 ::Thrift::Struct.generate_accessors self
176 end
177
178 class Bool_String
179 include ::Thrift::Struct, ::Thrift::Struct_Union
180 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
181 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
182
183 FIELDS = {
184 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
185 O_VALUE => {:type => ::Thrift::Types::STRING, :name => 'o_value'}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
186 }
187
188 def struct_fields; FIELDS; end
189
190 def validate
191 end
192
193 ::Thrift::Struct.generate_accessors self
194 end
195
196 class Bool_ListString
197 include ::Thrift::Struct, ::Thrift::Struct_Union
198 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
199 O_VALUE = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
200
201 FIELDS = {
202 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
203 O_VALUE => {:type => ::Thrift::Types::LIST, :name => 'o_value', :element => {:type => ::Thrift::Types::STRING}}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
204 }
205
206 def struct_fields; FIELDS; end
207
208 def validate
209 end
210
211 ::Thrift::Struct.generate_accessors self
212 end
213
214 class UInt32_ListByte
215 include ::Thrift::Struct, ::Thrift::Struct_Union
216 RETVAL = 1
4951e1d9 »
2011-12-10 create_server.rb: refactored code
217 _NODENEIGHBORS = 2
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
218
219 FIELDS = {
220 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
4951e1d9 »
2011-12-10 create_server.rb: refactored code
221 _NODENEIGHBORS => {:type => ::Thrift::Types::LIST, :name => '_nodeNeighbors', :element => {:type => ::Thrift::Types::BYTE}}
222 }
223
224 def struct_fields; FIELDS; end
225
226 def validate
227 end
228
229 ::Thrift::Struct.generate_accessors self
230 end
231
232 class Bool_GetNodeClassInformation
233 include ::Thrift::Struct, ::Thrift::Struct_Union
234 RETVAL = 1
235 _CLASSNAME = 2
236 _CLASSVERSION = 3
237
238 FIELDS = {
239 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
240 _CLASSNAME => {:type => ::Thrift::Types::STRING, :name => '_className'},
241 _CLASSVERSION => {:type => ::Thrift::Types::BYTE, :name => '_classVersion'}
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 GetAssociationsReturnStruct
253 include ::Thrift::Struct, ::Thrift::Struct_Union
254 RETVAL = 1
255 O_ASSOCIATIONS = 2
256
257 FIELDS = {
258 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
259 O_ASSOCIATIONS => {:type => ::Thrift::Types::LIST, :name => 'o_associations', :element => {:type => ::Thrift::Types::BYTE}}
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 GetAllScenesReturnStruct
271 include ::Thrift::Struct, ::Thrift::Struct_Union
272 RETVAL = 1
273 _SCENEIDS = 2
274
275 FIELDS = {
276 RETVAL => {:type => ::Thrift::Types::BYTE, :name => 'retval'},
277 _SCENEIDS => {:type => ::Thrift::Types::LIST, :name => '_sceneIds', :element => {:type => ::Thrift::Types::BYTE}}
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 SceneGetValuesReturnStruct
289 include ::Thrift::Struct, ::Thrift::Struct_Union
290 RETVAL = 1
291 O_VALUE = 2
292
293 FIELDS = {
294 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
34c2ebe3 »
2011-12-12 More OpenZWave compatibility fixes
295 O_VALUE => {:type => ::Thrift::Types::LIST, :name => 'o_value', :element => {:type => ::Thrift::Types::STRUCT, :class => OpenZWave::RemoteValueID}}
4ab8d430 »
2011-12-06 Thrift-generated code (automatically generated)
296 }
297
298 def struct_fields; FIELDS; end
299
300 def validate
301 end
302
303 ::Thrift::Struct.generate_accessors self
304 end
305
306 end
Something went wrong with that request. Please try again.