// <auto-generated/>

#nullable disable

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

namespace OpenAI.RealtimeConversation
{
    internal partial class InternalRealtimeResponseMessageItem : InternalRealtimeResponseItem
    {
        internal InternalRealtimeResponseMessageItem(string id, ConversationMessageRole role, IEnumerable<ConversationContentPart> content, ConversationItemStatus status) : base(id)
        {
            Argument.AssertNotNull(content, nameof(content));

            Type = InternalRealtimeRequestItemType.Message;
            Role = role;
            Content = content.ToList();
            Status = status;
        }

        internal InternalRealtimeResponseMessageItem(InternalRealtimeResponseItemObject @object, InternalRealtimeRequestItemType type, string id, IDictionary<string, BinaryData> serializedAdditionalRawData, ConversationMessageRole role, IReadOnlyList<ConversationContentPart> content, ConversationItemStatus status) : base(@object, type, id, serializedAdditionalRawData)
        {
            Role = role;
            Content = content;
            Status = status;
        }

        internal InternalRealtimeResponseMessageItem()
        {
        }
        public IReadOnlyList<ConversationContentPart> Content { get; }
        public ConversationItemStatus Status { get; }
    }
}
