рефактиринг рассылки.v++
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user