123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Generated\V1\Messages\Im;
- use Kamicloud\StubApi\Concerns\ValueHelper;
- use Kamicloud\StubApi\Http\Messages\Message;
- use Kamicloud\StubApi\Utils\Constants;
- use App\Generated\V1\DTOs\TimMessageDTO;
- class GetUsersLatestsMessage extends Message
- {
- use ValueHelper;
- protected $uids;
- protected $messages;
- /**
- * @return int[]
- */
- public function getUids()
- {
- return $this->uids;
- }
- public function requestRules()
- {
- return [
- ['uids', 'uids', 'bail|integer', Constants::INTEGER | Constants::ARRAY, null],
- ];
- }
- public function responseRules()
- {
- return [
- ['messages', 'messages', TimMessageDTO::class, Constants::MODEL | Constants::ARRAY, null],
- ];
- }
- public function setResponse($messages)
- {
- $this->messages = $messages;
- }
- }
|