// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalChatCompletionResponseMessageAnnotationUrlCitation(int endIndex, int startIndex, Uri url, string title)
        {
            EndIndex = endIndex;
            StartIndex = startIndex;
            Url = url;
            Title = title;
        }

        internal InternalChatCompletionResponseMessageAnnotationUrlCitation(int endIndex, int startIndex, Uri url, string title, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            EndIndex = endIndex;
            StartIndex = startIndex;
            Url = url;
            Title = title;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public int EndIndex { get; }

        public int StartIndex { get; }

        public Uri Url { get; }

        public string Title { get; }

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