// <auto-generated/>

#nullable disable

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

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

        internal InternalVectorStoreFileContentResponse(IEnumerable<InternalVectorStoreFileContentResponseDatum> data, bool hasMore, string nextPage)
        {
            Data = data.ToList();
            HasMore = hasMore;
            NextPage = nextPage;
        }

        internal InternalVectorStoreFileContentResponse(string @object, IList<InternalVectorStoreFileContentResponseDatum> data, bool hasMore, string nextPage, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Object = @object;
            Data = data ?? new ChangeTrackingList<InternalVectorStoreFileContentResponseDatum>();
            HasMore = hasMore;
            NextPage = nextPage;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Object { get; } = "vector_store.file_content.page";

        internal IList<InternalVectorStoreFileContentResponseDatum> Data { get; }

        public bool HasMore { get; }

        public string NextPage { get; }

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