// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    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>();
        }
    }
}
