You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/extend/alimsg/msg_sdk/lib/MNS/Model/SendMessageRequestItem.php

28 lines
661 B

4 years ago
<?php
namespace AliyunMNS\Model;
use AliyunMNS\Constants;
use AliyunMNS\Traits\MessagePropertiesForSend;
// this class is used for BatchSend
class SendMessageRequestItem
{
use MessagePropertiesForSend;
public function __construct($messageBody, $delaySeconds = NULL, $priority = NULL)
{
$this->messageBody = $messageBody;
$this->delaySeconds = $delaySeconds;
$this->priority = $priority;
}
public function writeXML(\XMLWriter $xmlWriter, $base64)
{
$xmlWriter->startELement('Message');
$this->writeMessagePropertiesForSendXML($xmlWriter, $base64);
$xmlWriter->endElement();
}
}
?>