isn/src/isnd/Data/Packages/Catalog/CatalogIndex.cs

26 lines
563 B
C#
Raw Normal View History

2021-08-23 03:21:08 +01:00
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
2022-07-10 17:05:05 +01:00
using isnd.Interfaces;
2022-08-20 12:54:24 +01:00
using isnd.Data.Catalog;
2021-08-23 03:21:08 +01:00
2022-07-10 17:05:05 +01:00
namespace isnd.Data.Packages.Catalog
2021-08-23 03:21:08 +01:00
{
public class CatalogIndex : IObject
{
[JsonProperty("@id")]
public string Id { get; set ; }
[JsonProperty("items")]
public List<PageRef> Items { get; set; }
[JsonProperty("count")]
2021-08-28 21:26:39 +01:00
public int Count { get => Items?.Count ?? 0; }
2021-08-23 03:21:08 +01:00
public string CommitId { get; set; }
public DateTime CommitTimeStamp { get; set; }
}
}