<?php

namespace HelpGent\App\Http\Controllers;

defined( 'ABSPATH' ) || exit;

use HelpGent\App\Repositories\ChatMemberRepository;
use HelpGent\WpMVC\Routing\Response;

class ChatMemberController {
    public ChatMemberRepository $repository;

    public function __construct( ChatMemberRepository $repository ) {
        $this->repository = $repository;
    }

    public function get_member_response_ids(): array {
        return Response::send(
            [
                'ids' => $this->repository->get_member_response_ids( helpgent_get_current_user()->get_id() )
            ]
        );
    }
}