1
0
mirror of synced 2024-11-26 05:16:03 +03:00

Merge pull request #39 from retailcrm/dialog-list-since-id-filter

Filter sinceId in dialog list method
This commit is contained in:
Ilyas Salikhov 2023-08-10 19:04:04 +03:00 committed by GitHub
commit d92b89ad37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -1285,6 +1285,11 @@ parameters:
count: 1 count: 1
path: src/Bot/Model/Request/DialogsRequest.php 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\\.$#" message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\DialogsRequest\\:\\:setBotId\\(\\) has no return typehint specified\\.$#"
count: 1 count: 1

View File

@ -25,6 +25,15 @@ class DialogsRequest implements ModelInterface
use CommonFields; use CommonFields;
use PageLimit; use PageLimit;
/**
* @var int $sinceId
*
* @Type("int")
* @Accessor(getter="getSinceId",setter="setSinceId")
* @SkipWhenEmpty
*/
private $sinceId;
/** /**
* @var int $chatId * @var int $chatId
* *
@ -70,6 +79,22 @@ class DialogsRequest implements ModelInterface
*/ */
private $assign; private $assign;
/**
* @return int
*/
public function getSinceId()
{
return $this->sinceId;
}
/**
* @param int $sinceId
*/
public function setSinceId(int $sinceId)
{
$this->sinceId = $sinceId;
}
/** /**
* @return int * @return int
*/ */