//------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.6 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace mscl { public class ActivitySense : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal ActivitySense(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(ActivitySense obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~ActivitySense() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; msclPINVOKE.delete_ActivitySense(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public ActivitySense() : this(msclPINVOKE.new_ActivitySense(), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public bool enabled() { bool ret = msclPINVOKE.ActivitySense_enabled__SWIG_0(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void enabled(bool enable) { msclPINVOKE.ActivitySense_enabled__SWIG_1(swigCPtr, enable); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public float activityThreshold() { float ret = msclPINVOKE.ActivitySense_activityThreshold__SWIG_0(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void activityThreshold(float threshold) { msclPINVOKE.ActivitySense_activityThreshold__SWIG_1(swigCPtr, threshold); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public float inactivityThreshold() { float ret = msclPINVOKE.ActivitySense_inactivityThreshold__SWIG_0(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void inactivityThreshold(float threshold) { msclPINVOKE.ActivitySense_inactivityThreshold__SWIG_1(swigCPtr, threshold); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public float activityTime() { float ret = msclPINVOKE.ActivitySense_activityTime__SWIG_0(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void activityTime(float time) { msclPINVOKE.ActivitySense_activityTime__SWIG_1(swigCPtr, time); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public float inactivityTimeout() { float ret = msclPINVOKE.ActivitySense_inactivityTimeout__SWIG_0(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void inactivityTimeout(float timeout) { msclPINVOKE.ActivitySense_inactivityTimeout__SWIG_1(swigCPtr, timeout); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } } }