// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Realtime
{
    internal partial class InternalRealtimeTranscriptionSessionCreateResponse
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalRealtimeTranscriptionSessionCreateResponse(InternalRealtimeTranscriptionSessionCreateResponseClientSecret clientSecret)
        {
            ClientSecret = clientSecret;
            Modalities = new ChangeTrackingList<InternalRealtimeRequestSessionModality>();
        }

        internal InternalRealtimeTranscriptionSessionCreateResponse(InternalRealtimeTranscriptionSessionCreateResponseClientSecret clientSecret, IList<InternalRealtimeRequestSessionModality> modalities, RealtimeAudioFormat inputAudioFormat, InputTranscriptionOptions inputAudioTranscription, TurnDetectionOptions turnDetection, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ClientSecret = clientSecret;
            Modalities = modalities ?? new ChangeTrackingList<InternalRealtimeRequestSessionModality>();
            InputAudioFormat = inputAudioFormat;
            InputAudioTranscription = inputAudioTranscription;
            TurnDetection = turnDetection;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

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