Пример #1
0
 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;
 }
Пример #2
0
 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);
 }
Пример #3
0
        public static string TcpConnects(BotDTO botlist, string model)//Solo response
        {
            string response = Connecter.CreateTcpSend(botlist.Domain, model);

            return(response);
        }