static int RegisterProxy(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); PureMVC.Interfaces.IProxy arg0 = (PureMVC.Interfaces.IProxy)ToLua.CheckObject <PureMVC.Interfaces.IProxy>(L, 2); obj.RegisterProxy(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int NotifyObservers(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); PureMVC.Interfaces.INotification arg0 = (PureMVC.Interfaces.INotification)ToLua.CheckObject <PureMVC.Interfaces.INotification>(L, 2); obj.NotifyObservers(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveCommand(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.RemoveCommand(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HasProxy(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); bool o = obj.HasProxy(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveProxy(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); PureMVC.Interfaces.IProxy o = obj.RemoveProxy(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SendNotification(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.SendNotification(arg0); return(0); } else if (count == 3) { PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); object arg1 = ToLua.ToVarObject(L, 3); obj.SendNotification(arg0, arg1); return(0); } else if (count == 4) { PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1); string arg0 = ToLua.CheckString(L, 2); object arg1 = ToLua.ToVarObject(L, 3); string arg2 = ToLua.CheckString(L, 4); obj.SendNotification(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: PureMVC.Patterns.Facade.SendNotification")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public virtual void SendNotification(string notificationName, object body, string type) { Facade.SendNotification(notificationName, body, type); }
public virtual void SendNotification(string notificationName) { Facade.SendNotification(notificationName); }
/// <summary> /// Facade Singleton Factory method. This method is thread safe. /// </summary> public static IFacade GetInstance(string key) { IFacade result; if (m_instanceMap.TryGetValue(key, out result)) return result; result = new Facade(key); m_instanceMap[key] = result; return result; }
public void SendNotification(int id, object param, object extra) { Facade.NotifyObservers(new Notification(id, param, extra)); }
public IProxy RetrieveProxy(string proxyName) { return(Facade.RetrieveProxy(proxyName)); }
public void sendNotification(string notificationName, object body = null, string type = null) { Facade.SendNotification(notificationName, body, type); }