namespace NATS.Server.JetStream.Api.Handlers;

public static class AccountApiHandlers
{
    public static JetStreamApiResponse HandleInfo(StreamManager streams, ConsumerManager consumers)
    {
        return new JetStreamApiResponse
        {
            AccountInfo = new JetStreamAccountInfo
            {
                Streams = streams.StreamNames.Count,
                Consumers = consumers.ConsumerCount,
            },
        };
    }
}
