// Copyright © Selmo Technology GmbH. All Rights Reserved

using SelmoStudio.Hmi.Server.Shared.Components.Chart.Interfaces;
using SelmoStudio.Hmi.Server.Shared.Components.Chart.Models.Common;
using System.Text.Json.Serialization;

namespace SelmoStudio.Hmi.Server.Shared.Components.Chart.Models.Pie
{
    /// <summary>
    /// Pie Options
    /// </summary>
    public class PieOptions : Options, IOptions
    {
        /// <summary>
        /// Gets or sets the circumference.
        /// </summary>
        /// <value>The circumference.</value>
        [JsonPropertyName("circumference")]
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public int? Circumference { get; set; }

        /// <summary>
        /// Gets or sets the rotation.
        /// </summary>
        /// <value>The rotation.</value>
        [JsonPropertyName("rotation")]
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public int? Rotation { get; set; }
    }
}