// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    public abstract partial class ConversationItem
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        private protected ConversationItem(InternalRealtimeItemType @type)
        {
            Type = @type;
        }

        internal ConversationItem(InternalRealtimeItemType @type, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Type = @type;
            Id = id;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalRealtimeItemType Type { get; set; }

        public string Id { get; set; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
