// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Files
{
    public partial class OpenAIFile
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal OpenAIFile(string id, DateTimeOffset createdAt, string filename, FilePurpose purpose, int? sizeInBytes, FileStatus status)
        {
            Id = id;
            CreatedAt = createdAt;
            Filename = filename;
            Purpose = purpose;
            SizeInBytes = sizeInBytes;
            Status = status;
        }

        internal OpenAIFile(string id, DateTimeOffset createdAt, DateTimeOffset? expiresAt, string filename, FilePurpose purpose, InternalOpenAIFileObject @object, int? sizeInBytes, FileStatus status, string statusDetails, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Id = id;
            CreatedAt = createdAt;
            ExpiresAt = expiresAt;
            Filename = filename;
            Purpose = purpose;
            Object = @object;
            SizeInBytes = sizeInBytes;
            Status = status;
            StatusDetails = statusDetails;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Id { get; }

        public DateTimeOffset CreatedAt { get; }

        public DateTimeOffset? ExpiresAt { get; }

        public string Filename { get; }

        public FilePurpose Purpose { get; }

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