#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper); Utils.BeginObjectRegister(type, L, translator, 0, 30, 2, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicSuperProperties", _m_setDynamicSuperProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDynamicSuperProperties", _m_GetDynamicSuperProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Identify", _m_Identify); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDistinctId", _m_GetDistinctId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Logout", _m_Logout); Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableAutoTrack", _m_EnableAutoTrack); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoTrackProperties", _m_SetAutoTrackProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Track", _m_Track); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSuperProperties", _m_SetSuperProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnsetSuperProperty", _m_UnsetSuperProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSuperProperty", _m_ClearSuperProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TimeEvent", _m_TimeEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSuperProperties", _m_GetSuperProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPresetProperties", _m_GetPresetProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserSet", _m_UserSet); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserSetOnce", _m_UserSetOnce); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserUnset", _m_UserUnset); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserAdd", _m_UserAdd); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserAppend", _m_UserAppend); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserDelete", _m_UserDelete); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Flush", _m_Flush); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNetworkType", _m_SetNetworkType); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDeviceId", _m_GetDeviceId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDynamicSuperProperties", _m_SetDynamicSuperProperties); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptOutTracking", _m_OptOutTracking); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptOutTrackingAndDeleteUser", _m_OptOutTrackingAndDeleteUser); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptInTracking", _m_OptInTracking); Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableTracking", _m_EnableTracking); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateLightInstance", _m_CreateLightInstance); Utils.RegisterFunc(L, Utils.GETTER_IDX, "taMono", _g_get_taMono); Utils.RegisterFunc(L, Utils.GETTER_IDX, "token", _g_get_token); Utils.RegisterFunc(L, Utils.SETTER_IDX, "taMono", _s_set_taMono); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableLog", _m_EnableLog_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "SetVersionInfo", _m_SetVersionInfo_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTime", _m_CalibrateTime_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTimeWithNtp", _m_CalibrateTimeWithNtp_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { ThinkingAnalytics.ThinkingAnalyticsAPI.Token _token;translator.Get(L, 2, out _token); UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 3, typeof(UnityEngine.MonoBehaviour)); bool _initRequired = LuaAPI.lua_toboolean(L, 4); var gen_ret = new ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper(_token, _mono, _initRequired); translator.Push(L, gen_ret); return 1; } if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) { ThinkingAnalytics.ThinkingAnalyticsAPI.Token _token;translator.Get(L, 2, out _token); UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 3, typeof(UnityEngine.MonoBehaviour)); var gen_ret = new ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper(_token, _mono); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_setDynamicSuperProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 2, typeof(ThinkingAnalytics.IDynamicSuperProperties)); gen_to_be_invoked.setDynamicSuperProperties( _dynamicSuperProperties ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetDynamicSuperProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetDynamicSuperProperties( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_EnableLog_xlua_st_(RealStatePtr L) { try { { bool _enableLog = LuaAPI.lua_toboolean(L, 1); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.EnableLog( _enableLog ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetVersionInfo_xlua_st_(RealStatePtr L) { try { { string _version = LuaAPI.lua_tostring(L, 1); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.SetVersionInfo( _version ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Identify(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { string _uniqueId = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.Identify( _uniqueId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetDistinctId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetDistinctId( ); LuaAPI.lua_pushstring(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Login(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { string _accountId = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.Login( _accountId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Logout(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Logout( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_EnableAutoTrack(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 2, out _events); System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.EnableAutoTrack( _events, _properties ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetAutoTrackProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 2, out _events); System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.SetAutoTrackProperties( _events, _properties ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Track(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { ThinkingAnalytics.ThinkingAnalyticsEvent _taEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 2, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent)); gen_to_be_invoked.Track( _taEvent ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) { string _eventName = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.Track( _eventName, _properties ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& translator.Assignable(L, 4)) { string _eventName = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); System.DateTime _datetime;translator.Get(L, 4, out _datetime); gen_to_be_invoked.Track( _eventName, _properties, _datetime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.Track!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetSuperProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { System.Collections.Generic.Dictionary _superProperties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.SetSuperProperties( _superProperties ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UnsetSuperProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { string _superPropertyName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.UnsetSuperProperty( _superPropertyName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ClearSuperProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearSuperProperty( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TimeEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { string _eventName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.TimeEvent( _eventName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetSuperProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetSuperProperties( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPresetProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetPresetProperties( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserSet(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.UserSet( _properties ); return 0; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); gen_to_be_invoked.UserSet( _properties, _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserSet!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserSetOnce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.UserSetOnce( _properties ); return 0; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); gen_to_be_invoked.UserSetOnce( _properties, _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserSetOnce!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserUnset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); gen_to_be_invoked.UserUnset( _properties ); return 0; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) { System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); gen_to_be_invoked.UserUnset( _properties, _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserUnset!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserAdd(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.UserAdd( _properties ); return 0; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); gen_to_be_invoked.UserAdd( _properties, _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserAdd!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserAppend(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.UserAppend( _properties ); return 0; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) { System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); gen_to_be_invoked.UserAppend( _properties, _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserAppend!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UserDelete(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 1) { gen_to_be_invoked.UserDelete( ); return 0; } if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); gen_to_be_invoked.UserDelete( _dateTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserDelete!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Flush(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Flush( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetNetworkType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 2, out _networkType); gen_to_be_invoked.SetNetworkType( _networkType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetDeviceId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetDeviceId( ); LuaAPI.lua_pushstring(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetDynamicSuperProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 2, typeof(ThinkingAnalytics.IDynamicSuperProperties)); gen_to_be_invoked.SetDynamicSuperProperties( _dynamicSuperProperties ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OptOutTracking(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OptOutTracking( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OptOutTrackingAndDeleteUser(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OptOutTrackingAndDeleteUser( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OptInTracking(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OptInTracking( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_EnableTracking(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { bool _enabled = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.EnableTracking( _enabled ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CreateLightInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.CreateLightInstance( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CalibrateTime_xlua_st_(RealStatePtr L) { try { { long _timestamp = LuaAPI.lua_toint64(L, 1); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.CalibrateTime( _timestamp ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CalibrateTimeWithNtp_xlua_st_(RealStatePtr L) { try { { string _ntpServer = LuaAPI.lua_tostring(L, 1); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.CalibrateTimeWithNtp( _ntpServer ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_taMono(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.taMono); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_token(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.token); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_taMono(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); gen_to_be_invoked.taMono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }