using System.Collections.Generic; using System.Runtime.Serialization; namespace UptimeSharp.Models { /// /// Monitor Response /// [DataContract] internal class RetrieveResponse : ResponseBase { /// /// Gets or sets the item dictionary. /// The list is 2 layers deep, so this one is necessary :-/ /// /// /// The item dictionary. /// [DataMember(Name = "monitors")] public Dictionary> ItemDictionary { get; set; } /// /// Gets the items. /// /// /// The items. /// [IgnoreDataMember] public List Items { get { return ItemDictionary != null ? ItemDictionary["monitor"] : null; } } } }