// Copyright (c) The LEGO Group. All rights reserved.

namespace LEGO.AsyncAPI.Models.Any
{
    using LEGO.AsyncAPI.Models.Interfaces;

    /// <summary>
    /// AsyncApi Byte.
    /// </summary>
    public class AsyncApiByte : AsyncApiPrimitive<byte[]>
    {
        /// <summary>
        /// Initializes the <see cref="AsyncApiByte"/> class.
        /// </summary>
        public AsyncApiByte(byte value)
            : this(new byte[] { value })
        {
        }

        /// <summary>
        /// Initializes the <see cref="AsyncApiByte"/> class.
        /// </summary>
        public AsyncApiByte(byte[] value)
            : base(value)
        {
        }

        /// <summary>
        /// Primitive type this object represents.
        /// </summary>
        public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Byte;
    }
}
