Skip to content

Commit

Permalink
Add include_mass_communication param to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine authored Sep 16, 2024
2 parents fb0e940 + bd0c267 commit 95520bb
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Bot/Model/Request/ChatsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ChatsRequest implements ModelInterface
{
use CommonFields;
use PageLimit;
use IncludeMassCommunication;

/**
* @Type("int")
Expand Down
1 change: 1 addition & 0 deletions src/Bot/Model/Request/DialogsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class DialogsRequest implements ModelInterface
{
use CommonFields;
use PageLimit;
use IncludeMassCommunication;

/**
* @var int $sinceId
Expand Down
48 changes: 48 additions & 0 deletions src/Bot/Model/Request/IncludeMassCommunication.php
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 1 addition & 0 deletions src/Bot/Model/Request/MessagesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class MessagesRequest implements ModelInterface
{
use CommonFields;
use IncludeMassCommunication;

/**
* @var int $chatId
Expand Down

0 comments on commit 95520bb

Please sign in to comment.