#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 FBWindowsA2UNotificationsManagerWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(FBWindowsA2UNotificationsManager); Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 6); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScheduleButton", _m_ScheduleButton); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TitleText", _g_get_TitleText); Utils.RegisterFunc(L, Utils.GETTER_IDX, "BodyText", _g_get_BodyText); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MediaText", _g_get_MediaText); Utils.RegisterFunc(L, Utils.GETTER_IDX, "PayloadText", _g_get_PayloadText); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeIntervalText", _g_get_TimeIntervalText); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TitleText", _s_set_TitleText); Utils.RegisterFunc(L, Utils.SETTER_IDX, "BodyText", _s_set_BodyText); Utils.RegisterFunc(L, Utils.SETTER_IDX, "MediaText", _s_set_MediaText); Utils.RegisterFunc(L, Utils.SETTER_IDX, "PayloadText", _s_set_PayloadText); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeIntervalText", _s_set_TimeIntervalText); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); 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 FBWindowsA2UNotificationsManager(); 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 FBWindowsA2UNotificationsManager constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ScheduleButton(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ScheduleButton( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Logger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Logger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TitleText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TitleText); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_BodyText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.BodyText); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_MediaText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.MediaText); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_PayloadText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.PayloadText); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TimeIntervalText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TimeIntervalText); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Logger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TitleText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.TitleText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_BodyText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.BodyText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_MediaText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.MediaText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_PayloadText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.PayloadText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TimeIntervalText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.TimeIntervalText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }