рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
||||
import _VisualDVM.Repository.Subscribes.Subscriber;
|
||||
@@ -7,8 +8,8 @@ import Visual_DVM_2021.Passes.Server.ComponentsRepositoryPass;
|
||||
public class CheckRegistrationOnServer extends ComponentsRepositoryPass<Subscriber> {
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.CheckSubscriberRole, "", Current.getAccount()));
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.CheckSubscriberRole, "", Global.mainModule.getAccount()));
|
||||
target = (Subscriber) response.object;
|
||||
Current.getAccount().role = target.role;
|
||||
Global.mainModule.getAccount().role = target.role;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user