Пример #1
0
 public void refreshClientStates(Client client)
 {
     foreach (StatusTargetEntry entry in statusMethods)
     {
         string newStatus = entry.execute().ToString();
         string oldStatus = client.getState(entry.getAppName() + "_" + entry.getStatusName());
         if (newStatus != oldStatus)
         {
             client.setState(entry.getAppName() + "_" + entry.getStatusName(), newStatus);
             outputHandler.addOutputCommand(new Command(entry.getAppName(), entry.getStatusName(), new string[] { newStatus }));
         }
     }
 }