Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

readded some Thrift client languages

  • Loading branch information...
commit 8a33286b25a170676d583197c72e2bad7bce3e67 1 parent 320121e
@ekarak ekarak authored
Showing with 235,665 additions and 0 deletions.
  1. +139 −0 gen-csharp/OpenZWave/Bool_Bool.cs
  2. +139 −0 gen-csharp/OpenZWave/Bool_Float.cs
  3. +171 −0 gen-csharp/OpenZWave/Bool_GetNodeClassInformation.cs
  4. +139 −0 gen-csharp/OpenZWave/Bool_Int.cs
  5. +139 −0 gen-csharp/OpenZWave/Bool_Int16.cs
  6. +156 −0 gen-csharp/OpenZWave/Bool_ListString.cs
  7. +139 −0 gen-csharp/OpenZWave/Bool_String.cs
  8. +139 −0 gen-csharp/OpenZWave/Bool_UInt8.cs
  9. +171 −0 gen-csharp/OpenZWave/CommandClassData.cs
  10. +78 −0 gen-csharp/OpenZWave/DriverControllerCommand.cs
  11. +523 −0 gen-csharp/OpenZWave/DriverData.cs
  12. +156 −0 gen-csharp/OpenZWave/GetAllScenesReturnStruct.cs
  13. +156 −0 gen-csharp/OpenZWave/GetAssociationsReturnStruct.cs
  14. +108 −0 gen-csharp/OpenZWave/GetDriverStatisticsReturnStruct.cs
  15. +108 −0 gen-csharp/OpenZWave/GetNodeStatisticsReturnStruct.cs
  16. +203 −0 gen-csharp/OpenZWave/GetSwitchPointReturnStruct.cs
  17. +526 −0 gen-csharp/OpenZWave/NodeData.cs
  18. +39,618 −0 gen-csharp/OpenZWave/RemoteManager.cs
  19. +18 −0 gen-csharp/OpenZWave/RemoteValueGenre.cs
  20. +310 −0 gen-csharp/OpenZWave/RemoteValueID.cs
  21. +23 −0 gen-csharp/OpenZWave/RemoteValueType.cs
  22. +157 −0 gen-csharp/OpenZWave/SceneGetValuesReturnStruct.cs
  23. +156 −0 gen-csharp/OpenZWave/UInt32_ListByte.cs
  24. +9 −0 gen-erl/ozw_constants.hrl
  25. +266 −0 gen-erl/ozw_types.erl
  26. +164 −0 gen-erl/ozw_types.hrl
  27. +1,435 −0 gen-erl/remoteManager_thrift.erl
  28. +5 −0 gen-erl/remoteManager_thrift.hrl
  29. +17 −0 gen-go/OpenZWave/Makefile
  30. +61,501 −0 gen-go/OpenZWave/RemoteManager.go
  31. +14 −0 gen-go/OpenZWave/RemoteManager/Makefile
  32. +3,841 −0 gen-go/OpenZWave/RemoteManager/RemoteManager-remote.go
  33. +5,381 −0 gen-go/OpenZWave/ttypes.go
  34. +571 −0 gen-java/OpenZWave/CommandClassData.java
  35. +390 −0 gen-java/OpenZWave/GetNodeStatisticsReturnStruct.java
  36. +1,641 −0 gen-java/OpenZWave/NodeData.java
  37. +21,072 −0 gen-js/RemoteManager.js
  38. +1,945 −0 gen-js/ozw_types.js
  39. +13 −0 gen-perl/OpenZWave/Constants.pm
  40. +30,318 −0 gen-perl/OpenZWave/RemoteManager.pm
  41. +2,148 −0 gen-perl/OpenZWave/Types.pm
  42. +30,365 −0 gen-php/ozw/RemoteManager.php
  43. +2,675 −0 gen-php/ozw/ozw_types.php
  44. +1,082 −0 gen-py/OpenZWave/RemoteManager-remote
  45. +25,400 −0 gen-py/OpenZWave/RemoteManager.py
  46. +1 −0  gen-py/OpenZWave/__init__.py
  47. +11 −0 gen-py/OpenZWave/constants.py
  48. +1,928 −0 gen-py/OpenZWave/ttypes.py
  49. 0  gen-py/__init__.py
View
139 gen-csharp/OpenZWave/Bool_Bool.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_Bool : TBase
+ {
+ private bool _retval;
+ private bool _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public bool O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_Bool() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.Bool) {
+ O_value = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_Bool");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.Bool;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_Bool(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
139 gen-csharp/OpenZWave/Bool_Float.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_Float : TBase
+ {
+ private bool _retval;
+ private double _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public double O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_Float() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.Double) {
+ O_value = iprot.ReadDouble();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_Float");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.Double;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteDouble(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_Float(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
171 gen-csharp/OpenZWave/Bool_GetNodeClassInformation.cs
@@ -0,0 +1,171 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_GetNodeClassInformation : TBase
+ {
+ private bool _retval;
+ private string __className;
+ private byte __classVersion;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public string _className
+ {
+ get
+ {
+ return __className;
+ }
+ set
+ {
+ __isset._className = true;
+ this.__className = value;
+ }
+ }
+
+ public byte _classVersion
+ {
+ get
+ {
+ return __classVersion;
+ }
+ set
+ {
+ __isset._classVersion = true;
+ this.__classVersion = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool _className;
+ public bool _classVersion;
+ }
+
+ public Bool_GetNodeClassInformation() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.String) {
+ _className = iprot.ReadString();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 3:
+ if (field.Type == TType.Byte) {
+ _classVersion = iprot.ReadByte();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_GetNodeClassInformation");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (_className != null && __isset._className) {
+ field.Name = "_className";
+ field.Type = TType.String;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteString(_className);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset._classVersion) {
+ field.Name = "_classVersion";
+ field.Type = TType.Byte;
+ field.ID = 3;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteByte(_classVersion);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_GetNodeClassInformation(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",_className: ");
+ sb.Append(_className);
+ sb.Append(",_classVersion: ");
+ sb.Append(_classVersion);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
139 gen-csharp/OpenZWave/Bool_Int.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_Int : TBase
+ {
+ private bool _retval;
+ private int _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public int O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_Int() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.I32) {
+ O_value = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_Int");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.I32;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_Int(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
139 gen-csharp/OpenZWave/Bool_Int16.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_Int16 : TBase
+ {
+ private bool _retval;
+ private short _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public short O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_Int16() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.I16) {
+ O_value = iprot.ReadI16();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_Int16");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.I16;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI16(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_Int16(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
156 gen-csharp/OpenZWave/Bool_ListString.cs
@@ -0,0 +1,156 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_ListString : TBase
+ {
+ private bool _retval;
+ private List<string> _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public List<string> O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_ListString() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.List) {
+ {
+ O_value = new List<string>();
+ TList _list8 = iprot.ReadListBegin();
+ for( int _i9 = 0; _i9 < _list8.Count; ++_i9)
+ {
+ string _elem10 = null;
+ _elem10 = iprot.ReadString();
+ O_value.Add(_elem10);
+ }
+ iprot.ReadListEnd();
+ }
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_ListString");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (O_value != null && __isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.List;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ {
+ oprot.WriteListBegin(new TList(TType.String, O_value.Count));
+ foreach (string _iter11 in O_value)
+ {
+ oprot.WriteString(_iter11);
+ }
+ oprot.WriteListEnd();
+ }
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_ListString(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
139 gen-csharp/OpenZWave/Bool_String.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_String : TBase
+ {
+ private bool _retval;
+ private string _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public string O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_String() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.String) {
+ O_value = iprot.ReadString();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_String");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (O_value != null && __isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.String;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteString(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_String(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
139 gen-csharp/OpenZWave/Bool_UInt8.cs
@@ -0,0 +1,139 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class Bool_UInt8 : TBase
+ {
+ private bool _retval;
+ private byte _o_value;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public byte O_value
+ {
+ get
+ {
+ return _o_value;
+ }
+ set
+ {
+ __isset.o_value = true;
+ this._o_value = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_value;
+ }
+
+ public Bool_UInt8() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Bool) {
+ Retval = iprot.ReadBool();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.Byte) {
+ O_value = iprot.ReadByte();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("Bool_UInt8");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Bool;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteBool(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.o_value) {
+ field.Name = "o_value";
+ field.Type = TType.Byte;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteByte(O_value);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("Bool_UInt8(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_value: ");
+ sb.Append(O_value);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
171 gen-csharp/OpenZWave/CommandClassData.cs
@@ -0,0 +1,171 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class CommandClassData : TBase
+ {
+ private byte _m_commandClassId;
+ private int _m_sentCnt;
+ private int _m_receivedCnt;
+
+ public byte M_commandClassId
+ {
+ get
+ {
+ return _m_commandClassId;
+ }
+ set
+ {
+ __isset.m_commandClassId = true;
+ this._m_commandClassId = value;
+ }
+ }
+
+ public int M_sentCnt
+ {
+ get
+ {
+ return _m_sentCnt;
+ }
+ set
+ {
+ __isset.m_sentCnt = true;
+ this._m_sentCnt = value;
+ }
+ }
+
+ public int M_receivedCnt
+ {
+ get
+ {
+ return _m_receivedCnt;
+ }
+ set
+ {
+ __isset.m_receivedCnt = true;
+ this._m_receivedCnt = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool m_commandClassId;
+ public bool m_sentCnt;
+ public bool m_receivedCnt;
+ }
+
+ public CommandClassData() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Byte) {
+ M_commandClassId = iprot.ReadByte();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.I32) {
+ M_sentCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 3:
+ if (field.Type == TType.I32) {
+ M_receivedCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("CommandClassData");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.m_commandClassId) {
+ field.Name = "m_commandClassId";
+ field.Type = TType.Byte;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteByte(M_commandClassId);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.m_sentCnt) {
+ field.Name = "m_sentCnt";
+ field.Type = TType.I32;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(M_sentCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.m_receivedCnt) {
+ field.Name = "m_receivedCnt";
+ field.Type = TType.I32;
+ field.ID = 3;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(M_receivedCnt);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("CommandClassData(");
+ sb.Append("M_commandClassId: ");
+ sb.Append(M_commandClassId);
+ sb.Append(",M_sentCnt: ");
+ sb.Append(M_sentCnt);
+ sb.Append(",M_receivedCnt: ");
+ sb.Append(M_receivedCnt);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
78 gen-csharp/OpenZWave/DriverControllerCommand.cs
@@ -0,0 +1,78 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+
+namespace OpenZWave
+{
+ public enum DriverControllerCommand
+ {
+ ControllerCommand_None = 0,
+ /// <summary>
+ /// < No command.
+ /// </summary>
+ ControllerCommand_AddController = 1,
+ /// <summary>
+ /// < Add a new controller to the Z-Wave network. The new controller will be a secondary.
+ /// </summary>
+ ControllerCommand_AddDevice = 2,
+ /// <summary>
+ /// < Add a new device (but not a controller) to the Z-Wave network.
+ /// </summary>
+ ControllerCommand_CreateNewPrimary = 3,
+ /// <summary>
+ /// < 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.
+ /// </summary>
+ ControllerCommand_ReceiveConfiguration = 4,
+ /// <summary>
+ /// < Receive Z-Wave network configuration information from another controller.
+ /// </summary>
+ ControllerCommand_RemoveController = 5,
+ /// <summary>
+ /// < Remove a controller from the Z-Wave network.
+ /// </summary>
+ ControllerCommand_RemoveDevice = 6,
+ /// <summary>
+ /// < Remove a new device (but not a controller) from the Z-Wave network.
+ /// </summary>
+ ControllerCommand_RemoveFailedNode = 7,
+ /// <summary>
+ /// < Move a node to the controller's failed nodes list. This command will only work if the node cannot respond.
+ /// </summary>
+ ControllerCommand_HasNodeFailed = 8,
+ /// <summary>
+ /// < Check whether a node is in the controller's failed nodes list.
+ /// </summary>
+ ControllerCommand_ReplaceFailedNode = 9,
+ /// <summary>
+ /// < Replace a non-responding node with another. The node must be in the controller's list of failed nodes for this command to succeed.
+ /// </summary>
+ ControllerCommand_TransferPrimaryRole = 10,
+ /// <summary>
+ /// < Make a different controller the primary.
+ /// </summary>
+ ControllerCommand_RequestNetworkUpdate = 11,
+ /// <summary>
+ /// < Request network information from the SUC/SIS.
+ /// </summary>
+ ControllerCommand_RequestNodeNeighborUpdate = 12,
+ /// <summary>
+ /// < Get a node to rebuild its neighbour list. This method also does ControllerCommand_RequestNodeNeighbors
+ /// </summary>
+ ControllerCommand_AssignReturnRoute = 13,
+ /// <summary>
+ /// < Assign a network return routes to a device.
+ /// </summary>
+ ControllerCommand_DeleteAllReturnRoutes = 14,
+ /// <summary>
+ /// < Delete all return routes from a device.
+ /// </summary>
+ ControllerCommand_CreateButton = 15,
+ /// <summary>
+ /// Create a handheld button id.
+ /// </summary>
+ ControllerCommand_DeleteButton = 16,
+ }
+}
View
523 gen-csharp/OpenZWave/DriverData.cs
@@ -0,0 +1,523 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class DriverData : TBase
+ {
+ private int _s_SOFCnt;
+ private int _s_ACKWaiting;
+ private int _s_readAborts;
+ private int _s_badChecksum;
+ private int _s_readCnt;
+ private int _s_writeCnt;
+ private int _s_CANCnt;
+ private int _s_NAKCnt;
+ private int _s_ACKCnt;
+ private int _s_OOFCnt;
+ private int _s_dropped;
+ private int _s_retries;
+ private int _s_controllerReadCnt;
+ private int _s_controllerWriteCnt;
+
+ public int S_SOFCnt
+ {
+ get
+ {
+ return _s_SOFCnt;
+ }
+ set
+ {
+ __isset.s_SOFCnt = true;
+ this._s_SOFCnt = value;
+ }
+ }
+
+ public int S_ACKWaiting
+ {
+ get
+ {
+ return _s_ACKWaiting;
+ }
+ set
+ {
+ __isset.s_ACKWaiting = true;
+ this._s_ACKWaiting = value;
+ }
+ }
+
+ public int S_readAborts
+ {
+ get
+ {
+ return _s_readAborts;
+ }
+ set
+ {
+ __isset.s_readAborts = true;
+ this._s_readAborts = value;
+ }
+ }
+
+ public int S_badChecksum
+ {
+ get
+ {
+ return _s_badChecksum;
+ }
+ set
+ {
+ __isset.s_badChecksum = true;
+ this._s_badChecksum = value;
+ }
+ }
+
+ public int S_readCnt
+ {
+ get
+ {
+ return _s_readCnt;
+ }
+ set
+ {
+ __isset.s_readCnt = true;
+ this._s_readCnt = value;
+ }
+ }
+
+ public int S_writeCnt
+ {
+ get
+ {
+ return _s_writeCnt;
+ }
+ set
+ {
+ __isset.s_writeCnt = true;
+ this._s_writeCnt = value;
+ }
+ }
+
+ public int S_CANCnt
+ {
+ get
+ {
+ return _s_CANCnt;
+ }
+ set
+ {
+ __isset.s_CANCnt = true;
+ this._s_CANCnt = value;
+ }
+ }
+
+ public int S_NAKCnt
+ {
+ get
+ {
+ return _s_NAKCnt;
+ }
+ set
+ {
+ __isset.s_NAKCnt = true;
+ this._s_NAKCnt = value;
+ }
+ }
+
+ public int S_ACKCnt
+ {
+ get
+ {
+ return _s_ACKCnt;
+ }
+ set
+ {
+ __isset.s_ACKCnt = true;
+ this._s_ACKCnt = value;
+ }
+ }
+
+ public int S_OOFCnt
+ {
+ get
+ {
+ return _s_OOFCnt;
+ }
+ set
+ {
+ __isset.s_OOFCnt = true;
+ this._s_OOFCnt = value;
+ }
+ }
+
+ public int S_dropped
+ {
+ get
+ {
+ return _s_dropped;
+ }
+ set
+ {
+ __isset.s_dropped = true;
+ this._s_dropped = value;
+ }
+ }
+
+ public int S_retries
+ {
+ get
+ {
+ return _s_retries;
+ }
+ set
+ {
+ __isset.s_retries = true;
+ this._s_retries = value;
+ }
+ }
+
+ public int S_controllerReadCnt
+ {
+ get
+ {
+ return _s_controllerReadCnt;
+ }
+ set
+ {
+ __isset.s_controllerReadCnt = true;
+ this._s_controllerReadCnt = value;
+ }
+ }
+
+ public int S_controllerWriteCnt
+ {
+ get
+ {
+ return _s_controllerWriteCnt;
+ }
+ set
+ {
+ __isset.s_controllerWriteCnt = true;
+ this._s_controllerWriteCnt = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool s_SOFCnt;
+ public bool s_ACKWaiting;
+ public bool s_readAborts;
+ public bool s_badChecksum;
+ public bool s_readCnt;
+ public bool s_writeCnt;
+ public bool s_CANCnt;
+ public bool s_NAKCnt;
+ public bool s_ACKCnt;
+ public bool s_OOFCnt;
+ public bool s_dropped;
+ public bool s_retries;
+ public bool s_controllerReadCnt;
+ public bool s_controllerWriteCnt;
+ }
+
+ public DriverData() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.I32) {
+ S_SOFCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.I32) {
+ S_ACKWaiting = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 3:
+ if (field.Type == TType.I32) {
+ S_readAborts = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 4:
+ if (field.Type == TType.I32) {
+ S_badChecksum = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 5:
+ if (field.Type == TType.I32) {
+ S_readCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 6:
+ if (field.Type == TType.I32) {
+ S_writeCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 7:
+ if (field.Type == TType.I32) {
+ S_CANCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 8:
+ if (field.Type == TType.I32) {
+ S_NAKCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 9:
+ if (field.Type == TType.I32) {
+ S_ACKCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 10:
+ if (field.Type == TType.I32) {
+ S_OOFCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 11:
+ if (field.Type == TType.I32) {
+ S_dropped = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 12:
+ if (field.Type == TType.I32) {
+ S_retries = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 13:
+ if (field.Type == TType.I32) {
+ S_controllerReadCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 14:
+ if (field.Type == TType.I32) {
+ S_controllerWriteCnt = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("DriverData");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.s_SOFCnt) {
+ field.Name = "s_SOFCnt";
+ field.Type = TType.I32;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_SOFCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_ACKWaiting) {
+ field.Name = "s_ACKWaiting";
+ field.Type = TType.I32;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_ACKWaiting);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_readAborts) {
+ field.Name = "s_readAborts";
+ field.Type = TType.I32;
+ field.ID = 3;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_readAborts);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_badChecksum) {
+ field.Name = "s_badChecksum";
+ field.Type = TType.I32;
+ field.ID = 4;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_badChecksum);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_readCnt) {
+ field.Name = "s_readCnt";
+ field.Type = TType.I32;
+ field.ID = 5;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_readCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_writeCnt) {
+ field.Name = "s_writeCnt";
+ field.Type = TType.I32;
+ field.ID = 6;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_writeCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_CANCnt) {
+ field.Name = "s_CANCnt";
+ field.Type = TType.I32;
+ field.ID = 7;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_CANCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_NAKCnt) {
+ field.Name = "s_NAKCnt";
+ field.Type = TType.I32;
+ field.ID = 8;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_NAKCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_ACKCnt) {
+ field.Name = "s_ACKCnt";
+ field.Type = TType.I32;
+ field.ID = 9;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_ACKCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_OOFCnt) {
+ field.Name = "s_OOFCnt";
+ field.Type = TType.I32;
+ field.ID = 10;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_OOFCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_dropped) {
+ field.Name = "s_dropped";
+ field.Type = TType.I32;
+ field.ID = 11;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_dropped);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_retries) {
+ field.Name = "s_retries";
+ field.Type = TType.I32;
+ field.ID = 12;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_retries);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_controllerReadCnt) {
+ field.Name = "s_controllerReadCnt";
+ field.Type = TType.I32;
+ field.ID = 13;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_controllerReadCnt);
+ oprot.WriteFieldEnd();
+ }
+ if (__isset.s_controllerWriteCnt) {
+ field.Name = "s_controllerWriteCnt";
+ field.Type = TType.I32;
+ field.ID = 14;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(S_controllerWriteCnt);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("DriverData(");
+ sb.Append("S_SOFCnt: ");
+ sb.Append(S_SOFCnt);
+ sb.Append(",S_ACKWaiting: ");
+ sb.Append(S_ACKWaiting);
+ sb.Append(",S_readAborts: ");
+ sb.Append(S_readAborts);
+ sb.Append(",S_badChecksum: ");
+ sb.Append(S_badChecksum);
+ sb.Append(",S_readCnt: ");
+ sb.Append(S_readCnt);
+ sb.Append(",S_writeCnt: ");
+ sb.Append(S_writeCnt);
+ sb.Append(",S_CANCnt: ");
+ sb.Append(S_CANCnt);
+ sb.Append(",S_NAKCnt: ");
+ sb.Append(S_NAKCnt);
+ sb.Append(",S_ACKCnt: ");
+ sb.Append(S_ACKCnt);
+ sb.Append(",S_OOFCnt: ");
+ sb.Append(S_OOFCnt);
+ sb.Append(",S_dropped: ");
+ sb.Append(S_dropped);
+ sb.Append(",S_retries: ");
+ sb.Append(S_retries);
+ sb.Append(",S_controllerReadCnt: ");
+ sb.Append(S_controllerReadCnt);
+ sb.Append(",S_controllerWriteCnt: ");
+ sb.Append(S_controllerWriteCnt);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
156 gen-csharp/OpenZWave/GetAllScenesReturnStruct.cs
@@ -0,0 +1,156 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class GetAllScenesReturnStruct : TBase
+ {
+ private byte _retval;
+ private List<byte> __sceneIds;
+
+ public byte Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public List<byte> _sceneIds
+ {
+ get
+ {
+ return __sceneIds;
+ }
+ set
+ {
+ __isset._sceneIds = true;
+ this.__sceneIds = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool _sceneIds;
+ }
+
+ public GetAllScenesReturnStruct() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Byte) {
+ Retval = iprot.ReadByte();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.List) {
+ {
+ _sceneIds = new List<byte>();
+ TList _list20 = iprot.ReadListBegin();
+ for( int _i21 = 0; _i21 < _list20.Count; ++_i21)
+ {
+ byte _elem22 = 0;
+ _elem22 = iprot.ReadByte();
+ _sceneIds.Add(_elem22);
+ }
+ iprot.ReadListEnd();
+ }
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("GetAllScenesReturnStruct");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.Byte;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteByte(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (_sceneIds != null && __isset._sceneIds) {
+ field.Name = "_sceneIds";
+ field.Type = TType.List;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ {
+ oprot.WriteListBegin(new TList(TType.Byte, _sceneIds.Count));
+ foreach (byte _iter23 in _sceneIds)
+ {
+ oprot.WriteByte(_iter23);
+ }
+ oprot.WriteListEnd();
+ }
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("GetAllScenesReturnStruct(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",_sceneIds: ");
+ sb.Append(_sceneIds);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
156 gen-csharp/OpenZWave/GetAssociationsReturnStruct.cs
@@ -0,0 +1,156 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class GetAssociationsReturnStruct : TBase
+ {
+ private int _retval;
+ private List<byte> _o_associations;
+
+ public int Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public List<byte> O_associations
+ {
+ get
+ {
+ return _o_associations;
+ }
+ set
+ {
+ __isset.o_associations = true;
+ this._o_associations = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_associations;
+ }
+
+ public GetAssociationsReturnStruct() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.I32) {
+ Retval = iprot.ReadI32();
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ case 2:
+ if (field.Type == TType.List) {
+ {
+ O_associations = new List<byte>();
+ TList _list16 = iprot.ReadListBegin();
+ for( int _i17 = 0; _i17 < _list16.Count; ++_i17)
+ {
+ byte _elem18 = 0;
+ _elem18 = iprot.ReadByte();
+ O_associations.Add(_elem18);
+ }
+ iprot.ReadListEnd();
+ }
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("GetAssociationsReturnStruct");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (__isset.retval) {
+ field.Name = "retval";
+ field.Type = TType.I32;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ oprot.WriteI32(Retval);
+ oprot.WriteFieldEnd();
+ }
+ if (O_associations != null && __isset.o_associations) {
+ field.Name = "o_associations";
+ field.Type = TType.List;
+ field.ID = 2;
+ oprot.WriteFieldBegin(field);
+ {
+ oprot.WriteListBegin(new TList(TType.Byte, O_associations.Count));
+ foreach (byte _iter19 in O_associations)
+ {
+ oprot.WriteByte(_iter19);
+ }
+ oprot.WriteListEnd();
+ }
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("GetAssociationsReturnStruct(");
+ sb.Append("Retval: ");
+ sb.Append(Retval);
+ sb.Append(",O_associations: ");
+ sb.Append(O_associations);
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
108 gen-csharp/OpenZWave/GetDriverStatisticsReturnStruct.cs
@@ -0,0 +1,108 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class GetDriverStatisticsReturnStruct : TBase
+ {
+ private DriverData __data;
+
+ public DriverData _data
+ {
+ get
+ {
+ return __data;
+ }
+ set
+ {
+ __isset._data = true;
+ this.__data = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool _data;
+ }
+
+ public GetDriverStatisticsReturnStruct() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Struct) {
+ _data = new DriverData();
+ _data.Read(iprot);
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("GetDriverStatisticsReturnStruct");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (_data != null && __isset._data) {
+ field.Name = "_data";
+ field.Type = TType.Struct;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ _data.Write(oprot);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("GetDriverStatisticsReturnStruct(");
+ sb.Append("_data: ");
+ sb.Append(_data== null ? "<null>" : _data.ToString());
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
108 gen-csharp/OpenZWave/GetNodeStatisticsReturnStruct.cs
@@ -0,0 +1,108 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class GetNodeStatisticsReturnStruct : TBase
+ {
+ private NodeData __data;
+
+ public NodeData _data
+ {
+ get
+ {
+ return __data;
+ }
+ set
+ {
+ __isset._data = true;
+ this.__data = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool _data;
+ }
+
+ public GetNodeStatisticsReturnStruct() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }
+ switch (field.ID)
+ {
+ case 1:
+ if (field.Type == TType.Struct) {
+ _data = new NodeData();
+ _data.Read(iprot);
+ } else {
+ TProtocolUtil.Skip(iprot, field.Type);
+ }
+ break;
+ default:
+ TProtocolUtil.Skip(iprot, field.Type);
+ break;
+ }
+ iprot.ReadFieldEnd();
+ }
+ iprot.ReadStructEnd();
+ }
+
+ public void Write(TProtocol oprot) {
+ TStruct struc = new TStruct("GetNodeStatisticsReturnStruct");
+ oprot.WriteStructBegin(struc);
+ TField field = new TField();
+ if (_data != null && __isset._data) {
+ field.Name = "_data";
+ field.Type = TType.Struct;
+ field.ID = 1;
+ oprot.WriteFieldBegin(field);
+ _data.Write(oprot);
+ oprot.WriteFieldEnd();
+ }
+ oprot.WriteFieldStop();
+ oprot.WriteStructEnd();
+ }
+
+ public override string ToString() {
+ StringBuilder sb = new StringBuilder("GetNodeStatisticsReturnStruct(");
+ sb.Append("_data: ");
+ sb.Append(_data== null ? "<null>" : _data.ToString());
+ sb.Append(")");
+ return sb.ToString();
+ }
+
+ }
+
+}
View
203 gen-csharp/OpenZWave/GetSwitchPointReturnStruct.cs
@@ -0,0 +1,203 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0-dev)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using Thrift;
+using Thrift.Collections;
+using System.Runtime.Serialization;
+using Thrift.Protocol;
+using Thrift.Transport;
+
+namespace OpenZWave
+{
+
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public partial class GetSwitchPointReturnStruct : TBase
+ {
+ private bool _retval;
+ private byte _o_hours;
+ private byte _o_minutes;
+ private byte _o_setback;
+
+ public bool Retval
+ {
+ get
+ {
+ return _retval;
+ }
+ set
+ {
+ __isset.retval = true;
+ this._retval = value;
+ }
+ }
+
+ public byte O_hours
+ {
+ get
+ {
+ return _o_hours;
+ }
+ set
+ {
+ __isset.o_hours = true;
+ this._o_hours = value;
+ }
+ }
+
+ public byte O_minutes
+ {
+ get
+ {
+ return _o_minutes;
+ }
+ set
+ {
+ __isset.o_minutes = true;
+ this._o_minutes = value;
+ }
+ }
+
+ public byte O_setback
+ {
+ get
+ {
+ return _o_setback;
+ }
+ set
+ {
+ __isset.o_setback = true;
+ this._o_setback = value;
+ }
+ }
+
+
+ public Isset __isset;
+ #if !SILVERLIGHT
+ [Serializable]
+ #endif
+ public struct Isset {
+ public bool retval;
+ public bool o_hours;
+ public bool o_minutes;
+ public bool o_setback;
+ }
+
+ public GetSwitchPointReturnStruct() {
+ }
+
+ public void Read (TProtocol iprot)
+ {
+ TField field;
+ iprot.ReadStructBegin();
+ while (true)
+ {
+ field = iprot.ReadFieldBegin();
+ if (field.Type == TType.Stop) {
+ break;
+ }