70717273747576
public void addLogs(List serverLogs) { logFetched = true; logs.addAll(serverLogs); backend.send(new InfoQuery("set",new IQPrivate(new ServerLogExtension(logs)))); }
141142143144145146147
return log; } private void fetchLog() { backend.send(new InfoQuery("get",new IQPrivate(new ServerLogExtension()))); }
153154155156157158159160161
Element e = doc.getRootElements()[0]; for (int i = 1; i < e.getElementCount(); i++) { parseElement(e.getElement(i), log); } if(logFetched)backend.send(new InfoQuery("set",new IQPrivate(new ServerLogExtension(logs)))); else fetchLog(); }