Merge pull request #39 from retailcrm/dialog-list-since-id-filter
Filter sinceId in dialog list method
This commit is contained in:
commit
d92b89ad37
@ -1285,6 +1285,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Bot/Model/Request/DialogsRequest.php
|
||||
|
||||
-
|
||||
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\DialogsRequest\\:\\:setSinceId\\(\\) has no return typehint specified\\.$#"
|
||||
count: 1
|
||||
path: src/Bot/Model/Request/DialogsRequest.php
|
||||
|
||||
-
|
||||
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\DialogsRequest\\:\\:setBotId\\(\\) has no return typehint specified\\.$#"
|
||||
count: 1
|
||||
|
@ -25,6 +25,15 @@ class DialogsRequest implements ModelInterface
|
||||
use CommonFields;
|
||||
use PageLimit;
|
||||
|
||||
/**
|
||||
* @var int $sinceId
|
||||
*
|
||||
* @Type("int")
|
||||
* @Accessor(getter="getSinceId",setter="setSinceId")
|
||||
* @SkipWhenEmpty
|
||||
*/
|
||||
private $sinceId;
|
||||
|
||||
/**
|
||||
* @var int $chatId
|
||||
*
|
||||
@ -70,6 +79,22 @@ class DialogsRequest implements ModelInterface
|
||||
*/
|
||||
private $assign;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSinceId()
|
||||
{
|
||||
return $this->sinceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $sinceId
|
||||
*/
|
||||
public function setSinceId(int $sinceId)
|
||||
{
|
||||
$this->sinceId = $sinceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user