using System; using System.Collections.Generic; using Newtonsoft.Json; namespace isnd.Data.Catalog { public class RegistrationPage { [JsonProperty("@id")] [JsonRequired] public string Id { get; } public RegistrationPage (string id) { Id = id; Items = new List(); } /// /// no The array of registration leaves and their associate metadata /// /// [JsonProperty("items")] public List Items { get; set; } /// /// The highest SemVer 2.0.0 version in the page (inclusive) /// /// [JsonProperty("upper"), JsonRequired] public Version Upper { get; set; } /// /// The lowest SemVer 2.0.0 version in the page (inclusive) /// /// [JsonProperty("lower"), JsonRequired] public Version Lower { get; set; } /// /// The URL to the registration index /// /// [JsonProperty("parent")] public string Parent { get; set; } [JsonProperty("count")] public int Count { get; internal set; } public string CommitId { get; internal set; } public DateTime CommitTimeStamp { get; internal set; } } }