Commit 6941e362 authored by captainwong's avatar captainwong

fix c# demo

parent 1dedea13
......@@ -33,7 +33,7 @@ namespace CSharpDemo
Debug.Assert(pkt.seq == 0);
Debug.Assert(pkt.acct == "90219125916578");
Debug.Assert(pkt.data.ademco_id == 0);
Debug.Assert(pkt.data.ademco_event == ademco_event_t.EVENT_I_AM_WIRE_MACHINE);
Debug.Assert(pkt.data.ademco_event == ademco_event_t.EVENT_I_AM_WIRE);
Debug.Assert(pkt.data.gg == 0);
Debug.Assert(pkt.data.zone == 0);
Console.WriteLine("res={0:D}, commited={1:D}", res, libademco.size_tp_value(cb));
......
......@@ -21,7 +21,7 @@ function test_parse() {
assert.strictEqual(pkt.seq, 0);
assert.strictEqual(pkt.acct, "90219125916578");
assert.strictEqual(pkt.data.ademco_id, 0);
assert.strictEqual(pkt.data.ademco_event, libademco.EVENT_I_AM_WIRE_MACHINE);
assert.strictEqual(pkt.data.ademco_event, libademco.EVENT_I_AM_WIRE);
assert.strictEqual(pkt.data.gg, 0);
assert.strictEqual(pkt.data.zone, 0);
console.log("res=%d, commited=%d", res, libademco.size_tp_value(cb));
......
This diff is collapsed.
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_hb_zone_property_t {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_hb_zone_property_t(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_hb_zone_property_t() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_hb_zone_property_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_hb_zone_property_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_int {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_int() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_int obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_size_t {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_size_t(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_size_t() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_size_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_size_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_time_t {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_time_t(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_time_t() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_time_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_time_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_unsigned_char {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_unsigned_char(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_unsigned_char() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_unsigned_char obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_unsigned_int {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_unsigned_int(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_unsigned_int() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_unsigned_int obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_unsigned_short {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_unsigned_short(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_unsigned_short() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_unsigned_short obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class SWIGTYPE_p_void {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal SWIGTYPE_p_void(global::System.IntPtr cPtr, bool futureUse) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
protected SWIGTYPE_p_void() {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_void obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SWIGTYPE_p_void obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_control_source_t {
ADEMCO_CONTROL_SOURCE_MACHINE = 0,
ADEMCO_CONTROL_SOURCE_REMOTE = 1,
ADEMCO_CONTROL_SOURCE_REMOTE_MAX = 50,
ADEMCO_CONTROL_SOURCE_SMART_HOME_ALEXA = 51,
ADEMCO_CONTROL_SOURCE_SMART_HOME_GOOGLE = 52,
ADEMCO_CONTROL_SOURCE_SMART_HOME_APPLE = 54,
ADEMCO_CONTROL_SOURCE_SMART_HOME_SAMSUNG = 55,
ADEMCO_CONTROL_SOURCE_SMART_HOME_ALI_GENIE = 56,
ADEMCO_CONTROL_SOURCE_SMART_HOME_MI_AI = 57,
ADEMCO_CONTROL_SOURCE_SMART_HOME_BAIDU = 58,
ADEMCO_CONTROL_SOURCE_SMART_HOME_MAX = 97,
ADEMCO_CONTROL_SOURCE_CENTER_TRANSMIT = 98,
ADEMCO_CONTROL_SOURCE_CENTER_DIRECT = 99,
ADEMCO_CONTROL_SOURCE_PHONE_APP = 100,
ADEMCO_CONTROL_SOURCE_PHONE_APP_MAX = 199,
ADEMCO_CONTROL_SOURCE_OWNER = 200,
ADEMCO_CONTROL_SOURCE_SHAREE = 201,
ADEMCO_CONTROL_SOURCE_SHAREE_MAX = 255
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class ademco_data_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal ademco_data_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ademco_data_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ademco_data_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~ademco_data_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_ademco_data_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public SWIGTYPE_p_unsigned_char raw {
set {
libademcoPINVOKE.ademco_data_t_raw_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.ademco_data_t_raw_get(swigCPtr);
SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
return ret;
}
}
public uint raw_len {
set {
libademcoPINVOKE.ademco_data_t_raw_len_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_data_t_raw_len_get(swigCPtr);
return ret;
}
}
public uint ademco_id {
set {
libademcoPINVOKE.ademco_data_t_ademco_id_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_data_t_ademco_id_get(swigCPtr);
return ret;
}
}
public ademco_event_t ademco_event {
set {
libademcoPINVOKE.ademco_data_t_ademco_event_set(swigCPtr, (int)value);
}
get {
ademco_event_t ret = (ademco_event_t)libademcoPINVOKE.ademco_data_t_ademco_event_get(swigCPtr);
return ret;
}
}
public byte gg {
set {
libademcoPINVOKE.ademco_data_t_gg_set(swigCPtr, value);
}
get {
byte ret = libademcoPINVOKE.ademco_data_t_gg_get(swigCPtr);
return ret;
}
}
public ushort zone {
set {
libademcoPINVOKE.ademco_data_t_zone_set(swigCPtr, value);
}
get {
ushort ret = libademcoPINVOKE.ademco_data_t_zone_get(swigCPtr);
return ret;
}
}
public ademco_data_t() : this(libademcoPINVOKE.new_ademco_data_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_event_level_t {
EVENT_LEVEL_NULL,
EVENT_LEVEL_STATUS,
EVENT_LEVEL_EXCEPTION_RECOVER,
EVENT_LEVEL_EXCEPTION,
EVENT_LEVEL_ALARM
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_event_t {
EVENT_INVALID_EVENT = 0,
EVENT_ARM_AWAY = 3400,
EVENT_DISARM = 1400,
EVENT_ARM_STAY = 3456,
EVENT_ARM_STAY_1456 = 1456,
EVENT_EMERGENCY = 1120,
EVENT_BURGLAR = 1130,
EVENT_DOOR_RING = 1134,
EVENT_FIRE = 1110,
EVENT_DURESS = 1121,
EVENT_GAS = 1151,
EVENT_WATER = 1113,
EVENT_TAMPER = 1137,
EVENT_ZONE_TAMPER = 1383,
EVENT_BYPASS = 1570,
EVENT_EMERGENCY_RECOVER = 3120,
EVENT_BURGLAR_RECOVER = 3130,
EVENT_DOOR_RING_RECOVER = 3134,
EVENT_FIRE_RECOVER = 3110,
EVENT_DURESS_RECOVER = 3121,
EVENT_GAS_RECOVER = 3151,
EVENT_WATER_RECOVER = 3113,
EVENT_TAMPER_RECOVER = 3137,
EVENT_ZONE_TAMPER_RECOVER = 3383,
EVENT_BYPASS_RECOVER = 3570,
EVENT_AC_BROKE = 1301,
EVENT_LOW_BATTERY = 1302,
EVENT_BAD_BATTERY = 1311,
EVENT_SOLAR_DISTURB = 1387,
EVENT_DISCONNECT = 1381,
EVENT_LOST = 1393,
EVENT_BATTERY_EXCEPTION = 1384,
EVENT_OTHER_EXCEPTION = 1380,
EVENT_AC_RECOVER = 3301,
EVENT_LOW_BATTERY_RECOVER = 3302,
EVENT_BAD_BATTERY_RECOVER = 3311,
EVENT_SOLAR_DISTURB_RECOVER = 3387,
EVENT_DISCONNECT_RECOVER = 3381,
EVENT_LOST_RECOVER = 3393,
EVENT_BATTERY_EXCEPTION_RECOVER = 3384,
EVENT_OTHER_EXCEPTION_RECOVER = 3380,
EVENT_CLEAR_EXCPTION = 3100,
EVENT_SERIAL_485_DIS = 1485,
EVENT_SERIAL_485_RECOVER = 3485,
EVENT_CONN_HANGUP = 1700,
EVENT_CONN_RECOVER = 3700,
EVENT_DISARM_PWD_ERR = 1701,
EVENT_SUB_MACHINE_SENSOR_EXCEPTION = 1702,
EVENT_SUB_MACHINE_SENSOR_RECOVER = 3702,
EVENT_SUB_MACHINE_POWER_EXCEPTION = 1703,
EVENT_SUB_MACHINE_POWER_RECOVER = 3703,
EVENT_COM_PASSTHROUGH = 1704,
EVENT_ENTER_SET_MODE = 2704,
EVENT_EXIT_SET_MODE = 3704,
EVENT_QUERY_SUB_MACHINE = 1705,
EVENT_WRITE_TO_MACHINE = 1706,
EVENT_I_AM_NET_MODULE = 1707,
EVENT_I_AM_GPRS = 1717,
EVENT_I_AM_LCD = 1727,
EVENT_I_AM_WIRE = 1737,
EVENT_I_AM_WIFI = 1747,
EVENT_I_AM_3_SECTION = 1757,
EVENT_I_AM_IOT = 1767,
EVENT_I_AM_TRUE_COLOR = 1777,
EVENT_I_AM_GPRS_IOT = 1787,
EVENT_I_AM_GPRS_PHONE = 1797,
EVENT_I_AM_NB = 1807,
EVENT_I_AM_WIFI2 = 1817,
EVENT_PHONE_USER_SOS = 1709,
EVENT_PHONE_USER_CANCLE_ALARM = 1711,
EVENT_ENTER_SETTING_MODE = 1712,
EVENT_EXIT_SETTING_MODE = 3712,
EVENT_RESTORE_FACTORY_SETTINGS_710 = 1710,
EVENT_RESTORE_FACTORY_SETTINGS = 1713,
EVENT_SIM_IS_IOT_CARD = 1756,
EVENT_SIM_IS_IOT_PLATFORM_CARD = 2756,
EVENT_SIM_IS_NOT_IOT_CARD = 3756,
EVENT_WHAT_IS_YOUR_TYPE = 1798,
EVENT_SIGNAL_STRENGTH_CHANGED = 1799,
EVENT_OFFLINE = 1944,
EVENT_ONLINE = 1946
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_packet_id_t {
AID_NULL,
AID_ACK,
AID_NAK,
AID_DUH,
AID_HB,
AID_ADM_CID,
AID_MOD_REG,
AID_REG_RSP,
AID_COUNT,
AID_INVALID = -1
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class ademco_packet_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal ademco_packet_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ademco_packet_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ademco_packet_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~ademco_packet_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_ademco_packet_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public ushort crc {
set {
libademcoPINVOKE.ademco_packet_t_crc_set(swigCPtr, value);
}
get {
ushort ret = libademcoPINVOKE.ademco_packet_t_crc_get(swigCPtr);
return ret;
}
}
public uint len {
set {
libademcoPINVOKE.ademco_packet_t_len_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_packet_t_len_get(swigCPtr);
return ret;
}
}
public ademco_packet_id_t id {
set {
libademcoPINVOKE.ademco_packet_t_id_set(swigCPtr, (int)value);
}
get {
ademco_packet_id_t ret = (ademco_packet_id_t)libademcoPINVOKE.ademco_packet_t_id_get(swigCPtr);
return ret;
}
}
public ushort seq {
set {
libademcoPINVOKE.ademco_packet_t_seq_set(swigCPtr, value);
}
get {
ushort ret = libademcoPINVOKE.ademco_packet_t_seq_get(swigCPtr);
return ret;
}
}
public string acct {
set {
libademcoPINVOKE.ademco_packet_t_acct_set(swigCPtr, value);
}
get {
string ret = libademcoPINVOKE.ademco_packet_t_acct_get(swigCPtr);
return ret;
}
}
public ademco_data_t data {
set {
libademcoPINVOKE.ademco_packet_t_data_set(swigCPtr, ademco_data_t.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.ademco_packet_t_data_get(swigCPtr);
ademco_data_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new ademco_data_t(cPtr, false);
return ret;
}
}
public ademco_xdata_t xdata {
set {
libademcoPINVOKE.ademco_packet_t_xdata_set(swigCPtr, ademco_xdata_t.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.ademco_packet_t_xdata_get(swigCPtr);
ademco_xdata_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new ademco_xdata_t(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_time_t timestamp {
set {
libademcoPINVOKE.ademco_packet_t_timestamp_set(swigCPtr, SWIGTYPE_p_time_t.getCPtr(value));
if (libademcoPINVOKE.SWIGPendingException.Pending) throw libademcoPINVOKE.SWIGPendingException.Retrieve();
}
get {
SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(libademcoPINVOKE.ademco_packet_t_timestamp_get(swigCPtr), true);
if (libademcoPINVOKE.SWIGPendingException.Pending) throw libademcoPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public SWIGTYPE_p_unsigned_char raw {
set {
libademcoPINVOKE.ademco_packet_t_raw_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.ademco_packet_t_raw_get(swigCPtr);
SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
return ret;
}
}
public uint raw_len {
set {
libademcoPINVOKE.ademco_packet_t_raw_len_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_packet_t_raw_len_get(swigCPtr);
return ret;
}
}
public ademco_packet_t() : this(libademcoPINVOKE.new_ademco_packet_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class ademco_parse_error_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal ademco_parse_error_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ademco_parse_error_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ademco_parse_error_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~ademco_parse_error_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_ademco_parse_error_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public string file {
set {
libademcoPINVOKE.ademco_parse_error_t_file_set(swigCPtr, value);
}
get {
string ret = libademcoPINVOKE.ademco_parse_error_t_file_get(swigCPtr);
return ret;
}
}
public int line {
set {
libademcoPINVOKE.ademco_parse_error_t_line_set(swigCPtr, value);
}
get {
int ret = libademcoPINVOKE.ademco_parse_error_t_line_get(swigCPtr);
return ret;
}
}
public uint offset {
set {
libademcoPINVOKE.ademco_parse_error_t_offset_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_parse_error_t_offset_get(swigCPtr);
return ret;
}
}
public string msg {
set {
libademcoPINVOKE.ademco_parse_error_t_msg_set(swigCPtr, value);
}
get {
string ret = libademcoPINVOKE.ademco_parse_error_t_msg_get(swigCPtr);
return ret;
}
}
public ademco_parse_error_t() : this(libademcoPINVOKE.new_ademco_parse_error_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_parse_result_t {
ADEMCO_PARSE_RESULT_OK,
ADEMCO_PARSE_RESULT_NOT_ENOUGH,
ADEMCO_PARSE_RESULT_ERROR
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_xdata_length_format_t {
ADEMCO_XDATA_LENGTH_FMT_TWO_HEX,
ADEMCO_XDATA_LENGTH_FMT_FOUR_DECIMAL
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class ademco_xdata_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal ademco_xdata_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ademco_xdata_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ademco_xdata_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~ademco_xdata_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_ademco_xdata_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public ademco_xdata_length_format_t lenghFormat {
set {
libademcoPINVOKE.ademco_xdata_t_lenghFormat_set(swigCPtr, (int)value);
}
get {
ademco_xdata_length_format_t ret = (ademco_xdata_length_format_t)libademcoPINVOKE.ademco_xdata_t_lenghFormat_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_unsigned_char raw {
set {
libademcoPINVOKE.ademco_xdata_t_raw_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.ademco_xdata_t_raw_get(swigCPtr);
SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
return ret;
}
}
public uint raw_len {
set {
libademcoPINVOKE.ademco_xdata_t_raw_len_set(swigCPtr, value);
}
get {
uint ret = libademcoPINVOKE.ademco_xdata_t_raw_len_get(swigCPtr);
return ret;
}
}
public ademco_xdata_t() : this(libademcoPINVOKE.new_ademco_xdata_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum ademco_xdata_transform_t {
ADEMCO_XDATA_TRANSFORM_AS_IS,
ADEMCO_XDATA_TRANSFORM_TO_ASCII
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum hb_machine_status_t {
HMS_ARM_AWAY = 0,
HMS_ARM_STAY = 1,
HMS_DISARM = 2,
HMS_SETTING = 3,
HMS_COUNT = 4,
HMS_INVALID = -1
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class hb_machine_time_point_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal hb_machine_time_point_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(hb_machine_time_point_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(hb_machine_time_point_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~hb_machine_time_point_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_hb_machine_time_point_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public byte hour {
set {
libademcoPINVOKE.hb_machine_time_point_t_hour_set(swigCPtr, value);
}
get {
byte ret = libademcoPINVOKE.hb_machine_time_point_t_hour_get(swigCPtr);
return ret;
}
}
public byte minute {
set {
libademcoPINVOKE.hb_machine_time_point_t_minute_set(swigCPtr, value);
}
get {
byte ret = libademcoPINVOKE.hb_machine_time_point_t_minute_get(swigCPtr);
return ret;
}
}
public hb_machine_time_point_t() : this(libademcoPINVOKE.new_hb_machine_time_point_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class hb_machine_timer_one_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal hb_machine_timer_one_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(hb_machine_timer_one_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(hb_machine_timer_one_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~hb_machine_timer_one_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_hb_machine_timer_one_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public hb_machine_time_point_t arm_at {
set {
libademcoPINVOKE.hb_machine_timer_one_t_arm_at_set(swigCPtr, hb_machine_time_point_t.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.hb_machine_timer_one_t_arm_at_get(swigCPtr);
hb_machine_time_point_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new hb_machine_time_point_t(cPtr, false);
return ret;
}
}
public hb_machine_time_point_t disarm_at {
set {
libademcoPINVOKE.hb_machine_timer_one_t_disarm_at_set(swigCPtr, hb_machine_time_point_t.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.hb_machine_timer_one_t_disarm_at_get(swigCPtr);
hb_machine_time_point_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new hb_machine_time_point_t(cPtr, false);
return ret;
}
}
public hb_machine_timer_one_t() : this(libademcoPINVOKE.new_hb_machine_timer_one_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class hb_machine_timer_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal hb_machine_timer_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(hb_machine_timer_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(hb_machine_timer_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~hb_machine_timer_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_hb_machine_timer_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public hb_machine_timer_one_t timer {
set {
libademcoPINVOKE.hb_machine_timer_t_timer_set(swigCPtr, hb_machine_timer_one_t.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.hb_machine_timer_t_timer_get(swigCPtr);
hb_machine_timer_one_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new hb_machine_timer_one_t(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_unsigned_char data {
set {
libademcoPINVOKE.hb_machine_timer_t_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
get {
global::System.IntPtr cPtr = libademcoPINVOKE.hb_machine_timer_t_data_get(swigCPtr);
SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
return ret;
}
}
public hb_machine_timer_t() : this(libademcoPINVOKE.new_hb_machine_timer_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum hb_machine_type_t {
HMT_WIFI = 0,
HMT_CAMERA = 1,
HMT_GPRS_IOT = 2,
HMT_NETMOD = 3,
HMT_GPRS = 4,
HMT_LCD = 5,
HMT_WIRED = 6,
HMT_TRUE_COLOR = 7,
HMT_THREE_SECTION = 8,
HMT_IOT = 9,
HMT_GPRS_PHONE = 10,
HMT_NB = 11,
HMT_WIFI2 = 12,
HMT_COUNT = 13,
HMT_INVALID = -1
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public class hb_zone_and_property_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal hb_zone_and_property_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(hb_zone_and_property_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
internal static global::System.Runtime.InteropServices.HandleRef swigRelease(hb_zone_and_property_t obj) {
if (obj != null) {
if (!obj.swigCMemOwn)
throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.Dispose();
return ptr;
} else {
return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
~hb_zone_and_property_t() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
libademcoPINVOKE.delete_hb_zone_and_property_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public ushort zone {
set {
libademcoPINVOKE.hb_zone_and_property_t_zone_set(swigCPtr, value);
}
get {
ushort ret = libademcoPINVOKE.hb_zone_and_property_t_zone_get(swigCPtr);
return ret;
}
}
public hb_zone_property_t prop {
set {
libademcoPINVOKE.hb_zone_and_property_t_prop_set(swigCPtr, (int)value);
}
get {
hb_zone_property_t ret = (hb_zone_property_t)libademcoPINVOKE.hb_zone_and_property_t_prop_get(swigCPtr);
return ret;
}
}
public hb_zone_and_property_t() : this(libademcoPINVOKE.new_hb_zone_and_property_t(), true) {
}
}
}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.1.1
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.hb3344.ademco {
public enum hb_zone_property_t {
HZP_BUGLAR = 0,
HZP_EMERGENCY = 1,
HZP_FIRE = 2,
HZP_DURESS = 3,
HZP_GAS = 4,
HZP_WATER = 5,
HZP_SUB_MACHINE = 6,
HZP_REMOTE_CONTROL = 7,
HZP_BUGLAR_HALF = 8,
HZP_SHIELD = 9,
HZP_DOOR_RING = 0x0A,
HZP_BYPASS = 0x0F,
HZP_COUNT = 12,
HZP_INVALID = -1
}
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment