using FasdDesktopUi.Basics.Enums;
using FasdDesktopUi.Basics.UiActions;

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace FasdDesktopUi.Basics.Models
{
    public class cDataHistoryValueModel
    {
        public string Content { get; set; }

        private string contentDecription;
        public string ContentDescription
        {
            get { return contentDecription ?? Content; }
            set { contentDecription = value; }
        }
                        
        public bool IsLoading { get; set; } = false;

        [JsonConverter(typeof(StringEnumConverter))]
        public enumHighlightColor? HighlightColor { get; set; }

        [JsonIgnore]
        public enumHistoryTitleType? PresentationStyle { get; set; } = enumHistoryTitleType.none;

        [JsonIgnore]
        public cUiActionBase UiAction { get; set; }

        [JsonIgnore]
        public cStateThresholdValues ThresholdValues { get; set; }
    }
}
