Files
VisualSapfor/src/Common/Passes/All/CheckRegistrationOnServer.java

15 lines
596 B
Java
Raw Normal View History

package Common.Passes.All;
2023-09-17 22:13:42 +03:00
import Common.Current;
import Repository.ServerCode;
import Repository.ServerExchangeUnit_2021;
import Repository.ComponentsServer.Subscribes.Subscriber;
import Common.Passes.Server.ComponentsRepositoryPass;
2023-09-17 22:13:42 +03:00
public class CheckRegistrationOnServer extends ComponentsRepositoryPass<Subscriber> {
@Override
protected void ServerAction() throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.CheckSubscriberRole, "", Current.getAccount()));
target = (Subscriber) response.object;
Current.getAccount().role = target.role;
}
}