Class RecoveryDataOption
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F275: the "New archive" card's option to write PAR2 recovery data next to the archive — 5, 10 or 20 % (default 5), hidden by the DisableRecoveryData policy.
public static class RecoveryDataOption
- Inheritance
-
RecoveryDataOption
- Inherited Members
Fields
DefaultIndex
The choice selected until the user picks another.
public const int DefaultIndex = 0
Field Value
Properties
Percents
The choices the card offers, in list order.
public static IReadOnlyList<int> Percents { get; }
Property Value
Methods
IsOffered(GroupPolicyOptions)
Whether the card shows the option at all.
public static bool IsOffered(GroupPolicyOptions policy)
Parameters
policyGroupPolicyOptions
Returns
PercentFor(GroupPolicyOptions, bool, int)
What RecoveryPercent gets: 0 when unticked or not offered.
public static int PercentFor(GroupPolicyOptions policy, bool add, int index)
Parameters
policyGroupPolicyOptionsaddboolindexint
Returns
PercentText(int, CultureInfo)
A choice as the culture writes a percent ("5%", "5 %", "%5").
public static string PercentText(int percent, CultureInfo culture)
Parameters
percentintcultureCultureInfo