2022-09-23 20:34:51 +01:00
|
|
|
using System;
|
2022-09-25 02:24:21 +01:00
|
|
|
using System.Collections.Generic;
|
2022-09-23 20:34:51 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace isnd.Data.Catalog
|
|
|
|
|
{
|
2022-09-25 02:24:21 +01:00
|
|
|
public class RegistrationPage
|
2022-09-23 20:34:51 +01:00
|
|
|
{
|
2022-09-25 02:24:21 +01:00
|
|
|
[JsonProperty("@id")]
|
|
|
|
|
[JsonRequired]
|
|
|
|
|
public string Id { get; }
|
|
|
|
|
public RegistrationPage (string id)
|
|
|
|
|
{
|
|
|
|
|
Id = id;
|
2022-09-27 00:39:17 +01:00
|
|
|
Items = new List<RegistrationLeaf>();
|
2022-09-25 02:24:21 +01:00
|
|
|
}
|
2022-09-23 20:34:51 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// no The array of registration leaves and their associate metadata
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[JsonProperty("items")]
|
|
|
|
|
|
2022-09-25 02:24:21 +01:00
|
|
|
public List<RegistrationLeaf> Items { get; set; }
|
2022-09-23 20:34:51 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The highest SemVer 2.0.0 version in the page (inclusive)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[JsonProperty("upper"), JsonRequired]
|
|
|
|
|
public Version Upper { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The lowest SemVer 2.0.0 version in the page (inclusive)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[JsonProperty("lower"), JsonRequired]
|
|
|
|
|
public Version Lower { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The URL to the registration index
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[JsonProperty("parent")]
|
|
|
|
|
public string Parent { get; set; }
|
|
|
|
|
|
2022-09-25 02:24:21 +01:00
|
|
|
[JsonProperty("count")]
|
|
|
|
|
public int Count { get; internal set; }
|
|
|
|
|
public string CommitId { get; internal set; }
|
|
|
|
|
public DateTime CommitTimeStamp { get; internal set; }
|
2022-09-23 20:34:51 +01:00
|
|
|
}
|
|
|
|
|
}
|