RefreshMessage.php 858 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 RefreshMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $uid;
  10. protected $imAccount;
  11. protected $imSig;
  12. public function requestRules()
  13. {
  14. return [
  15. ];
  16. }
  17. public function responseRules()
  18. {
  19. return [
  20. ['uid', 'uid', 'bail|integer', Constants::INTEGER, null],
  21. ['imAccount', 'im_account', 'bail|string', Constants::STRING, null],
  22. ['imSig', 'im_sig', 'bail|string', Constants::STRING, null],
  23. ];
  24. }
  25. public function setResponse($uid, $imAccount, $imSig)
  26. {
  27. $this->uid = $uid;
  28. $this->imAccount = $imAccount;
  29. $this->imSig = $imSig;
  30. }
  31. }