// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    internal partial class InternalRealtimeRequestItemTruncateCommand : InternalRealtimeRequestCommand
    {
        public InternalRealtimeRequestItemTruncateCommand(string itemId, int contentIndex, int audioEndMs)
        {
            Argument.AssertNotNull(itemId, nameof(itemId));

            Kind = InternalRealtimeRequestCommandType.ItemTruncate;
            ItemId = itemId;
            ContentIndex = contentIndex;
            AudioEndMs = audioEndMs;
        }

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

        internal InternalRealtimeRequestItemTruncateCommand()
        {
        }

        public string ItemId { get; }
        public int ContentIndex { get; }
        public int AudioEndMs { get; }
    }
}
