GetReadSayHelloContactListMessage.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Friend;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. use App\Generated\V1_1\DTOs\PageDTO;
  7. use App\Generated\V1_1\DTOs\ListFriendDTO;
  8. class GetReadSayHelloContactListMessage extends Message
  9. {
  10. use ValueHelper;
  11. protected $page;
  12. protected $pages;
  13. protected $list;
  14. /**
  15. * @return int
  16. */
  17. public function getPage()
  18. {
  19. return $this->page;
  20. }
  21. public function requestRules()
  22. {
  23. return [
  24. ['page', 'page', 'bail|integer', Constants::INTEGER, null],
  25. ];
  26. }
  27. public function responseRules()
  28. {
  29. return [
  30. ['pages', 'pages', PageDTO::class, Constants::MODEL, null],
  31. ['list', 'list', ListFriendDTO::class, Constants::MODEL | Constants::ARRAY, null],
  32. ];
  33. }
  34. public function setResponse($pages, $list)
  35. {
  36. $this->pages = $pages;
  37. $this->list = $list;
  38. }
  39. }