-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new method for get task comments (#188)
- Loading branch information
1 parent
7263656
commit 3927344
Showing
8 changed files
with
256 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category BaseComment | ||
* @package RetailCrm\Api\Model\Entity\Tasks | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\Tasks; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class BaseComment | ||
* | ||
* @category BaseComment | ||
* @package RetailCrm\Api\Model\Entity\Tasks | ||
*/ | ||
class BaseComment | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("int") | ||
* @JMS\SerializedName("id") | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("text") | ||
*/ | ||
public $text; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category TaskGetCommentsRequest | ||
* @package RetailCrm\Api\Model\Request\Tasks | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Request\Tasks; | ||
|
||
use RetailCrm\Api\Interfaces\RequestInterface; | ||
use RetailCrm\Api\Model\Request\Traits\PageLimitTrait; | ||
|
||
/** | ||
* Class TaskGetCommentsRequest | ||
* | ||
* @category TaskGetCommentsRequest | ||
* @package RetailCrm\Api\Model\Request\Tasks | ||
*/ | ||
class TaskGetCommentsRequest implements RequestInterface | ||
{ | ||
use PageLimitTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category TaskGetCommentsResponse | ||
* @package RetailCrm\Api\Model\Response\Tasks | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Response\Tasks; | ||
|
||
use RetailCrm\Api\Model\Entity\Tasks\TaskComment; | ||
use RetailCrm\Api\Model\Response\AbstractPaginatedResponse; | ||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class TaskGetCommentsResponse | ||
* | ||
* @category TaskGetCommentsRequest | ||
* @package RetailCrm\Api\Model\Response\Tasks | ||
*/ | ||
class TaskGetCommentsResponse extends AbstractPaginatedResponse | ||
{ | ||
/** | ||
* @var TaskComment[] | ||
* | ||
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Tasks\TaskComment>") | ||
* @JMS\SerializedName("comments") | ||
*/ | ||
public $comments; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters