TapCommon-Unity/Runtime/Internal/Duration/Wrapper/Config.cs

85 lines
2.4 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.taptap.tapsdk.bindings.csharp {
public class Config : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal Config(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(Config obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
~Config() {
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;
TapSDKPINVOKE.delete_Config(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public bool enable_duration_statistics {
set {
TapSDKPINVOKE.Config_enable_duration_statistics_set(swigCPtr, value);
}
get {
bool ret = TapSDKPINVOKE.Config_enable_duration_statistics_get(swigCPtr);
return ret;
}
}
public Region region {
set {
TapSDKPINVOKE.Config_region_set(swigCPtr, (int)value);
}
get {
Region ret = (Region)TapSDKPINVOKE.Config_region_get(swigCPtr);
return ret;
}
}
public string sdk_version {
set {
TapSDKPINVOKE.Config_sdk_version_set(swigCPtr, value);
if (TapSDKPINVOKE.SWIGPendingException.Pending) throw TapSDKPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = TapSDKPINVOKE.Config_sdk_version_get(swigCPtr);
if (TapSDKPINVOKE.SWIGPendingException.Pending) throw TapSDKPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public Config() : this(TapSDKPINVOKE.new_Config(), true) {
}
}
}