// Copyright (c) Barry Dorrans. All rights reserved.
// Licensed under the MIT License.

using System.Text.Json.Serialization;

namespace idunno.Bluesky.Chat.Group.Model;

internal sealed record ListJoinRequestsResponse
{
    [JsonConstructor]
    internal ListJoinRequestsResponse(string? cursor, ICollection<JoinRequestConversationView> requests)
    {
        ArgumentNullException.ThrowIfNull(requests);

        Cursor = cursor;
        Requests = requests;
    }

    public string? Cursor { get; init; }

    public ICollection<JoinRequestConversationView> Requests { get; init; }
}