17 lines
663 B
Java
17 lines
663 B
Java
package _VisualDVM.Passes.All;
|
|
import _VisualDVM.Global;
|
|
import _VisualDVM.Passes.Server.ComponentsServerPass;
|
|
import _VisualDVM.Repository.Server.ServerCode;
|
|
import _VisualDVM.Repository.Subscribes.Subscriber;
|
|
public class CheckRegistrationOnServer extends ComponentsServerPass<Subscriber> {
|
|
@Override
|
|
protected boolean canStart(Object... args) throws Exception {
|
|
return SendRequest(ServerCode.CheckSubscriberRole, "", Global.mainModule.getAccount());
|
|
}
|
|
@Override
|
|
protected void body() throws Exception {
|
|
target = (Subscriber) request.server_response.object;
|
|
Global.mainModule.getAccount().role = target.role;
|
|
}
|
|
}
|