1
0
mirror of synced 2024-11-22 11:56:03 +03:00

Add include_mass_communication param to requests

This commit is contained in:
Pavel 2024-09-16 15:29:00 +03:00 committed by GitHub
commit 95520bb1e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 51 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class ChatsRequest implements ModelInterface
{ {
use CommonFields; use CommonFields;
use PageLimit; use PageLimit;
use IncludeMassCommunication;
/** /**
* @Type("int") * @Type("int")

View File

@ -24,6 +24,7 @@ class DialogsRequest implements ModelInterface
{ {
use CommonFields; use CommonFields;
use PageLimit; use PageLimit;
use IncludeMassCommunication;
/** /**
* @var int $sinceId * @var int $sinceId

View File

@ -0,0 +1,48 @@
<?php
/**
* PHP version 7.1
*
* Common fields
*
* @package RetailCrm\Mg\Bot\Model\Request
*/
namespace RetailCrm\Mg\Bot\Model\Request;
use JMS\Serializer\Annotation\Accessor;
use JMS\Serializer\Annotation\SkipWhenEmpty;
use JMS\Serializer\Annotation\Type;
/**
* CommonFields trait
*
* @package RetailCrm\Mg\Bot\Model\Request
*/
trait IncludeMassCommunication
{
/**
* @var int $includeMassCommunication
*
* @Type("int")
* @Accessor(getter="getIncludeMassCommunication",setter="setIncludeMassCommunication")
* @SkipWhenEmpty
*/
private $includeMassCommunication;
/**
* @return int
*/
public function getIncludeMassCommunication()
{
return $this->includeMassCommunication;
}
/**
* @param int $includeMassCommunication
*/
public function setIncludeMassCommunication(?int $includeMassCommunication): void
{
$this->includeMassCommunication = $includeMassCommunication;
}
}

View File

@ -23,6 +23,7 @@ use RetailCrm\Mg\Bot\Model\ModelInterface;
class MessagesRequest implements ModelInterface class MessagesRequest implements ModelInterface
{ {
use CommonFields; use CommonFields;
use IncludeMassCommunication;
/** /**
* @var int $chatId * @var int $chatId