You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mchsamples-.net-core/AlertSoftwareKit/AlertWebAPI/Models/AlertItem.cs

52 lines
1.2 KiB

// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : AlertItem.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
using System;
using System.ComponentModel.DataAnnotations;
namespace AlertWebAPI.Models
{
/// <summary>
/// AlertItem is a POCO class, i.e. Plain Old CLR Object.
/// It contains data about an alert and respect EntityFramework conventions.
/// </summary>
public class AlertItem
{
[Required]
public Guid Id { get; set; }
[Required]
public string Name { get; set; }
public string Decription { get; set; }
[Required]
public DateTime Date { get; set; }
public string SignaledBy { get; set; }
[Required]
public bool IsManaged { get; set; }
public string ManagedBy { get; set; }
[Required]
public AlertType Type { get; set; }
}
public enum AlertType
{
Low,
Medium,
High
}
}