namespace Febe.Core.Domain; /// /// A highlight collection («raccolta in evidenza») pinned on a profile (spec §4.3, §8.3). Its contents are entries, /// in order; an entry may belong to several collections, and a story already saved that enters a collection is /// referenced, not downloaded again (hypothesis H9). /// public sealed record Highlight { /// Local key (0 until stored). public long Id { get; init; } public required long AccountId { get; init; } /// Instagram identifier of the collection. Null for collections known only from an import. public string? InstagramId { get; init; } /// Title shown on the profile: the {raccolta} placeholder. public required string Title { get; init; } /// Order on the profile, from 0. public int Position { get; init; } public required DateTimeOffset DiscoveredAt { get; init; } public DateTimeOffset? LastCheckedAt { get; init; } /// The collection disappeared from the profile. Its files stay (rule 12). public DateTimeOffset? RemovedAt { get; init; } } /// An entry inside a highlight collection, with its position (from 0). public sealed record HighlightItem(long HighlightId, long EntryId, int Position);