53 return isset(self::$list[$code]) ? self::$list[$code] :
self::create($code);
63 public static function create($code)
92 return $this->transport->getName();
102 return $this->transport->getCode();
112 return $this->transport->getSupportedRecipientTypes();
134 return $this->sendCount;
144 return $this->transport->loadConfiguration();
160 return $this->transport->getConsentMaxRequests();
169 if ($this->startResult !==
null)
171 return $this->startResult;
181 return $this->startResult;
195 \Bitrix\Sender\Log::stat(
'sending_started', $this->transport->getCode(),
$message->getId());
198 $this->isStarted =
true;
200 $result = $this->transport->send(
$message);
201 \Bitrix\Sender\Log::stat(
'item_sent',
$message->getId(), $result ?
'Y' :
'N');
214 $this->transport->end();
215 $this->isEnded =
true;
234 if (!($this->transport instanceof
iDuration))
239 return $this->transport->getDuration(
$message);
259 return $this->transport instanceof
iConsent;
302 return $builder? $this->transport->sendConsent(
$message, $builder) :
false;
322 if ($this->limiters ===
null)
326 $this->limiters = array();
330 $this->limiters = $this->transport->getLimiters(
$message);
334 return $this->limiters;
347 if ($limiter->getCurrent() < $limiter->getLimit())
368 if ($limiter->getCurrent() < $limiter->getLimit())
static getConsentBuilder(string $code)
static getTestMessageConsentBuilder($code)
sendConsent($message, $data)
getSupportedRecipientTypes()
send(Message\Adapter $message)
sendConsentByBuilder(Message\Adapter $message, AbstractConsentMessageBuilder $builder)
isLimitsExceeded(Message\iBase $message=null)
getLimiters(Message\iBase $message=null)
sendTestConsent($message, $data)
static getInstance($code)
__construct(iBase $transport)
saveConfiguration(Message\Configuration $configuration)
getDuration($message=null)
getExceededLimiter(Message\iBase $message=null)