Ossatura del progetto: soluzione, contratti, specifica, mockup, carattere e icone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 14:47:06 +00:00
1 parent 10a9ed3ec3
commit db3d9f1aa4
123 files changed
+3763 -1

No files matched your search

+186
View File
@@ -0,0 +1,186 @@
namespace Febe.Core.Domain;
/// <summary>
/// Kind of an entry (spec §4.3). The folder name and the {tipo} placeholder are the Italian names
/// returned by <see cref="EntryKindNames.Folder"/>.
/// </summary>
public enum EntryKind
{
/// <summary>Grid post, reels included («post»).</summary>
Post,
/// <summary>Active story («storie»).</summary>
Story,
/// <summary>Item of a highlight collection («evidenza»).</summary>
Highlight,
/// <summary>Someone else's post where the account appears («taggati»).</summary>
Tagged,
/// <summary>Profile picture, one copy per change («profilo»).</summary>
ProfilePicture,
}
public static class EntryKindNames
{
/// <summary>Folder name and value of the {tipo} placeholder.</summary>
public static string Folder(EntryKind kind) => kind switch
{
EntryKind.Post => "post",
EntryKind.Story => "storie",
EntryKind.Highlight => "evidenza",
EntryKind.Tagged => "taggati",
EntryKind.ProfilePicture => "profilo",
_ => throw new ArgumentOutOfRangeException(nameof(kind), kind, null),
};
public static EntryKind? FromFolder(string folder) => folder.ToLowerInvariant() switch
{
"post" => EntryKind.Post,
"storie" => EntryKind.Story,
"evidenza" => EntryKind.Highlight,
"taggati" => EntryKind.Tagged,
"profilo" => EntryKind.ProfilePicture,
_ => null,
};
}
/// <summary>State of an entry (spec §8.3).</summary>
public enum EntryState
{
/// <summary>da scaricare</summary>
ToDownload,
/// <summary>scaricato</summary>
Downloaded,
/// <summary>parziale: some files missing</summary>
Partial,
/// <summary>fallito</summary>
Failed,
/// <summary>saltato: excluded by a limit (e.g. video too large)</summary>
Skipped,
/// <summary>importato</summary>
Imported,
/// <summary>eliminato: kept in the database without files so it is not downloaded again</summary>
Deleted,
}
/// <summary>State of a single file.</summary>
public enum MediaState
{
ToDownload,
Downloaded,
Failed,
Skipped,
Imported,
Deleted,
/// <summary>The signed address expired: needs the Post singolo recipe (not possible for stories).</summary>
Expired,
}
public enum MediaKind
{
Photo,
Video,
}
/// <summary>Where an entry came from.</summary>
public enum Provenance
{
Downloaded,
Imported,
}
/// <summary>State of a followed account (spec §4.2).</summary>
public enum AccountState
{
/// <summary>Aggiornato</summary>
UpToDate,
/// <summary>Storico in corso</summary>
Backfilling,
/// <summary>In pausa</summary>
Paused,
/// <summary>Solo archivio: never contacted</summary>
ArchiveOnly,
/// <summary>Non raggiungibile: private and not followed, missing, blocked, renamed</summary>
Unreachable,
}
/// <summary>Check frequency of an account (spec §7.3).</summary>
public enum Frequency
{
Low,
Normal,
High,
/// <summary>Su misura: explicit hours for posts and maximum interval for stories.</summary>
Custom,
}
/// <summary>The six per-account switches of «Cosa scaricare» (spec §4.3, §4.4).</summary>
[Flags]
public enum ContentTypes
{
None = 0,
/// <summary>Foto dei post</summary>
PostPhotos = 1,
/// <summary>Video e reel</summary>
PostVideos = 2,
/// <summary>Storie</summary>
Stories = 4,
/// <summary>Storie in evidenza</summary>
Highlights = 8,
/// <summary>Post in cui è taggato</summary>
Tagged = 16,
/// <summary>Foto del profilo</summary>
ProfilePicture = 32,
All = PostPhotos | PostVideos | Stories | Highlights | Tagged | ProfilePicture,
}
/// <summary>Starting points when adding accounts (spec §4.2).</summary>
public enum StartingPoint
{
/// <summary>Scarica tutto e tieni aggiornato</summary>
EverythingAndKeepUpdated,
/// <summary>Solo le novità da oggi</summary>
OnlyNewFromToday,
/// <summary>Solo le storie</summary>
OnlyStories,
}
/// <summary>Caution profiles (spec §7.5). Prudent is the default.</summary>
public enum CautionProfileKind
{
Prudent,
Balanced,
Fast,
Custom,
}
/// <summary>«Ritmo dei gesti» slider (spec §7.7).</summary>
public enum GesturePace
{
Slow,
Natural,
Brisk,
}