FriendApplyMsgOverviewMessage.php 957 B

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