// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Realtime
{
    public partial class ItemCreatedUpdate : RealtimeUpdate
    {
        internal ItemCreatedUpdate(string previousItemId, InternalRealtimeResponseItem internalItem) : base(RealtimeUpdateKind.ItemCreated)
        {
            PreviousItemId = previousItemId;
            _internalItem = internalItem;
        }

        internal ItemCreatedUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string previousItemId, InternalRealtimeResponseItem internalItem) : base(kind, eventId, additionalBinaryDataProperties)
        {
            PreviousItemId = previousItemId;
            _internalItem = internalItem;
        }

        public string PreviousItemId { get; }
    }
}
