1
0
mirror of synced 2024-11-24 12:46:02 +03:00

add limit field to MessagesRequest

This commit is contained in:
Pavel 2023-10-26 09:50:02 +03:00
parent d92b89ad37
commit 7dd570ffc3
2 changed files with 26 additions and 0 deletions

View File

@ -105,6 +105,15 @@ class MessagesRequest implements ModelInterface
*/
private $type;
/**
* @var int $limit
*
* @Type("int")
* @Accessor(getter="getLimit",setter="setLimit")
* @SkipWhenEmpty()
*/
private $limit;
/**
* @return int
*/
@ -248,4 +257,20 @@ class MessagesRequest implements ModelInterface
{
$this->type = $type;
}
/**
* @return int
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param int $limit
*/
public function setLimit(int $limit)
{
$this->limit = $limit;
}
}

View File

@ -135,6 +135,7 @@ class ClientListTest extends TestCase
$request = new Request\MessagesRequest();
$request->setChannelType(Constants::CHANNEL_TYPE_INSTAGRAM);
$request->setType(Constants::MESSAGE_TYPE_TEXT);
$request->setLimit(1000);
$response = $client->messages($request);