<?php

namespace App\Generated\V1\Messages\Pair;

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

class EnrollFreeMessage extends Message
{
    use ValueHelper;

    protected $stageId;
    protected $mediaId;
    protected $state;
    protected $score;
    protected $activityType;
    protected $allowPhoto;
    protected $result;

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

    /**
     * @return string|null
     */
    public function getMediaId()
    {
        return $this->mediaId;
    }

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

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

    /**
     * @return string|null
     */
    public function getActivityType()
    {
        return $this->activityType;
    }

    /**
     * @return string|null
     */
    public function getAllowPhoto()
    {
        return $this->allowPhoto;
    }

    public function requestRules()
    {
        return [
            ['stageId', 'stage_id', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
            ['mediaId', 'media_id', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
            ['state', 'state', 'bail|integer', Constants::INTEGER, null],
            ['score', 'score', 'bail|integer', Constants::INTEGER, null],
            ['activityType', 'activity_type', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
            ['allowPhoto', 'allow_photo', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
        ];
    }

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

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

}
