[FEATURE] Простейшая релаизация UpdateRequest

This commit is contained in:
Gravit 2019-04-03 20:40:19 +07:00
parent 221666df3e
commit 1da05c49bd
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
3 changed files with 7 additions and 1 deletions

View file

@ -247,6 +247,7 @@ public class NettyConfig {
public int port;
public boolean clientEnabled;
public String launcherURL;
public String downloadURL;
public String launcherEXEURL;
public String address;
}

View file

@ -32,6 +32,6 @@ public void execute(WebSocketService service, ChannelHandlerContext ctx, Client
}
}
}
service.sendObject(ctx, new UpdateRequestEvent(LaunchServer.server.updatesDirMap.get(dir).object));
service.sendObject(ctx, new UpdateRequestEvent(LaunchServer.server.updatesDirMap.get(dir).object, LaunchServer.server.config.netty.downloadURL.concat(dir)));
}
}

View file

@ -18,4 +18,9 @@ public String getType() {
public UpdateRequestEvent(HashedDir hdir) {
this.hdir = hdir;
}
public UpdateRequestEvent(HashedDir hdir, String url) {
this.hdir = hdir;
this.url = url;
}
}