2023-02-18 08:52:17 +01:00
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2023-02-19 00:43:43 +01:00
|
|
|
|
namespace PrivaPub.Models.ActivityPub
|
2023-02-18 08:52:17 +01:00
|
|
|
|
{
|
|
|
|
|
[JsonSerializable(typeof(ActivityPubOrderedCollection))]
|
|
|
|
|
public class ActivityPubOrderedCollection : ActivityPubCollection
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("type")]
|
|
|
|
|
public new ObjectType Type => ObjectType.OrderedCollection;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("orderedItems")]
|
|
|
|
|
public List<ActivityPubLink> OrderedItems { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("totalItems")]
|
|
|
|
|
public new int TotalItems => OrderedItems?.Count ?? default;
|
|
|
|
|
}
|
|
|
|
|
}
|