public static List<string> TcpConnects(BotDTO[] botlist, string model) { List<string> response = new List<string>(); for (var i = 0; i < botlist.Length; i++) { response.Add(Connecter.CreateTcpSend(botlist[i].Domain, model)); }; return response; }
public static CommandResponseModel[] TcpConnects(BotDTO[] botlist, string model)//Multi response { CommandResponseModel[] response = new CommandResponseModel[botlist.Length]; for (var i = 0; i < botlist.Length; i++) { response[i] = JsonConvert.DeserializeAnonymousType(Connecter.CreateTcpSend(botlist[i].Domain, model), new CommandResponseModel()); } ; return(response); }
public static string TcpConnects(BotDTO botlist, string model)//Solo response { string response = Connecter.CreateTcpSend(botlist.Domain, model); return(response); }