static int Receive(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { BestHTTP.HTTPResponse obj = (BestHTTP.HTTPResponse)ToLua.CheckObject <BestHTTP.HTTPResponse>(L, 1); bool o = obj.Receive(); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 2) { BestHTTP.HTTPResponse obj = (BestHTTP.HTTPResponse)ToLua.CheckObject <BestHTTP.HTTPResponse>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool o = obj.Receive(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 3) { BestHTTP.HTTPResponse obj = (BestHTTP.HTTPResponse)ToLua.CheckObject <BestHTTP.HTTPResponse>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool o = obj.Receive(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 4) { BestHTTP.HTTPResponse obj = (BestHTTP.HTTPResponse)ToLua.CheckObject <BestHTTP.HTTPResponse>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool arg2 = LuaDLL.luaL_checkboolean(L, 4); bool o = obj.Receive(arg0, arg1, arg2); LuaDLL.lua_pushboolean(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BestHTTP.HTTPResponse.Receive")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }