// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    internal partial class InternalRealtimeResponseMessageItem : InternalRealtimeResponseItem
    {
        internal InternalRealtimeResponseMessageItem(string id, ConversationItemStatus status, ConversationMessageRole role, IEnumerable<ConversationContentPart> content) : base(InternalRealtimeItemType.Message, id)
        {
            Status = status;
            Role = role;
            Content = content.ToList();
        }

        internal InternalRealtimeResponseMessageItem(string @object, InternalRealtimeItemType kind, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, ConversationItemStatus status, ConversationMessageRole role, IReadOnlyList<ConversationContentPart> content) : base(@object, kind, id, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Status = status;
            Role = role;
            Content = content ?? new ChangeTrackingList<ConversationContentPart>();
        }

        public ConversationItemStatus Status { get; }
    }
}
