Add initial mail sync range selection
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Accounts;
|
||||
|
||||
public record AccountCreationDialogResult(MailProviderType ProviderType, string AccountName, SpecialImapProviderDetails SpecialImapProviderDetails, string AccountColorHex);
|
||||
public record AccountCreationDialogResult(
|
||||
MailProviderType ProviderType,
|
||||
string AccountName,
|
||||
SpecialImapProviderDetails SpecialImapProviderDetails,
|
||||
string AccountColorHex,
|
||||
InitialSynchronizationRange InitialSynchronizationRange);
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Accounts;
|
||||
|
||||
public sealed class InitialSynchronizationRangeOption
|
||||
{
|
||||
public InitialSynchronizationRange Range { get; }
|
||||
public string DisplayText { get; }
|
||||
|
||||
public bool IsEverything => Range == InitialSynchronizationRange.Everything;
|
||||
|
||||
public InitialSynchronizationRangeOption(InitialSynchronizationRange range, string displayText)
|
||||
{
|
||||
Range = range;
|
||||
DisplayText = displayText;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user