// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Realtime
{
    public partial class ItemTruncatedUpdate : RealtimeUpdate
    {
        internal ItemTruncatedUpdate(string itemId, int contentIndex, int audioEndMs) : base(RealtimeUpdateKind.ItemTruncated)
        {
            ItemId = itemId;
            ContentIndex = contentIndex;
            AudioEndMs = audioEndMs;
        }

        internal ItemTruncatedUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string itemId, int contentIndex, int audioEndMs) : base(kind, eventId, additionalBinaryDataProperties)
        {
            ItemId = itemId;
            ContentIndex = contentIndex;
            AudioEndMs = audioEndMs;
        }

        public string ItemId { get; }

        public int ContentIndex { get; }

        public int AudioEndMs { get; }
    }
}
