// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;
using OpenAI;

namespace OpenAI.Realtime
{
    public partial class RateLimitsUpdate : RealtimeUpdate
    {
        internal RateLimitsUpdate(IEnumerable<ConversationRateLimitDetailsItem> allDetails) : base(RealtimeUpdateKind.RateLimitsUpdated)
        {
            AllDetails = allDetails.ToList();
        }

        internal RateLimitsUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, IReadOnlyList<ConversationRateLimitDetailsItem> allDetails) : base(kind, eventId, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            AllDetails = allDetails ?? new ChangeTrackingList<ConversationRateLimitDetailsItem>();
        }
    }
}
