рефактиринг рассылки.v++

This commit is contained in:
2024-11-27 02:42:26 +03:00
parent 14f2e90d7a
commit d559e9963d
19 changed files with 135 additions and 152 deletions

View File

@@ -4,10 +4,11 @@ import _VisualDVM.Repository.EmailMessage;
import _VisualDVM.Repository.Server.ServerCode;
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
public class Email extends ComponentsRepositoryPass<EmailMessage> {
//этот емейл только для клиента. все что он делает отправляет на сервер то. что нужно отправить.
protected String address;
@Override
protected boolean canStart(Object... args) throws Exception {
target = (EmailMessage) args[0];
address = (String) args[1];
return true;
}
@Override
@@ -16,6 +17,6 @@ public class Email extends ComponentsRepositoryPass<EmailMessage> {
}
@Override
protected void ServerAction() throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.Email, "", target));
Command(new ServerExchangeUnit_2021(ServerCode.Email, address, target));
}
}