2024-10-14 12:14:01 +03:00
|
|
|
package _VisualDVM.Passes.All;
|
2024-10-13 22:08:13 +03:00
|
|
|
import _VisualDVM.Global;
|
2025-02-04 23:47:15 +03:00
|
|
|
import _VisualDVM.Passes.Server.ComponentsServerPass;
|
2024-10-09 22:21:57 +03:00
|
|
|
import _VisualDVM.Repository.Server.ServerCode;
|
|
|
|
|
import _VisualDVM.Repository.Subscribes.Subscriber;
|
2025-02-04 23:47:15 +03:00
|
|
|
public class CheckRegistrationOnServer extends ComponentsServerPass<Subscriber> {
|
2023-09-17 22:13:42 +03:00
|
|
|
@Override
|
2025-02-04 23:47:15 +03:00
|
|
|
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;
|
2024-10-13 22:08:13 +03:00
|
|
|
Global.mainModule.getAccount().role = target.role;
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|