<?php

namespace App\Generated\V1\Messages\Friend;

use Kamicloud\StubApi\Concerns\ValueHelper;
use Kamicloud\StubApi\Http\Messages\Message;
use Kamicloud\StubApi\Utils\Constants;

class GetChatHistoryMessage extends Message
{
    use ValueHelper;

    protected $page;
    protected $friendUid;
    protected $result;

    /**
     * @return int|null
     */
    public function getPage()
    {
        return $this->page;
    }

    /**
     * @return int
     */
    public function getFriendUid()
    {
        return $this->friendUid;
    }

    public function requestRules()
    {
        return [
            ['page', 'page', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
            ['friendUid', 'friend_uid', 'bail|integer', Constants::INTEGER, null],
        ];
    }

    public function responseRules()
    {
        return [
            ['result', 'result', 'bail', null, null],
        ];
    }

    public function setResponse($result)
    {
        $this->result = $result;
    }

}
