Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 344 lines (268 sloc) 11.942 kb
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
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
bde506c [Begin/Cancel]ControllerCommand implementation, callback skeleton mechan...
Elias Karakoulakis authored
34 module DriverControllerCommand
35 ControllerCommand_None = 0
36 # < No command.
37 ControllerCommand_AddController = 1
38 # < Add a new controller to the Z-Wave network. The new controller will be a secondary.
39 ControllerCommand_AddDevice = 2
40 # < Add a new device (but not a controller) to the Z-Wave network.
41 ControllerCommand_CreateNewPrimary = 3
42 # < Add a new controller to the Z-Wave network. The new controller will be the primary, and the current primary will become a secondary controller.
43 ControllerCommand_ReceiveConfiguration = 4
44 # < Receive Z-Wave network configuration information from another controller.
45 ControllerCommand_RemoveController = 5
46 # < Remove a controller from the Z-Wave network.
47 ControllerCommand_RemoveDevice = 6
48 # < Remove a new device (but not a controller) from the Z-Wave network.
49 ControllerCommand_RemoveFailedNode = 7
50 # < Move a node to the controller's failed nodes list. This command will only work if the node cannot respond.
51 ControllerCommand_HasNodeFailed = 8
52 # < Check whether a node is in the controller's failed nodes list.
53 ControllerCommand_ReplaceFailedNode = 9
54 # < Replace a non-responding node with another. The node must be in the controller's list of failed nodes for this command to succeed.
55 ControllerCommand_TransferPrimaryRole = 10
56 # < Make a different controller the primary.
57 ControllerCommand_RequestNetworkUpdate = 11
58 # < Request network information from the SUC/SIS.
59 ControllerCommand_RequestNodeNeighborUpdate = 12
60 # < Get a node to rebuild its neighbour list. This method also does ControllerCommand_RequestNodeNeighbors
61 ControllerCommand_AssignReturnRoute = 13
62 # < Assign a network return routes to a device.
63 ControllerCommand_DeleteAllReturnRoutes = 14
64 VALUE_MAP = {0 => "ControllerCommand_None", 1 => "ControllerCommand_AddController", 2 => "ControllerCommand_AddDevice", 3 => "ControllerCommand_CreateNewPrimary", 4 => "ControllerCommand_ReceiveConfiguration", 5 => "ControllerCommand_RemoveController", 6 => "ControllerCommand_RemoveDevice", 7 => "ControllerCommand_RemoveFailedNode", 8 => "ControllerCommand_HasNodeFailed", 9 => "ControllerCommand_ReplaceFailedNode", 10 => "ControllerCommand_TransferPrimaryRole", 11 => "ControllerCommand_RequestNetworkUpdate", 12 => "ControllerCommand_RequestNodeNeighborUpdate", 13 => "ControllerCommand_AssignReturnRoute", 14 => "ControllerCommand_DeleteAllReturnRoutes"}
65 VALID_VALUES = Set.new([ControllerCommand_None, ControllerCommand_AddController, ControllerCommand_AddDevice, ControllerCommand_CreateNewPrimary, ControllerCommand_ReceiveConfiguration, ControllerCommand_RemoveController, ControllerCommand_RemoveDevice, ControllerCommand_RemoveFailedNode, ControllerCommand_HasNodeFailed, ControllerCommand_ReplaceFailedNode, ControllerCommand_TransferPrimaryRole, ControllerCommand_RequestNetworkUpdate, ControllerCommand_RequestNodeNeighborUpdate, ControllerCommand_AssignReturnRoute, ControllerCommand_DeleteAllReturnRoutes]).freeze
66 end
67
68 # < Delete all return routes from a device.
34c2ebe More OpenZWave compatibility fixes
Elias Karakoulakis authored
69 class RemoteValueID
70 include ::Thrift::Struct, ::Thrift::Struct_Union
71 _HOMEID = 1
72 _NODEID = 2
73 _GENRE = 3
74 _COMMANDCLASSID = 4
75 _INSTANCE = 5
76 _VALUEINDEX = 6
77 _TYPE = 7
78
79 FIELDS = {
80 _HOMEID => {:type => ::Thrift::Types::I32, :name => '_homeId'},
81 _NODEID => {:type => ::Thrift::Types::BYTE, :name => '_nodeId'},
82 _GENRE => {:type => ::Thrift::Types::I32, :name => '_genre', :enum_class => OpenZWave::RemoteValueGenre},
83 _COMMANDCLASSID => {:type => ::Thrift::Types::BYTE, :name => '_commandClassId'},
84 _INSTANCE => {:type => ::Thrift::Types::BYTE, :name => '_instance'},
85 _VALUEINDEX => {:type => ::Thrift::Types::BYTE, :name => '_valueIndex'},
86 _TYPE => {:type => ::Thrift::Types::I32, :name => '_type', :enum_class => OpenZWave::RemoteValueType}
87 }
88
89 def struct_fields; FIELDS; end
90
91 def validate
92 unless @_genre.nil? || OpenZWave::RemoteValueGenre::VALID_VALUES.include?(@_genre)
93 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field _genre!')
94 end
95 unless @_type.nil? || OpenZWave::RemoteValueType::VALID_VALUES.include?(@_type)
96 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field _type!')
97 end
98 end
99
100 ::Thrift::Struct.generate_accessors self
101 end
102
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
103 class GetSwitchPointReturnStruct
104 include ::Thrift::Struct, ::Thrift::Struct_Union
6a750a2 more documentation added
Elias Karakoulakis authored
105 RETVAL = 1
106 O_HOURS = 2
107 O_MINUTES = 3
108 O_SETBACK = 4
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
109
110 FIELDS = {
6a750a2 more documentation added
Elias Karakoulakis authored
111 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
112 O_HOURS => {:type => ::Thrift::Types::BYTE, :name => 'o_hours'},
113 O_MINUTES => {:type => ::Thrift::Types::BYTE, :name => 'o_minutes'},
114 O_SETBACK => {:type => ::Thrift::Types::BYTE, :name => 'o_setback'}
115 }
116
117 def struct_fields; FIELDS; end
118
119 def validate
120 end
121
122 ::Thrift::Struct.generate_accessors self
123 end
124
125 class Bool_Bool
126 include ::Thrift::Struct, ::Thrift::Struct_Union
127 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
128 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
129
130 FIELDS = {
131 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
132 O_VALUE => {:type => ::Thrift::Types::BOOL, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
133 }
134
135 def struct_fields; FIELDS; end
136
137 def validate
138 end
139
140 ::Thrift::Struct.generate_accessors self
141 end
142
143 class Bool_UInt8
144 include ::Thrift::Struct, ::Thrift::Struct_Union
145 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
146 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
147
148 FIELDS = {
149 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
150 O_VALUE => {:type => ::Thrift::Types::BYTE, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
151 }
152
153 def struct_fields; FIELDS; end
154
155 def validate
156 end
157
158 ::Thrift::Struct.generate_accessors self
159 end
160
161 class Bool_Float
162 include ::Thrift::Struct, ::Thrift::Struct_Union
163 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
164 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
165
166 FIELDS = {
167 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
168 O_VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
169 }
170
171 def struct_fields; FIELDS; end
172
173 def validate
174 end
175
176 ::Thrift::Struct.generate_accessors self
177 end
178
179 class Bool_Int
180 include ::Thrift::Struct, ::Thrift::Struct_Union
181 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
182 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
183
184 FIELDS = {
185 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
186 O_VALUE => {:type => ::Thrift::Types::I32, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
187 }
188
189 def struct_fields; FIELDS; end
190
191 def validate
192 end
193
194 ::Thrift::Struct.generate_accessors self
195 end
196
197 class Bool_Int16
198 include ::Thrift::Struct, ::Thrift::Struct_Union
199 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
200 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
201
202 FIELDS = {
203 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
204 O_VALUE => {:type => ::Thrift::Types::I16, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
205 }
206
207 def struct_fields; FIELDS; end
208
209 def validate
210 end
211
212 ::Thrift::Struct.generate_accessors self
213 end
214
215 class Bool_String
216 include ::Thrift::Struct, ::Thrift::Struct_Union
217 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
218 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
219
220 FIELDS = {
221 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
222 O_VALUE => {:type => ::Thrift::Types::STRING, :name => 'o_value'}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
223 }
224
225 def struct_fields; FIELDS; end
226
227 def validate
228 end
229
230 ::Thrift::Struct.generate_accessors self
231 end
232
233 class Bool_ListString
234 include ::Thrift::Struct, ::Thrift::Struct_Union
235 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
236 O_VALUE = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
237
238 FIELDS = {
239 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
240 O_VALUE => {:type => ::Thrift::Types::LIST, :name => 'o_value', :element => {:type => ::Thrift::Types::STRING}}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
241 }
242
243 def struct_fields; FIELDS; end
244
245 def validate
246 end
247
248 ::Thrift::Struct.generate_accessors self
249 end
250
251 class UInt32_ListByte
252 include ::Thrift::Struct, ::Thrift::Struct_Union
253 RETVAL = 1
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
254 _NODENEIGHBORS = 2
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
255
256 FIELDS = {
257 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
4951e1d create_server.rb: refactored code
Elias Karakoulakis authored
258 _NODENEIGHBORS => {:type => ::Thrift::Types::LIST, :name => '_nodeNeighbors', :element => {:type => ::Thrift::Types::BYTE}}
259 }
260
261 def struct_fields; FIELDS; end
262
263 def validate
264 end
265
266 ::Thrift::Struct.generate_accessors self
267 end
268
269 class Bool_GetNodeClassInformation
270 include ::Thrift::Struct, ::Thrift::Struct_Union
271 RETVAL = 1
272 _CLASSNAME = 2
273 _CLASSVERSION = 3
274
275 FIELDS = {
276 RETVAL => {:type => ::Thrift::Types::BOOL, :name => 'retval'},
277 _CLASSNAME => {:type => ::Thrift::Types::STRING, :name => '_className'},
278 _CLASSVERSION => {:type => ::Thrift::Types::BYTE, :name => '_classVersion'}
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 GetAssociationsReturnStruct
290 include ::Thrift::Struct, ::Thrift::Struct_Union
291 RETVAL = 1
292 O_ASSOCIATIONS = 2
293
294 FIELDS = {
295 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
296 O_ASSOCIATIONS => {:type => ::Thrift::Types::LIST, :name => 'o_associations', :element => {:type => ::Thrift::Types::BYTE}}
297 }
298
299 def struct_fields; FIELDS; end
300
301 def validate
302 end
303
304 ::Thrift::Struct.generate_accessors self
305 end
306
307 class GetAllScenesReturnStruct
308 include ::Thrift::Struct, ::Thrift::Struct_Union
309 RETVAL = 1
310 _SCENEIDS = 2
311
312 FIELDS = {
313 RETVAL => {:type => ::Thrift::Types::BYTE, :name => 'retval'},
314 _SCENEIDS => {:type => ::Thrift::Types::LIST, :name => '_sceneIds', :element => {:type => ::Thrift::Types::BYTE}}
315 }
316
317 def struct_fields; FIELDS; end
318
319 def validate
320 end
321
322 ::Thrift::Struct.generate_accessors self
323 end
324
325 class SceneGetValuesReturnStruct
326 include ::Thrift::Struct, ::Thrift::Struct_Union
327 RETVAL = 1
328 O_VALUE = 2
329
330 FIELDS = {
331 RETVAL => {:type => ::Thrift::Types::I32, :name => 'retval'},
34c2ebe More OpenZWave compatibility fixes
Elias Karakoulakis authored
332 O_VALUE => {:type => ::Thrift::Types::LIST, :name => 'o_value', :element => {:type => ::Thrift::Types::STRUCT, :class => OpenZWave::RemoteValueID}}
4ab8d43 Thrift-generated code (automatically generated)
Elias Karakoulakis authored
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 end
Something went wrong with that request. Please try again.