using Febe.Core.Domain; namespace Febe.Core.Storage; /// /// The order of «Cosa scaricare prima» for the queue of the files (spec §6.5, §7.2): the five kinds first to last, in /// general and for the accounts with an order of their own. Built by Febe.Core.Engine.DownloadOrder.LoadQueueOrderAsync. /// /// The general order. /// The own order of an account, by its local key; the others follow . public sealed record DownloadQueueOrder(IReadOnlyList General, IReadOnlyDictionary> Accounts) { /// The order for every account: , no account with its own. public static DownloadQueueOrder Everywhere(IReadOnlyList general) => new(general, new Dictionary>()); }