<?php

declare(strict_types=1);

namespace PHPMax\Api\Chats;

use PHPMax\Support\Model;

class JoinRequestActionPayload extends Model
{
     
    public $chatId;
     
    public $userIds = [];
     
    public $type = 'JOIN_REQUEST';
     
    public $showHistory;
     
    public $operation;

    protected static function schema(): array
    {
        return [
            'chatId' => ['type' => 'int', 'required' => true],
            'userIds' => ['type' => 'list<int>', 'required' => true],
            'type' => ['type' => 'string', 'default' => 'JOIN_REQUEST'],
            'showHistory' => ['type' => 'bool'],
            'operation' => ['type' => 'string', 'required' => true],
        ];
    }
}
