public bool SendParameter <T>(byte command, String Request, T Parameter, int Querycount) { WeaveBase.WeaveSession b = new WeaveBase.WeaveSession(); b.Request = Request; b.Token = this.Tokan; b.SetParameter <T>(Parameter); b.Querycount = Querycount; return(send(command, b.Getjson())); }
public bool SendParameter <T>(Socket soc, byte command, String Request, T Parameter, int Querycount, String Tokan) { WeaveBase.WeaveSession b = new WeaveBase.WeaveSession(); b.Request = Request; b.Token = Tokan; b.SetParameter <T>(Parameter); b.Querycount = Querycount; bool sendok = Send(soc, command, b); if (!sendok) { return(Send(soc, command, b.Getjson())); } return(sendok); }