using Quadarax.Foundation.Core.QMonitor.Attributes;

namespace Quadarax.Foundation.Core.QMonitor.Emit.TestStructures
{
    [MonitoredClass(Caption = "Service Status", Description = "Shows current service status", ViewType = MonItemGeneral.MonViewType.Item)]
    public class ServiceStatus
    {
        [MonitoredProperty(Label = "Status", Description = "Current service status")]
        public StatusEnum Status { get; set; }
        [MonitoredProperty(Label = "Started", Description = "Time when service was started")]
        public DateTime Started { get; set; }

        public ServiceStatus(StatusEnum status, DateTime started)
        {
            Status = status;
            Started = started;
        }

        public enum StatusEnum
        {
            Online,
            Offline,
        }
    }
}
