TimMessageDTO.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. namespace App\Generated\V1_1\DTOs;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\DTOs\DTO;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class TimMessageDTO extends DTO
  7. {
  8. use ValueHelper;
  9. protected $fromAccount;
  10. protected $toAccount;
  11. protected $msgRandom;
  12. protected $msgTimeStamp;
  13. protected $msgSeq;
  14. protected $read;
  15. protected $content;
  16. /**
  17. * @return string
  18. */
  19. public function getFromAccount()
  20. {
  21. return $this->fromAccount;
  22. }
  23. /**
  24. * @return string
  25. */
  26. public function getToAccount()
  27. {
  28. return $this->toAccount;
  29. }
  30. /**
  31. * @return int
  32. */
  33. public function getMsgRandom()
  34. {
  35. return $this->msgRandom;
  36. }
  37. /**
  38. * @return int
  39. */
  40. public function getMsgTimeStamp()
  41. {
  42. return $this->msgTimeStamp;
  43. }
  44. /**
  45. * @return int
  46. */
  47. public function getMsgSeq()
  48. {
  49. return $this->msgSeq;
  50. }
  51. /**
  52. * @return int
  53. */
  54. public function getRead()
  55. {
  56. return $this->read;
  57. }
  58. /**
  59. * @return null
  60. */
  61. public function getContent()
  62. {
  63. return $this->content;
  64. }
  65. public function setFromAccount($fromAccount)
  66. {
  67. $this->fromAccount = $fromAccount;
  68. }
  69. public function setToAccount($toAccount)
  70. {
  71. $this->toAccount = $toAccount;
  72. }
  73. public function setMsgRandom($msgRandom)
  74. {
  75. $this->msgRandom = $msgRandom;
  76. }
  77. public function setMsgTimeStamp($msgTimeStamp)
  78. {
  79. $this->msgTimeStamp = $msgTimeStamp;
  80. }
  81. public function setMsgSeq($msgSeq)
  82. {
  83. $this->msgSeq = $msgSeq;
  84. }
  85. public function setRead($read)
  86. {
  87. $this->read = $read;
  88. }
  89. public function setContent($content)
  90. {
  91. $this->content = $content;
  92. }
  93. public function getAttributeMap()
  94. {
  95. return [
  96. ['fromAccount', 'from_account', 'bail|string', Constants::STRING, null],
  97. ['toAccount', 'to_account', 'bail|string', Constants::STRING, null],
  98. ['msgRandom', 'msg_random', 'bail|integer', Constants::INTEGER, null],
  99. ['msgTimeStamp', 'msg_time_stamp', 'bail|integer', Constants::INTEGER, null],
  100. ['msgSeq', 'msg_seq', 'bail|integer', Constants::INTEGER, null],
  101. ['read', 'read', 'bail|integer', Constants::INTEGER, null],
  102. ['content', 'content', 'bail', null, null],
  103. ];
  104. }
  105. }