diff --git a/UptimeSharp/Models/Alert.cs b/UptimeSharp/Models/Alert.cs new file mode 100644 index 0000000..7f9eb17 --- /dev/null +++ b/UptimeSharp/Models/Alert.cs @@ -0,0 +1,63 @@ +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 int? ID { get; set; } + + /// + /// Gets or sets the alert type. + /// + /// + /// The name. + /// + [DataMember(Name = "type")] + public Type Type { 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 Type + { + /// + /// SMS + /// + SMS = 1, + /// + /// E-Mail + /// + EMail = 2, + /// + /// Twitter DM + /// + Twitter = 3, + /// + /// Boxcar + /// + Boxcar = 4 + } +}