using System.Runtime.Serialization; namespace UptimeSharp.Models { /// /// The Alert Model /// [DataContract] public class Alert { /// /// Gets or sets the ID. /// /// /// The ID. /// [DataMember(Name = "id")] public string ID { get; set; } /// /// Gets or sets the alert type. /// /// /// The name. /// [DataMember(Name = "type")] public AlertType Type { get; set; } /// /// Gets or sets the alert status. /// /// /// The status. /// [DataMember(Name = "status")] public AlertStatus Status { get; set; } /// /// Gets or sets the alert value. /// /// /// The value - Phone Number / E-Mail / Account /// [DataMember(Name = "value")] public string Value { get; set; } } /// /// The type of the alert contact notified. /// public enum AlertType { /// /// SMS /// SMS = 1, /// /// E-Mail /// Email = 2, /// /// Twitter DM /// Twitter = 3, /// /// Boxcar /// Boxcar = 4 } /// /// The status of the alert contact. /// public enum AlertStatus { /// /// Unknown /// Unknown, /// /// Not activated /// NotActicated = 0, /// /// Paused /// Paused = 1, /// /// Active /// Active = 2 } }