упорядочил папки с кодом.

This commit is contained in:
2023-11-19 01:53:56 +03:00
parent 4883b4af51
commit 44c6daffa3
596 changed files with 2140 additions and 1569 deletions

View File

@@ -0,0 +1,16 @@
package Common.Passes.All;
import Common.Current;
import Common.Utils.Utils;
import Repository.ComponentsServer.Component.Component;
import Repository.ServerCode;
import Repository.ServerExchangeUnit_2021;
import Common.Passes.Server.ComponentsRepositoryPass;
public class DownloadComponent extends ComponentsRepositoryPass<Component> {
@Override
protected void ServerAction() throws Exception {
target = Current.getComponent();
String packed = target.getComponentType()+"\n"+target.getFileName();
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveComponent, packed));
Utils.unpackFile((byte[]) response.object, target.getNewFile());
}
}