UidTranslationImAccountMessage.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Generated\V1_1\Messages\User;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class UidTranslationImAccountMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $reqUid;
  10. protected $reqIMAccount;
  11. protected $uid;
  12. protected $imAccount;
  13. /**
  14. * @return int|null
  15. */
  16. public function getReqUid()
  17. {
  18. return $this->reqUid;
  19. }
  20. /**
  21. * @return string|null
  22. */
  23. public function getReqIMAccount()
  24. {
  25. return $this->reqIMAccount;
  26. }
  27. public function requestRules()
  28. {
  29. return [
  30. ['reqUid', 'req_uid', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  31. ['reqIMAccount', 'req_i_m_account', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  32. ];
  33. }
  34. public function responseRules()
  35. {
  36. return [
  37. ['uid', 'uid', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  38. ['imAccount', 'im_account', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  39. ];
  40. }
  41. public function setResponse($uid, $imAccount)
  42. {
  43. $this->uid = $uid;
  44. $this->imAccount = $imAccount;
  45. }
  46. }