v++
Любое взаимодействие с серверами сведено до единстенной команды.
This commit is contained in:
@@ -12,6 +12,9 @@ public abstract class ClientPass <S extends RepositoryServer,T> extends Pass<T>
|
||||
protected boolean needsAnimation() {
|
||||
return false;
|
||||
}
|
||||
protected boolean requestNeedsAnimation(){
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
@@ -20,6 +23,10 @@ public abstract class ClientPass <S extends RepositoryServer,T> extends Pass<T>
|
||||
protected boolean SendRequest(ServerCode code_in, String arg_in, Serializable object_in, int delay){
|
||||
request = null;
|
||||
request = new RepositoryPass(getServer()) {
|
||||
@Override
|
||||
protected boolean needsAnimation() {
|
||||
return requestNeedsAnimation();
|
||||
}
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return code_in.getDescription();
|
||||
|
||||
Reference in New Issue
Block a user