// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal ImageTokenUsage(int inputTokenCount, int outputTokenCount, int totalTokenCount, ImageInputTokenUsageDetails inputTokenDetails)
        {
            InputTokenCount = inputTokenCount;
            OutputTokenCount = outputTokenCount;
            TotalTokenCount = totalTokenCount;
            InputTokenDetails = inputTokenDetails;
        }

        internal ImageTokenUsage(int inputTokenCount, int outputTokenCount, int totalTokenCount, ImageInputTokenUsageDetails inputTokenDetails, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            InputTokenCount = inputTokenCount;
            OutputTokenCount = outputTokenCount;
            TotalTokenCount = totalTokenCount;
            InputTokenDetails = inputTokenDetails;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

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