using System;
using NSwag.Annotations;
namespace Timeline.Models
{
    /// 
    /// Model for reading http body as bytes.
    /// 
    [OpenApiFile]
    public class ByteData
    {
        /// 
        /// 
        /// The data.
        /// The content type.
        public ByteData(byte[] data, string contentType)
        {
            if (data is null)
                throw new ArgumentNullException(nameof(data));
            if (contentType is null)
                throw new ArgumentNullException(nameof(contentType));
            Data = data;
            ContentType = contentType;
        }
        /// 
        /// Data.
        /// 
#pragma warning disable CA1819 // Properties should not return arrays
        public byte[] Data { get; }
#pragma warning restore CA1819 // Properties should not return arrays
        /// 
        /// Content type.
        /// 
        public string ContentType { get; }
    }
}