TimMessageDTO.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. namespace App\Generated\V1\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 $content;
  15. /**
  16. * @return string
  17. */
  18. public function getFromAccount()
  19. {
  20. return $this->fromAccount;
  21. }
  22. /**
  23. * @return string
  24. */
  25. public function getToAccount()
  26. {
  27. return $this->toAccount;
  28. }
  29. /**
  30. * @return int
  31. */
  32. public function getMsgRandom()
  33. {
  34. return $this->msgRandom;
  35. }
  36. /**
  37. * @return int
  38. */
  39. public function getMsgTimeStamp()
  40. {
  41. return $this->msgTimeStamp;
  42. }
  43. /**
  44. * @return int
  45. */
  46. public function getMsgSeq()
  47. {
  48. return $this->msgSeq;
  49. }
  50. /**
  51. * @return null
  52. */
  53. public function getContent()
  54. {
  55. return $this->content;
  56. }
  57. public function setFromAccount($fromAccount)
  58. {
  59. $this->fromAccount = $fromAccount;
  60. }
  61. public function setToAccount($toAccount)
  62. {
  63. $this->toAccount = $toAccount;
  64. }
  65. public function setMsgRandom($msgRandom)
  66. {
  67. $this->msgRandom = $msgRandom;
  68. }
  69. public function setMsgTimeStamp($msgTimeStamp)
  70. {
  71. $this->msgTimeStamp = $msgTimeStamp;
  72. }
  73. public function setMsgSeq($msgSeq)
  74. {
  75. $this->msgSeq = $msgSeq;
  76. }
  77. public function setContent($content)
  78. {
  79. $this->content = $content;
  80. }
  81. public function getAttributeMap()
  82. {
  83. return [
  84. ['fromAccount', 'from_account', 'bail|string', Constants::STRING, null],
  85. ['toAccount', 'to_account', 'bail|string', Constants::STRING, null],
  86. ['msgRandom', 'msg_random', 'bail|integer', Constants::INTEGER, null],
  87. ['msgTimeStamp', 'msg_time_stamp', 'bail|integer', Constants::INTEGER, null],
  88. ['msgSeq', 'seq', 'bail|integer', Constants::INTEGER, null],
  89. ['content', 'content', 'bail', null, null],
  90. ];
  91. }
  92. }