1752 lines
76 KiB
C#
1752 lines
76 KiB
C#
#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 ThinkingAnalyticsThinkingAnalyticsAPIWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(ThinkingAnalytics.ThinkingAnalyticsAPI);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 1, 5, 4);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "InvokeTaExceptionHandler", _m_InvokeTaExceptionHandler);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "startManually", _g_get_startManually);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableLog", _g_get_enableLog);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "networkType", _g_get_networkType);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "tokens", _g_get_tokens);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VERSION", _g_get_VERSION);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "startManually", _s_set_startManually);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableLog", _s_set_enableLog);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "networkType", _s_set_networkType);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "tokens", _s_set_tokens);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 33, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Identify", _m_Identify_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDistinctId", _m_GetDistinctId_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Login", _m_Login_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Logout", _m_Logout_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Flush", _m_Flush_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableAutoTrack", _m_EnableAutoTrack_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAutoTrackProperties", _m_SetAutoTrackProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Track", _m_Track_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetSuperProperties", _m_SetSuperProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UnsetSuperProperty", _m_UnsetSuperProperty_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSuperProperties", _m_GetSuperProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearSuperProperties", _m_ClearSuperProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPresetProperties", _m_GetPresetProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "TimeEvent", _m_TimeEvent_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserSet", _m_UserSet_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserUnset", _m_UserUnset_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserSetOnce", _m_UserSetOnce_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserAdd", _m_UserAdd_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserAppend", _m_UserAppend_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UserDelete", _m_UserDelete_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetNetworkType", _m_SetNetworkType_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDeviceId", _m_GetDeviceId_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetDynamicSuperProperties", _m_SetDynamicSuperProperties_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "OptOutTracking", _m_OptOutTracking_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "OptOutTrackingAndDeleteUser", _m_OptOutTrackingAndDeleteUser_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "OptInTracking", _m_OptInTracking_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableTracking", _m_EnableTracking_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateLightInstance", _m_CreateLightInstance_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.RegisterFunc(L, Utils.CLS_IDX, "setDefaultAppid", _m_setDefaultAppid_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "StartThinkingAnalytics", _m_StartThinkingAnalytics_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) == 1)
|
|
{
|
|
|
|
var gen_ret = new ThinkingAnalytics.ThinkingAnalyticsAPI();
|
|
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.ThinkingAnalyticsAPI constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Identify_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _FIRSTId = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Identify( _FIRSTId, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _FIRSTId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Identify( _FIRSTId );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.Identify!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetDistinctId_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetDistinctId( _appId );
|
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetDistinctId( );
|
|
LuaAPI.lua_pushstring(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.ThinkingAnalyticsAPI.GetDistinctId!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Login_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _account = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Login( _account, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _account = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Login( _account );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.Login!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Logout_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Logout( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Logout( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.Logout!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Flush_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Flush( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Flush( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.Flush!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_EnableAutoTrack_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 3&& translator.Assignable<ThinkingAnalytics.AUTO_TRACK_EVENTS>(L, 1)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events, _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<ThinkingAnalytics.AUTO_TRACK_EVENTS>(L, 1)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2))
|
|
{
|
|
ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events, _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<ThinkingAnalytics.AUTO_TRACK_EVENTS>(L, 1))
|
|
{
|
|
ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.EnableAutoTrack!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetAutoTrackProperties_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 3&& translator.Assignable<ThinkingAnalytics.AUTO_TRACK_EVENTS>(L, 1)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetAutoTrackProperties( _events, _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<ThinkingAnalytics.AUTO_TRACK_EVENTS>(L, 1)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2))
|
|
{
|
|
ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetAutoTrackProperties( _events, _properties );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.SetAutoTrackProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_InvokeTaExceptionHandler(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 2);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
gen_to_be_invoked.InvokeTaExceptionHandler( _eventName, _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Track_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<ThinkingAnalytics.ThinkingAnalyticsEvent>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
ThinkingAnalytics.ThinkingAnalyticsEvent _analyticsEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _analyticsEvent, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<ThinkingAnalytics.ThinkingAnalyticsEvent>(L, 1))
|
|
{
|
|
ThinkingAnalytics.ThinkingAnalyticsEvent _analyticsEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _analyticsEvent );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2)&& translator.Assignable<System.DateTime>(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _date;translator.Get(L, 3, out _date);
|
|
string _appId = LuaAPI.lua_tostring(L, 4);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _date, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 2)&& translator.Assignable<System.DateTime>(L, 3))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _date;translator.Get(L, 3, out _date);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _date );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.Track!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetSuperProperties_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _superProperties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetSuperProperties( _superProperties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _superProperties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetSuperProperties( _superProperties );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.SetSuperProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UnsetSuperProperty_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UnsetSuperProperty( _property, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UnsetSuperProperty( _property );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.UnsetSuperProperty!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetSuperProperties_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetSuperProperties( _appId );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetSuperProperties( );
|
|
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.ThinkingAnalyticsAPI.GetSuperProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_ClearSuperProperties_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.ClearSuperProperties( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.ClearSuperProperties( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.ClearSuperProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetPresetProperties_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetPresetProperties( _appId );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetPresetProperties( );
|
|
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.ThinkingAnalyticsAPI.GetPresetProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_TimeEvent_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.TimeEvent( _eventName, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _eventName = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.TimeEvent( _eventName );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.TimeEvent!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserSet_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties, _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserSet!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserUnset_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _property, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _property );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<string>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.List<string> _properties = (System.Collections.Generic.List<string>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<string>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<string>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<string> _properties = (System.Collections.Generic.List<string>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<string>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.List<string>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.List<string> _properties = (System.Collections.Generic.List<string>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<string>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties, _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<string>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2))
|
|
{
|
|
System.Collections.Generic.List<string> _properties = (System.Collections.Generic.List<string>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<string>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserUnset!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserSetOnce_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties, _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserSetOnce!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserAdd_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<object>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
object _value = translator.GetObject(L, 2, typeof(object));
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _property, _value, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<object>(L, 2))
|
|
{
|
|
string _property = LuaAPI.lua_tostring(L, 1);
|
|
object _value = translator.GetObject(L, 2, typeof(object));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _property, _value );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties, _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserAdd!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserAppend_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 3);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties, _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.Dictionary<string, object>>(L, 1)&& translator.Assignable<System.DateTime>(L, 2))
|
|
{
|
|
System.Collections.Generic.Dictionary<string, object> _properties = (System.Collections.Generic.Dictionary<string, object>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, object>));
|
|
System.DateTime _dateTime;translator.Get(L, 2, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserAppend!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserDelete_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.DateTime>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
System.DateTime _dateTime;translator.Get(L, 1, out _dateTime);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( _dateTime, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.DateTime>(L, 1))
|
|
{
|
|
System.DateTime _dateTime;translator.Get(L, 1, out _dateTime);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.UserDelete!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetNetworkType_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 1, out _networkType);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetNetworkType( _networkType, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType>(L, 1))
|
|
{
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 1, out _networkType);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetNetworkType( _networkType );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.SetNetworkType!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetDeviceId_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.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_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<ThinkingAnalytics.IDynamicSuperProperties>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 1, typeof(ThinkingAnalytics.IDynamicSuperProperties));
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetDynamicSuperProperties( _dynamicSuperProperties, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<ThinkingAnalytics.IDynamicSuperProperties>(L, 1))
|
|
{
|
|
ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 1, typeof(ThinkingAnalytics.IDynamicSuperProperties));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.SetDynamicSuperProperties( _dynamicSuperProperties );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.SetDynamicSuperProperties!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OptOutTracking_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTracking( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTracking( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.OptOutTracking!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OptOutTrackingAndDeleteUser_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OptInTracking_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptInTracking( _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.OptInTracking( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.OptInTracking!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_EnableTracking_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
bool _enabled = LuaAPI.lua_toboolean(L, 1);
|
|
string _appId = LuaAPI.lua_tostring(L, 2);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.EnableTracking( _enabled, _appId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1))
|
|
{
|
|
bool _enabled = LuaAPI.lua_toboolean(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.EnableTracking( _enabled );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.EnableTracking!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CreateLightInstance_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _appId = LuaAPI.lua_tostring(L, 1);
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.CreateLightInstance( _appId );
|
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.CreateLightInstance( );
|
|
LuaAPI.lua_pushstring(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.ThinkingAnalyticsAPI.CreateLightInstance!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CalibrateTime_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
|
|
{
|
|
long _timestamp = LuaAPI.lua_toint64(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.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.ThinkingAnalyticsAPI.CalibrateTimeWithNtp( _ntpServer );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_setDefaultAppid_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
|
|
{
|
|
string _appid = LuaAPI.lua_tostring(L, 1);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.setDefaultAppid( _appid );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StartThinkingAnalytics_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& translator.Assignable<ThinkingAnalytics.ThinkingAnalyticsAPI.Token[]>(L, 1))
|
|
{
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.Token[] _tokens = (ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token[]));
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.StartThinkingAnalytics( _tokens );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.StartThinkingAnalytics( );
|
|
|
|
|
|
|
|
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.ThinkingAnalyticsAPI.StartThinkingAnalytics!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_startManually(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startManually);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_enableLog(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableLog);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_networkType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, gen_to_be_invoked.networkType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_tokens(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.tokens);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_VERSION(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.VERSION);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_startManually(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.startManually = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_enableLog(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.enableLog = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_networkType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType gen_value;translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.networkType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_tokens(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.tokens = (ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])translator.GetObject(L, 2, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token[]));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|