Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
832b363da7 | ||
|
|
cf8f1ecd67 | ||
|
|
ee5129830c | ||
|
|
9facfaffa8 | ||
|
|
31b859ba1a | ||
|
|
b0f5a24c30 | ||
|
|
b60b594e44 | ||
|
|
a8cee1016b | ||
|
|
b551af01fa | ||
|
|
b178869a8e | ||
|
|
8e1c60d5f0 | ||
|
|
71ea49439e | ||
|
|
9d0a2f6535 | ||
|
|
c091fffe90 | ||
|
|
7e05d05f94 | ||
|
|
bd5b51c62f | ||
|
|
1d5eb2eced | ||
|
|
5073ead8fe | ||
|
|
f61bcb621b | ||
|
|
42b695854b | ||
|
|
496ae8b1b2 | ||
|
|
4215a2592f | ||
|
|
bca62033a1 | ||
|
|
18a91f9223 | ||
|
|
474d7c7a26 | ||
|
|
3f9a51ff46 | ||
|
|
df3b5c41f9 | ||
|
|
8800d11ab0 | ||
|
|
f021834ceb | ||
|
|
f54a39a549 | ||
|
|
c312ff3faf | ||
|
|
db833594f4 | ||
|
|
d36cf59829 | ||
|
|
caae751698 | ||
|
|
f7836eedce | ||
|
|
3ddc1a6229 | ||
|
|
cf9869b71e | ||
|
|
d31d8f574e | ||
|
|
c1336428dc | ||
|
|
f0e513bf0d | ||
|
|
ee9e41c5a7 | ||
|
|
30f1257983 | ||
|
|
f007cef208 | ||
|
|
19b5852098 | ||
|
|
2ec05ea7cc | ||
|
|
e8dd8bff44 | ||
|
|
ab3f65edfa |
@@ -149,7 +149,7 @@ csharp_preferred_modifier_order = public,private,protected,internal,static,exter
|
|||||||
# Code-block preferences
|
# Code-block preferences
|
||||||
csharp_prefer_braces = true:silent
|
csharp_prefer_braces = true:silent
|
||||||
csharp_prefer_simple_using_statement = true:suggestion
|
csharp_prefer_simple_using_statement = true:suggestion
|
||||||
csharp_style_namespace_declarations = block_scoped:silent
|
csharp_style_namespace_declarations = file_scoped:error
|
||||||
|
|
||||||
# Expression-level preferences
|
# Expression-level preferences
|
||||||
csharp_prefer_simple_default_expression = true:suggestion
|
csharp_prefer_simple_default_expression = true:suggestion
|
||||||
@@ -288,3 +288,5 @@ csharp_style_prefer_utf8_string_literals = true:suggestion
|
|||||||
csharp_style_prefer_readonly_struct = true:suggestion
|
csharp_style_prefer_readonly_struct = true:suggestion
|
||||||
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
|
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
|
||||||
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
|
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
|
||||||
|
csharp_style_prefer_primary_constructors = true:silent
|
||||||
|
csharp_prefer_system_threading_lock = true:suggestion
|
||||||
7
Directory.Build.Props
Normal file
7
Directory.Build.Props
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<LangVersion>preview</LangVersion>
|
||||||
|
<IsAotCompatible>true</IsAotCompatible>
|
||||||
|
<Configurations>Debug;Release</Configurations>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
65
Directory.Packages.props
Normal file
65
Directory.Packages.props
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageVersion Include="ColorHashSharp" Version="1.0.0" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Common" Version="8.4.0" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Diagnostics" Version="8.4.0" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Labs.Uwp.Controls.MarkdownTextBlock" Version="0.1.250206-build.2040" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Labs.Uwp.DependencyPropertyGenerator" Version="0.1.250206-build.2040" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Animations" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Behaviors" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Controls.Segmented" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Controls.SettingsControls" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Controls.Sizers" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Controls.TabbedCommandBar" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Controls.TokenizingTextBox" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Uwp.Extensions" Version="8.2.250129-preview2" />
|
||||||
|
<PackageVersion Include="EmailValidation" Version="1.2.0" />
|
||||||
|
<PackageVersion Include="HtmlAgilityPack" Version="1.11.72" />
|
||||||
|
<PackageVersion Include="Ical.Net" Version="4.3.1" />
|
||||||
|
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
|
||||||
|
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
|
||||||
|
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
|
||||||
|
<PackageVersion Include="Microsoft.Graph" Version="5.69.0" />
|
||||||
|
<PackageVersion Include="Microsoft.Identity.Client" Version="4.68.0" />
|
||||||
|
<PackageVersion Include="Microsoft.Identity.Client.Broker" Version="4.68.0" />
|
||||||
|
<PackageVersion Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.68.0" />
|
||||||
|
<PackageVersion Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.14" />
|
||||||
|
<PackageVersion Include="Microsoft.UI.Xaml" Version="2.8.7" />
|
||||||
|
<PackageVersion Include="Microsoft.Xaml.Behaviors.Uwp.Managed" Version="3.0.0" />
|
||||||
|
<PackageVersion Include="MimeKit" Version="4.10.0" />
|
||||||
|
<PackageVersion Include="morelinq" Version="4.4.0" />
|
||||||
|
<PackageVersion Include="Nito.AsyncEx" Version="5.1.2" />
|
||||||
|
<PackageVersion Include="Nito.AsyncEx.Tasks" Version="5.1.2" />
|
||||||
|
<PackageVersion Include="NodaTime" Version="3.2.1" />
|
||||||
|
<PackageVersion Include="Serilog" Version="4.2.0" />
|
||||||
|
<PackageVersion Include="Serilog.Exceptions" Version="8.4.0" />
|
||||||
|
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0" />
|
||||||
|
<PackageVersion Include="Serilog.Sinks.File" Version="6.0.0" />
|
||||||
|
<PackageVersion Include="Serilog.Sinks.ApplicationInsights" Version="4.0.0" />
|
||||||
|
<PackageVersion Include="SkiaSharp" Version="3.116.1" />
|
||||||
|
<PackageVersion Include="sqlite-net-pcl" Version="1.9.172" />
|
||||||
|
<PackageVersion Include="SqlKata" Version="4.0.1" />
|
||||||
|
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
|
||||||
|
<PackageVersion Include="System.Text.Encoding.CodePages" Version="9.0.2" />
|
||||||
|
<PackageVersion Include="System.Text.Json" Version="9.0.2" />
|
||||||
|
<PackageVersion Include="Win2D.uwp" Version="1.28.2" />
|
||||||
|
<PackageVersion Include="H.NotifyIcon.Wpf" Version="2.2.0" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.WinUI.Notifications" Version="7.1.2" />
|
||||||
|
<PackageVersion Include="Google.Apis.Auth" Version="1.69.0" />
|
||||||
|
<PackageVersion Include="Google.Apis.Calendar.v3" Version="1.69.0.3667" />
|
||||||
|
<PackageVersion Include="Google.Apis.Gmail.v1" Version="1.68.0.3427" />
|
||||||
|
<PackageVersion Include="Google.Apis.PeopleService.v1" Version="1.68.0.3359" />
|
||||||
|
<PackageVersion Include="HtmlKit" Version="1.2.0" />
|
||||||
|
<PackageVersion Include="MailKit" Version="4.10.0" />
|
||||||
|
<PackageVersion Include="TimePeriodLibrary.NET" Version="2.1.5" />
|
||||||
|
<PackageVersion Include="System.Reactive" Version="6.0.1" />
|
||||||
|
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.2" />
|
||||||
|
<PackageVersion Include="System.Text.Encodings.Web" Version="9.0.2" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
|
|
||||||
namespace Wino.Authentication
|
namespace Wino.Authentication;
|
||||||
{
|
|
||||||
public abstract class BaseAuthenticator
|
public abstract class BaseAuthenticator
|
||||||
{
|
{
|
||||||
public abstract MailProviderType ProviderType { get; }
|
public abstract MailProviderType ProviderType { get; }
|
||||||
@@ -14,4 +14,3 @@ namespace Wino.Authentication
|
|||||||
AuthenticatorConfig = authenticatorConfig;
|
AuthenticatorConfig = authenticatorConfig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ using Wino.Core.Domain.Enums;
|
|||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
using Wino.Core.Domain.Models.Authentication;
|
using Wino.Core.Domain.Models.Authentication;
|
||||||
|
|
||||||
namespace Wino.Authentication
|
namespace Wino.Authentication;
|
||||||
{
|
|
||||||
public class GmailAuthenticator : BaseAuthenticator, IGmailAuthenticator
|
public class GmailAuthenticator : BaseAuthenticator, IGmailAuthenticator
|
||||||
{
|
{
|
||||||
public GmailAuthenticator(IAuthenticatorConfig authConfig) : base(authConfig)
|
public GmailAuthenticator(IAuthenticatorConfig authConfig) : base(authConfig)
|
||||||
@@ -48,4 +48,3 @@ namespace Wino.Authentication
|
|||||||
}, AuthenticatorConfig.GmailScope, account.Id.ToString(), CancellationToken.None, new FileDataStore(AuthenticatorConfig.GmailTokenStoreIdentifier));
|
}, AuthenticatorConfig.GmailScope, account.Id.ToString(), CancellationToken.None, new FileDataStore(AuthenticatorConfig.GmailTokenStoreIdentifier));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
using Wino.Core.Domain.Enums;
|
|
||||||
using Wino.Core.Domain.Interfaces;
|
|
||||||
|
|
||||||
namespace Wino.Authentication
|
|
||||||
{
|
|
||||||
public class Office365Authenticator : OutlookAuthenticator
|
|
||||||
{
|
|
||||||
public Office365Authenticator(INativeAppService nativeAppService,
|
|
||||||
IApplicationConfiguration applicationConfiguration,
|
|
||||||
IAuthenticatorConfig authenticatorConfig) : base(nativeAppService, applicationConfiguration, authenticatorConfig)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override MailProviderType ProviderType => MailProviderType.Office365;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,8 +11,8 @@ using Wino.Core.Domain.Exceptions;
|
|||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
using Wino.Core.Domain.Models.Authentication;
|
using Wino.Core.Domain.Models.Authentication;
|
||||||
|
|
||||||
namespace Wino.Authentication
|
namespace Wino.Authentication;
|
||||||
{
|
|
||||||
public class OutlookAuthenticator : BaseAuthenticator, IOutlookAuthenticator
|
public class OutlookAuthenticator : BaseAuthenticator, IOutlookAuthenticator
|
||||||
{
|
{
|
||||||
private const string TokenCacheFileName = "OutlookCache.bin";
|
private const string TokenCacheFileName = "OutlookCache.bin";
|
||||||
@@ -123,4 +123,3 @@ namespace Wino.Authentication
|
|||||||
throw new AuthenticationException(Translator.Exception_UnknowErrorDuringAuthentication, new Exception(Translator.Exception_TokenGenerationFailed));
|
throw new AuthenticationException(Translator.Exception_UnknowErrorDuringAuthentication, new Exception(Translator.Exception_TokenGenerationFailed));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,24 +1,20 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
|
||||||
<RootNamespace>Wino.Authentication</RootNamespace>
|
<RootNamespace>Wino.Authentication</RootNamespace>
|
||||||
<Configurations>Debug;Release</Configurations>
|
<Platforms>x86;x64;arm64</Platforms>
|
||||||
<LangVersion>12</LangVersion>
|
|
||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
|
||||||
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
|
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
|
||||||
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
|
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.3.2" />
|
<PackageReference Include="CommunityToolkit.Diagnostics" />
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
|
<PackageReference Include="CommunityToolkit.Mvvm" />
|
||||||
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" />
|
<PackageReference Include="Google.Apis.Auth" />
|
||||||
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.2" />
|
<PackageReference Include="Microsoft.Identity.Client" />
|
||||||
<PackageReference Include="Microsoft.Identity.Client.Broker" Version="4.66.2" />
|
<PackageReference Include="Microsoft.Identity.Client.Broker" />
|
||||||
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.66.2" />
|
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Wino.Core.Domain\Wino.Core.Domain.csproj" />
|
<ProjectReference Include="..\Wino.Core.Domain\Wino.Core.Domain.csproj" />
|
||||||
<ProjectReference Include="..\Wino.Messages\Wino.Messaging.csproj" />
|
<ProjectReference Include="..\Wino.Messages\Wino.Messaging.csproj" />
|
||||||
|
|||||||
@@ -20,14 +20,6 @@
|
|||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Debug|ARM">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>ARM</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|ARM">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>ARM</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|ARM64">
|
<ProjectConfiguration Include="Debug|ARM64">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>ARM64</Platform>
|
<Platform>ARM64</Platform>
|
||||||
@@ -76,7 +68,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
|
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.2" />
|
|
||||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" PrivateAssets="all" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Wino.Calendar.ViewModels
|
|||||||
if (accountCreationDialogResult == null) return;
|
if (accountCreationDialogResult == null) return;
|
||||||
|
|
||||||
var accountCreationCancellationTokenSource = new CancellationTokenSource();
|
var accountCreationCancellationTokenSource = new CancellationTokenSource();
|
||||||
var accountCreationDialog = CalendarDialogService.GetAccountCreationDialog(accountCreationDialogResult.ProviderType);
|
var accountCreationDialog = CalendarDialogService.GetAccountCreationDialog(accountCreationDialogResult);
|
||||||
|
|
||||||
accountCreationDialog.ShowDialog(accountCreationCancellationTokenSource);
|
accountCreationDialog.ShowDialog(accountCreationCancellationTokenSource);
|
||||||
accountCreationDialog.State = AccountCreationDialogState.SigningIn;
|
accountCreationDialog.State = AccountCreationDialogState.SigningIn;
|
||||||
@@ -92,7 +92,6 @@ namespace Wino.Calendar.ViewModels
|
|||||||
{
|
{
|
||||||
ProviderType = accountCreationDialogResult.ProviderType,
|
ProviderType = accountCreationDialogResult.ProviderType,
|
||||||
Name = accountCreationDialogResult.AccountName,
|
Name = accountCreationDialogResult.AccountName,
|
||||||
AccountColorHex = accountCreationDialogResult.AccountColorHex,
|
|
||||||
Id = Guid.NewGuid()
|
Id = Guid.NewGuid()
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -104,13 +103,8 @@ namespace Wino.Calendar.ViewModels
|
|||||||
if (accountCreationDialog.State == AccountCreationDialogState.Canceled)
|
if (accountCreationDialog.State == AccountCreationDialogState.Canceled)
|
||||||
throw new AccountSetupCanceledException();
|
throw new AccountSetupCanceledException();
|
||||||
|
|
||||||
|
|
||||||
tokenInformationResponse.ThrowIfFailed();
|
tokenInformationResponse.ThrowIfFailed();
|
||||||
|
|
||||||
//var tokenInformation = tokenInformationResponse.Data;
|
|
||||||
//createdAccount.Address = tokenInformation.Address;
|
|
||||||
//tokenInformation.AccountId = createdAccount.Id;
|
|
||||||
|
|
||||||
await AccountService.CreateAccountAsync(createdAccount, null);
|
await AccountService.CreateAccountAsync(createdAccount, null);
|
||||||
|
|
||||||
// Sync profile information if supported.
|
// Sync profile information if supported.
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.2" />
|
|
||||||
<PackageReference Include="TimePeriodLibrary.NET" Version="2.1.5" />
|
<PackageReference Include="TimePeriodLibrary.NET" Version="2.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
|
|
||||||
namespace Wino.Calendar.Services
|
namespace Wino.Calendar.Services;
|
||||||
{
|
|
||||||
public class CalendarAuthenticatorConfig : IAuthenticatorConfig
|
public class CalendarAuthenticatorConfig : IAuthenticatorConfig
|
||||||
{
|
{
|
||||||
public string OutlookAuthenticatorClientId => "b19c2035-d740-49ff-b297-de6ec561b208";
|
public string OutlookAuthenticatorClientId => "b19c2035-d740-49ff-b297-de6ec561b208";
|
||||||
@@ -30,4 +30,3 @@ namespace Wino.Calendar.Services
|
|||||||
|
|
||||||
public string GmailTokenStoreIdentifier => "WinoCalendarGmailTokenStore";
|
public string GmailTokenStoreIdentifier => "WinoCalendarGmailTokenStore";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace Wino.Calendar.Services
|
|||||||
|
|
||||||
foreach (var type in providers)
|
foreach (var type in providers)
|
||||||
{
|
{
|
||||||
providerList.Add(new ProviderDetail(type));
|
providerList.Add(new ProviderDetail(type, SpecialImapProvider.None));
|
||||||
}
|
}
|
||||||
|
|
||||||
return providerList;
|
return providerList;
|
||||||
|
|||||||
@@ -60,29 +60,6 @@
|
|||||||
<Prefer32Bit>true</Prefer32Bit>
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
|
||||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
||||||
@@ -334,7 +311,7 @@
|
|||||||
<Version>6.2.14</Version>
|
<Version>6.2.14</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Win2D.uwp">
|
<PackageReference Include="Win2D.uwp">
|
||||||
<Version>1.28.0</Version>
|
<Version>1.28.1</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
11
Wino.Core.Domain/BasicTypesJsonContext.cs
Normal file
11
Wino.Core.Domain/BasicTypesJsonContext.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace Wino.Core.Domain;
|
||||||
|
|
||||||
|
[JsonSerializable(typeof(Dictionary<string, string>))]
|
||||||
|
[JsonSerializable(typeof(string))]
|
||||||
|
[JsonSerializable(typeof(int))]
|
||||||
|
[JsonSerializable(typeof(List<string>))]
|
||||||
|
[JsonSerializable(typeof(bool))]
|
||||||
|
public partial class BasicTypesJsonContext : JsonSerializerContext;
|
||||||
@@ -7,8 +7,8 @@ using Wino.Core.Domain.Entities.Calendar;
|
|||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
using Wino.Core.Domain.Models.Calendar;
|
using Wino.Core.Domain.Models.Calendar;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Collections
|
namespace Wino.Core.Domain.Collections;
|
||||||
{
|
|
||||||
public class CalendarEventCollection
|
public class CalendarEventCollection
|
||||||
{
|
{
|
||||||
public event EventHandler<ICalendarItem> CalendarItemAdded;
|
public event EventHandler<ICalendarItem> CalendarItemAdded;
|
||||||
@@ -153,4 +153,3 @@ namespace Wino.Core.Domain.Collections
|
|||||||
CalendarItemsCleared?.Invoke(this, EventArgs.Empty);
|
CalendarItemsCleared?.Invoke(this, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
using Wino.Core.Domain.Models.Calendar;
|
using Wino.Core.Domain.Models.Calendar;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Collections
|
namespace Wino.Core.Domain.Collections;
|
||||||
{
|
|
||||||
public class DayRangeCollection : ObservableRangeCollection<DayRangeRenderModel>
|
public class DayRangeCollection : ObservableRangeCollection<DayRangeRenderModel>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -39,4 +39,3 @@ namespace Wino.Core.Domain.Collections
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Collections
|
namespace Wino.Core.Domain.Collections;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
|
/// Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -171,4 +171,3 @@ namespace Wino.Core.Domain.Collections
|
|||||||
OnCollectionChanged(new NotifyCollectionChangedEventArgs(action, changedItems: changedItems, startingIndex: startingIndex));
|
OnCollectionChanged(new NotifyCollectionChangedEventArgs(action, changedItems: changedItems, startingIndex: startingIndex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain
|
namespace Wino.Core.Domain;
|
||||||
{
|
|
||||||
public static class Constants
|
public static class Constants
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -20,4 +20,3 @@
|
|||||||
public const string WinoMailIdentiifer = nameof(WinoMailIdentiifer);
|
public const string WinoMailIdentiifer = nameof(WinoMailIdentiifer);
|
||||||
public const string WinoCalendarIdentifier = nameof(WinoCalendarIdentifier);
|
public const string WinoCalendarIdentifier = nameof(WinoCalendarIdentifier);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Calendar
|
namespace Wino.Core.Domain.Entities.Calendar;
|
||||||
{
|
|
||||||
public class AccountCalendar : IAccountCalendar
|
public class AccountCalendar : IAccountCalendar
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -22,4 +22,3 @@ namespace Wino.Core.Domain.Entities.Calendar
|
|||||||
public string BackgroundColorHex { get; set; }
|
public string BackgroundColorHex { get; set; }
|
||||||
public string TimeZone { get; set; }
|
public string TimeZone { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Calendar
|
namespace Wino.Core.Domain.Entities.Calendar;
|
||||||
{
|
|
||||||
// TODO: Connect to Contact store with Wino People.
|
// TODO: Connect to Contact store with Wino People.
|
||||||
public class CalendarEventAttendee
|
public class CalendarEventAttendee
|
||||||
{
|
{
|
||||||
@@ -17,4 +17,3 @@ namespace Wino.Core.Domain.Entities.Calendar
|
|||||||
public bool IsOptionalAttendee { get; set; }
|
public bool IsOptionalAttendee { get; set; }
|
||||||
public string Comment { get; set; }
|
public string Comment { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using SQLite;
|
|||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
using Wino.Core.Domain.Interfaces;
|
using Wino.Core.Domain.Interfaces;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Calendar
|
namespace Wino.Core.Domain.Entities.Calendar;
|
||||||
{
|
|
||||||
[DebuggerDisplay("{Title} ({StartDate} - {EndDate})")]
|
[DebuggerDisplay("{Title} ({StartDate} - {EndDate})")]
|
||||||
public class CalendarItem : ICalendarItem
|
public class CalendarItem : ICalendarItem
|
||||||
{
|
{
|
||||||
@@ -177,4 +177,3 @@ namespace Wino.Core.Domain.Entities.Calendar
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Calendar
|
namespace Wino.Core.Domain.Entities.Calendar;
|
||||||
{
|
|
||||||
public class Reminder
|
public class Reminder
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -13,4 +13,3 @@ namespace Wino.Core.Domain.Entities.Calendar
|
|||||||
public DateTimeOffset ReminderTime { get; set; }
|
public DateTimeOffset ReminderTime { get; set; }
|
||||||
public CalendarItemReminderType ReminderType { get; set; }
|
public CalendarItemReminderType ReminderType { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Mail
|
namespace Wino.Core.Domain.Entities.Mail;
|
||||||
{
|
|
||||||
public class AccountSignature
|
public class AccountSignature
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -14,4 +14,3 @@ namespace Wino.Core.Domain.Entities.Mail
|
|||||||
|
|
||||||
public Guid MailAccountId { get; set; }
|
public Guid MailAccountId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Mail
|
namespace Wino.Core.Domain.Entities.Mail;
|
||||||
{
|
|
||||||
public class RemoteAccountAlias
|
public class RemoteAccountAlias
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -60,4 +60,3 @@ namespace Wino.Core.Domain.Entities.Mail
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool CanDelete => !IsRootAlias;
|
public bool CanDelete => !IsRootAlias;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using Wino.Core.Domain.Entities.Shared;
|
|||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
using Wino.Core.Domain.Models.MailItem;
|
using Wino.Core.Domain.Models.MailItem;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Mail
|
namespace Wino.Core.Domain.Entities.Mail;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary of the parsed MIME messages.
|
/// Summary of the parsed MIME messages.
|
||||||
/// Wino will do non-network operations on this table and others from the original MIME.
|
/// Wino will do non-network operations on this table and others from the original MIME.
|
||||||
@@ -154,4 +154,3 @@ namespace Wino.Core.Domain.Entities.Mail
|
|||||||
public IEnumerable<Guid> GetContainingIds() => [UniqueId];
|
public IEnumerable<Guid> GetContainingIds() => [UniqueId];
|
||||||
public override string ToString() => $"{Subject} <-> {Id}";
|
public override string ToString() => $"{Subject} <-> {Id}";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using SQLite;
|
|||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
using Wino.Core.Domain.Models.Folders;
|
using Wino.Core.Domain.Models.Folders;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Mail
|
namespace Wino.Core.Domain.Entities.Mail;
|
||||||
{
|
|
||||||
[DebuggerDisplay("{FolderName} - {SpecialFolderType}")]
|
[DebuggerDisplay("{FolderName} - {SpecialFolderType}")]
|
||||||
public class MailItemFolder : IMailItemFolder
|
public class MailItemFolder : IMailItemFolder
|
||||||
{
|
{
|
||||||
@@ -72,4 +72,3 @@ namespace Wino.Core.Domain.Entities.Mail
|
|||||||
|
|
||||||
public override string ToString() => FolderName;
|
public override string ToString() => FolderName;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Mail
|
namespace Wino.Core.Domain.Entities.Mail;
|
||||||
{
|
|
||||||
public class MergedInbox
|
public class MergedInbox
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -10,4 +10,3 @@ namespace Wino.Core.Domain.Entities.Mail
|
|||||||
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Shared
|
namespace Wino.Core.Domain.Entities.Shared;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Back storage for simple name-address book.
|
/// Back storage for simple name-address book.
|
||||||
/// These values will be inserted during MIME fetch.
|
/// These values will be inserted during MIME fetch.
|
||||||
@@ -36,14 +36,6 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsRootContact { get; set; }
|
public bool IsRootContact { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Short display name of the contact.
|
|
||||||
/// Eather Name or Address.
|
|
||||||
/// </summary>
|
|
||||||
public string ShortDisplayName => Address == Name || string.IsNullOrWhiteSpace(Name) ? $"{Address.ToLowerInvariant()};" : $"{Name};";
|
|
||||||
|
|
||||||
public string DisplayName => Address == Name || string.IsNullOrWhiteSpace(Name) ? Address.ToLowerInvariant() : $"{Name} <{Address.ToLowerInvariant()}>";
|
|
||||||
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
{
|
{
|
||||||
return Equals(obj as AccountContact);
|
return Equals(obj as AccountContact);
|
||||||
@@ -58,10 +50,7 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
|
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
int hashCode = -1717786383;
|
return HashCode.Combine(Address, Name);
|
||||||
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Address);
|
|
||||||
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Name);
|
|
||||||
return hashCode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool operator ==(AccountContact left, AccountContact right)
|
public static bool operator ==(AccountContact left, AccountContact right)
|
||||||
@@ -74,4 +63,3 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
return !(left == right);
|
return !(left == right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Shared
|
namespace Wino.Core.Domain.Entities.Shared;
|
||||||
{
|
|
||||||
public class CustomServerInformation
|
public class CustomServerInformation
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -49,5 +50,25 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
/// Default is 5.
|
/// Default is 5.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxConcurrentClients { get; set; }
|
public int MaxConcurrentClients { get; set; }
|
||||||
|
|
||||||
|
public Dictionary<string, string> GetConnectionProperties()
|
||||||
|
{
|
||||||
|
// Printout the public connection properties.
|
||||||
|
|
||||||
|
var connectionProperties = new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{ "IncomingServer", IncomingServer },
|
||||||
|
{ "IncomingServerPort", IncomingServerPort },
|
||||||
|
{ "IncomingServerSocketOption", IncomingServerSocketOption.ToString() },
|
||||||
|
{ "IncomingAuthenticationMethod", IncomingAuthenticationMethod.ToString() },
|
||||||
|
{ "OutgoingServer", OutgoingServer },
|
||||||
|
{ "OutgoingServerPort", OutgoingServerPort },
|
||||||
|
{ "OutgoingServerSocketOption", OutgoingServerSocketOption.ToString() },
|
||||||
|
{ "OutgoingAuthenticationMethod", OutgoingAuthenticationMethod.ToString() },
|
||||||
|
{ "ProxyServer", ProxyServer },
|
||||||
|
{ "ProxyServerPort", ProxyServerPort }
|
||||||
|
};
|
||||||
|
|
||||||
|
return connectionProperties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using SQLite;
|
|||||||
using Wino.Core.Domain.Entities.Mail;
|
using Wino.Core.Domain.Entities.Mail;
|
||||||
using Wino.Core.Domain.Enums;
|
using Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Shared
|
namespace Wino.Core.Domain.Entities.Shared;
|
||||||
{
|
|
||||||
public class MailAccount
|
public class MailAccount
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -72,6 +72,12 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? MergedInboxId { get; set; }
|
public Guid? MergedInboxId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the additional IMAP provider assignment for the account.
|
||||||
|
/// Providers that use IMAP as a synchronizer but have special requirements.
|
||||||
|
/// </summary>
|
||||||
|
public SpecialImapProvider SpecialImapProvider { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the merged inbox this account belongs to.
|
/// Contains the merged inbox this account belongs to.
|
||||||
/// Ignored for all SQLite operations.
|
/// Ignored for all SQLite operations.
|
||||||
@@ -95,11 +101,10 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets whether the account can perform ProfileInformation sync type.
|
/// Gets whether the account can perform ProfileInformation sync type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsProfileInfoSyncSupported => ProviderType == MailProviderType.Outlook || ProviderType == MailProviderType.Office365 || ProviderType == MailProviderType.Gmail;
|
public bool IsProfileInfoSyncSupported => ProviderType == MailProviderType.Outlook || ProviderType == MailProviderType.Gmail;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets whether the account can perform AliasInformation sync type.
|
/// Gets whether the account can perform AliasInformation sync type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsAliasSyncSupported => ProviderType == MailProviderType.Gmail;
|
public bool IsAliasSyncSupported => ProviderType == MailProviderType.Gmail;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Entities.Shared
|
namespace Wino.Core.Domain.Entities.Shared;
|
||||||
{
|
|
||||||
public class MailAccountPreferences
|
public class MailAccountPreferences
|
||||||
{
|
{
|
||||||
[PrimaryKey]
|
[PrimaryKey]
|
||||||
@@ -51,4 +51,3 @@ namespace Wino.Core.Domain.Entities.Shared
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? SignatureIdForFollowingMessages { get; set; }
|
public Guid? SignatureIdForFollowingMessages { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum AccountAttentionReason
|
public enum AccountAttentionReason
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
InvalidCredentials,
|
InvalidCredentials,
|
||||||
MissingSystemFolderConfiguration
|
MissingSystemFolderConfiguration
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
7
Wino.Core.Domain/Enums/AccountCacheResetReason.cs
Normal file
7
Wino.Core.Domain/Enums/AccountCacheResetReason.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
|
public enum AccountCacheResetReason
|
||||||
|
{
|
||||||
|
AccountRemoval,
|
||||||
|
ExpiredCache
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum AccountCreationDialogState
|
public enum AccountCreationDialogState
|
||||||
{
|
{
|
||||||
Idle,
|
Idle,
|
||||||
@@ -14,4 +14,3 @@
|
|||||||
Canceled,
|
Canceled,
|
||||||
FetchingEvents
|
FetchingEvents
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates the state of synchronizer.
|
/// Indicates the state of synchronizer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
ExecutingRequests,
|
ExecutingRequests,
|
||||||
Synchronizing
|
Synchronizing
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum AppLanguage
|
public enum AppLanguage
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
@@ -18,4 +18,3 @@
|
|||||||
Italian,
|
Italian,
|
||||||
Romanian
|
Romanian
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum AppThemeType
|
public enum AppThemeType
|
||||||
{
|
{
|
||||||
System,
|
System,
|
||||||
PreDefined,
|
PreDefined,
|
||||||
Custom,
|
Custom,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum ApplicationElementTheme
|
public enum ApplicationElementTheme
|
||||||
{
|
{
|
||||||
Default,
|
Default,
|
||||||
Light,
|
Light,
|
||||||
Dark
|
Dark
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum AttendeeStatus
|
public enum AttendeeStatus
|
||||||
{
|
{
|
||||||
NeedsAction,
|
NeedsAction,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Tentative,
|
Tentative,
|
||||||
Declined
|
Declined
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum BackgroundSynchronizationReason
|
public enum BackgroundSynchronizationReason
|
||||||
{
|
{
|
||||||
SessionConnected,
|
SessionConnected,
|
||||||
Timer
|
Timer
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarDisplayType
|
public enum CalendarDisplayType
|
||||||
{
|
{
|
||||||
Day,
|
Day,
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
Month,
|
Month,
|
||||||
Year
|
Year
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarEventTargetType
|
public enum CalendarEventTargetType
|
||||||
{
|
{
|
||||||
Single, // Show details for a single event.
|
Single, // Show details for a single event.
|
||||||
Series // Show the series event. Parent of all recurring events.
|
Series // Show the series event. Parent of all recurring events.
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Trigger to load more data.
|
/// Trigger to load more data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
User,
|
User,
|
||||||
App
|
App
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarItemRecurrenceFrequency
|
public enum CalendarItemRecurrenceFrequency
|
||||||
{
|
{
|
||||||
Daily,
|
Daily,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Monthly,
|
Monthly,
|
||||||
Yearly
|
Yearly
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarItemReminderType
|
public enum CalendarItemReminderType
|
||||||
{
|
{
|
||||||
Popup,
|
Popup,
|
||||||
Email
|
Email
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarItemStatus
|
public enum CalendarItemStatus
|
||||||
{
|
{
|
||||||
NotResponded,
|
NotResponded,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Tentative,
|
Tentative,
|
||||||
Cancelled,
|
Cancelled,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarItemVisibility
|
public enum CalendarItemVisibility
|
||||||
{
|
{
|
||||||
Default,
|
Default,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Private,
|
Private,
|
||||||
Confidential
|
Confidential
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Which way in time to load more data for calendar.
|
/// Which way in time to load more data for calendar.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
Previous,
|
Previous,
|
||||||
Next
|
Next
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarOrientation
|
public enum CalendarOrientation
|
||||||
{
|
{
|
||||||
Horizontal,
|
Horizontal,
|
||||||
Vertical
|
Vertical
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CalendarSynchronizationType
|
public enum CalendarSynchronizationType
|
||||||
{
|
{
|
||||||
ExecuteRequests, // Execute all requests in the queue.
|
ExecuteRequests, // Execute all requests in the queue.
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
SingleCalendar, // Sync events for only specified calendars.
|
SingleCalendar, // Sync events for only specified calendars.
|
||||||
UpdateProfile // Update profile information only.
|
UpdateProfile // Update profile information only.
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum ChangeRequestType
|
public enum ChangeRequestType
|
||||||
{
|
{
|
||||||
MailMarkAs,
|
MailMarkAs,
|
||||||
@@ -21,4 +21,3 @@
|
|||||||
SendDraft,
|
SendDraft,
|
||||||
FetchSingleItem
|
FetchSingleItem
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum CustomIncomingServerType
|
public enum CustomIncomingServerType
|
||||||
{
|
{
|
||||||
POP3,
|
POP3,
|
||||||
IMAP4
|
IMAP4
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum DayHeaderDisplayType
|
public enum DayHeaderDisplayType
|
||||||
{
|
{
|
||||||
TwelveHour,
|
TwelveHour,
|
||||||
TwentyFourHour,
|
TwentyFourHour,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum DraftCreationReason
|
public enum DraftCreationReason
|
||||||
{
|
{
|
||||||
Empty,
|
Empty,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
ReplyAll,
|
ReplyAll,
|
||||||
Forward
|
Forward
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum FilterOptionType
|
public enum FilterOptionType
|
||||||
{
|
{
|
||||||
All,
|
All,
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
Mentions,
|
Mentions,
|
||||||
Files
|
Files
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines all possible folder operations that can be done.
|
/// Defines all possible folder operations that can be done.
|
||||||
/// Available values for each folder is returned by IContextMenuProvider
|
/// Available values for each folder is returned by IContextMenuProvider
|
||||||
@@ -20,4 +20,3 @@
|
|||||||
CreateSubFolder,
|
CreateSubFolder,
|
||||||
Seperator
|
Seperator
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum ImapAuthenticationMethod
|
public enum ImapAuthenticationMethod
|
||||||
{
|
{
|
||||||
Auto,
|
Auto,
|
||||||
@@ -10,4 +10,3 @@
|
|||||||
CramMd5,
|
CramMd5,
|
||||||
DigestMd5
|
DigestMd5
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum ImapConnectionSecurity
|
public enum ImapConnectionSecurity
|
||||||
{
|
{
|
||||||
Auto,
|
Auto,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
StartTls,
|
StartTls,
|
||||||
SslTls
|
SslTls
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum InfoBarAnimationType
|
public enum InfoBarAnimationType
|
||||||
{
|
{
|
||||||
SlideFromRightToLeft,
|
SlideFromRightToLeft,
|
||||||
SlideFromBottomToTop
|
SlideFromBottomToTop
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum InfoBarMessageType
|
public enum InfoBarMessageType
|
||||||
{
|
{
|
||||||
Information,
|
Information,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Warning,
|
Warning,
|
||||||
Error
|
Error
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
7
Wino.Core.Domain/Enums/InvalidMoveTargetReason.cs
Normal file
7
Wino.Core.Domain/Enums/InvalidMoveTargetReason.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
|
public enum InvalidMoveTargetReason
|
||||||
|
{
|
||||||
|
NonMoveTarget, // This folder does not allow moving mails.
|
||||||
|
MultipleAccounts // Multiple mails from different accounts cannot be moved.
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum MailAttachmentType
|
public enum MailAttachmentType
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
@@ -13,4 +13,3 @@
|
|||||||
Archive,
|
Archive,
|
||||||
Other
|
Other
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum MailImportance
|
public enum MailImportance
|
||||||
{
|
{
|
||||||
Low,
|
Low,
|
||||||
Normal,
|
Normal,
|
||||||
High
|
High
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
|
||||||
{
|
namespace Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
public enum MailListDisplayMode
|
public enum MailListDisplayMode
|
||||||
{
|
{
|
||||||
Spacious,
|
Spacious,
|
||||||
Medium,
|
Medium,
|
||||||
Compact,
|
Compact,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum MailMarkAsOption
|
public enum MailMarkAsOption
|
||||||
{
|
{
|
||||||
WhenSelected,
|
WhenSelected,
|
||||||
DontMark,
|
DontMark,
|
||||||
AfterDelay
|
AfterDelay
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
// Synchronizer requests.
|
// Synchronizer requests.
|
||||||
public enum MailSynchronizerOperation
|
public enum MailSynchronizerOperation
|
||||||
{
|
{
|
||||||
@@ -55,4 +55,3 @@
|
|||||||
DiscardLocalDraft,
|
DiscardLocalDraft,
|
||||||
Navigate // For toast activation
|
Navigate // For toast activation
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum MailProviderType
|
public enum MailProviderType
|
||||||
{
|
{
|
||||||
Outlook,
|
Outlook,
|
||||||
Gmail,
|
Gmail,
|
||||||
Office365,
|
IMAP4 = 4 // 2-3 were removed after release. Don't change for backward compatibility.
|
||||||
Yahoo,
|
|
||||||
IMAP4
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum MailSynchronizationType
|
public enum MailSynchronizationType
|
||||||
{
|
{
|
||||||
// Shared
|
|
||||||
UpdateProfile, // Only update profile information
|
UpdateProfile, // Only update profile information
|
||||||
ExecuteRequests, // Run the queued requests, and then synchronize if needed.
|
ExecuteRequests, // Run the queued requests, and then synchronize if needed.
|
||||||
FoldersOnly, // Only synchronize folder metadata.
|
FoldersOnly, // Only synchronize folder metadata.
|
||||||
InboxOnly, // Only Inbox, Sent and Draft folders.
|
InboxOnly, // Only Inbox, Sent, Draft and Deleted folders.
|
||||||
CustomFolders, // Only sync folders that are specified in the options.
|
CustomFolders, // Only sync folders that are specified in the options.
|
||||||
FullFolders, // Synchronize all folders. This won't update profile or alias information.
|
FullFolders, // Synchronize all folders. This won't update profile or alias information.
|
||||||
Alias, // Only update alias information
|
Alias, // Only update alias information
|
||||||
}
|
IMAPIdle // Idle client triggered synchronization.
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum NavigationReferenceFrame
|
public enum NavigationReferenceFrame
|
||||||
{
|
{
|
||||||
ShellFrame,
|
ShellFrame,
|
||||||
RenderingFrame
|
RenderingFrame
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the potential reasons for picking folder in the folder picking dialog.
|
/// Defines the potential reasons for picking folder in the folder picking dialog.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
SpecialFolder,
|
SpecialFolder,
|
||||||
Any
|
Any
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum PrintingResult
|
public enum PrintingResult
|
||||||
{
|
{
|
||||||
Abandoned,
|
Abandoned,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Failed,
|
Failed,
|
||||||
Submitted
|
Submitted
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
6
Wino.Core.Domain/Enums/SearchMode.cs
Normal file
6
Wino.Core.Domain/Enums/SearchMode.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Wino.Core.Domain.Enums;
|
||||||
|
public enum SearchMode
|
||||||
|
{
|
||||||
|
Local,
|
||||||
|
Online
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// What should happen to server app when the client is terminated.
|
/// What should happen to server app when the client is terminated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
Invisible, // Still runs, tray icon is invisible.
|
Invisible, // Still runs, tray icon is invisible.
|
||||||
Terminate // Server is terminated as Wino terminates.
|
Terminate // Server is terminated as Wino terminates.
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum SortingOptionType
|
public enum SortingOptionType
|
||||||
{
|
{
|
||||||
ReceiveDate,
|
ReceiveDate,
|
||||||
Sender
|
Sender
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum SpecialFolderType
|
public enum SpecialFolderType
|
||||||
{
|
{
|
||||||
Inbox,
|
Inbox,
|
||||||
@@ -21,4 +21,3 @@
|
|||||||
Other,
|
Other,
|
||||||
More
|
More
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
8
Wino.Core.Domain/Enums/SpecialImapProvider.cs
Normal file
8
Wino.Core.Domain/Enums/SpecialImapProvider.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
namespace Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
|
public enum SpecialImapProvider
|
||||||
|
{
|
||||||
|
None,
|
||||||
|
iCloud,
|
||||||
|
Yahoo
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum StartupBehaviorResult
|
public enum StartupBehaviorResult
|
||||||
{
|
{
|
||||||
Enabled,
|
Enabled,
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
DisabledByPolicy,
|
DisabledByPolicy,
|
||||||
Fatal
|
Fatal
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
// From the SDK.
|
// From the SDK.
|
||||||
public enum StorePurchaseResult
|
public enum StorePurchaseResult
|
||||||
{
|
{
|
||||||
@@ -16,4 +16,3 @@
|
|||||||
// The purchase request did not succeed.
|
// The purchase request did not succeed.
|
||||||
NotPurchased,
|
NotPurchased,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum SynchronizationCompletedState
|
public enum SynchronizationCompletedState
|
||||||
{
|
{
|
||||||
Success, // All succeeded.
|
Success, // All succeeded.
|
||||||
Canceled, // Canceled by user or HTTP call.
|
Canceled, // Canceled by user or HTTP call.
|
||||||
Failed // Exception.
|
Failed // Exception.
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumeration for the source of synchronization.
|
/// Enumeration for the source of synchronization.
|
||||||
/// Right now it can either be from the client or the server.
|
/// Right now it can either be from the client or the server.
|
||||||
@@ -9,4 +9,3 @@
|
|||||||
Client,
|
Client,
|
||||||
Server
|
Server
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum WinoAppType
|
public enum WinoAppType
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
Mail,
|
Mail,
|
||||||
Calendar
|
Calendar
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum WinoCustomMessageDialogIcon
|
public enum WinoCustomMessageDialogIcon
|
||||||
{
|
{
|
||||||
Information,
|
Information,
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
Error,
|
Error,
|
||||||
Question
|
Question
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All registered views.
|
/// All registered views.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -31,4 +31,3 @@
|
|||||||
CalendarSettingsPage,
|
CalendarSettingsPage,
|
||||||
EventDetailsPage
|
EventDetailsPage
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Enums
|
namespace Wino.Core.Domain.Enums;
|
||||||
{
|
|
||||||
public enum WinoServerConnectionStatus
|
public enum WinoServerConnectionStatus
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
Disconnected,
|
Disconnected,
|
||||||
Failed
|
Failed
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class AccountSetupCanceledException : System.Exception
|
public class AccountSetupCanceledException : System.Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using Wino.Core.Domain.Entities.Shared;
|
using Wino.Core.Domain.Entities.Shared;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Thrown when IAuthenticator requires user interaction to fix authentication issues.
|
/// Thrown when IAuthenticator requires user interaction to fix authentication issues.
|
||||||
/// It can be expired and can't restorable token, or some stuff that requires re-authentication.
|
/// It can be expired and can't restorable token, or some stuff that requires re-authentication.
|
||||||
@@ -16,4 +16,3 @@ namespace Wino.Core.Domain.Exceptions
|
|||||||
|
|
||||||
public MailAccount Account { get; }
|
public MailAccount Account { get; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All exceptions related to authentication.
|
/// All exceptions related to authentication.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -15,4 +15,3 @@ namespace Wino.Core.Domain.Exceptions
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An exception thrown when the background task registration is failed.
|
/// An exception thrown when the background task registration is failed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class BackgroundTaskRegistrationFailedException : Exception { }
|
public class BackgroundTaskRegistrationFailedException : Exception { }
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Thrown when composer cant find the mime to load.
|
/// Thrown when composer cant find the mime to load.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ComposerMimeNotFoundException : Exception
|
public class ComposerMimeNotFoundException : Exception
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class CustomThemeCreationFailedException : Exception
|
public class CustomThemeCreationFailedException : Exception
|
||||||
{
|
{
|
||||||
public CustomThemeCreationFailedException(string message) : base(message)
|
public CustomThemeCreationFailedException(string message) : base(message)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
|
|
||||||
|
public class GmailServiceDisabledException : System.Exception { }
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class GoogleAuthenticationException : System.Exception
|
public class GoogleAuthenticationException : System.Exception
|
||||||
{
|
{
|
||||||
public GoogleAuthenticationException(string message) : base(message) { }
|
public GoogleAuthenticationException(string message) : base(message) { }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,14 +1,30 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Wino.Core.Domain.Entities.Shared;
|
||||||
|
|
||||||
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
|
||||||
{
|
|
||||||
public class ImapClientPoolException : Exception
|
public class ImapClientPoolException : Exception
|
||||||
{
|
{
|
||||||
|
public ImapClientPoolException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImapClientPoolException(string message, CustomServerInformation customServerInformation, string protocolLog) : base(message)
|
||||||
|
{
|
||||||
|
CustomServerInformation = customServerInformation;
|
||||||
|
ProtocolLog = protocolLog;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImapClientPoolException(string message, string protocolLog) : base(message)
|
||||||
|
{
|
||||||
|
ProtocolLog = protocolLog;
|
||||||
|
}
|
||||||
|
|
||||||
public ImapClientPoolException(Exception innerException, string protocolLog) : base(Translator.Exception_ImapClientPoolFailed, innerException)
|
public ImapClientPoolException(Exception innerException, string protocolLog) : base(Translator.Exception_ImapClientPoolFailed, innerException)
|
||||||
{
|
{
|
||||||
ProtocolLog = protocolLog;
|
ProtocolLog = protocolLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CustomServerInformation CustomServerInformation { get; }
|
||||||
public string ProtocolLog { get; }
|
public string ProtocolLog { get; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Wino.Core.Domain.Models.AutoDiscovery;
|
using Wino.Core.Domain.Models.AutoDiscovery;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class ImapConnectionFailedPackage
|
public class ImapConnectionFailedPackage
|
||||||
{
|
{
|
||||||
public ImapConnectionFailedPackage(string errorMessage, string protocolLog, AutoDiscoverySettings settings)
|
public ImapConnectionFailedPackage(string errorMessage, string protocolLog, AutoDiscoverySettings settings)
|
||||||
@@ -15,4 +15,3 @@ namespace Wino.Core.Domain.Exceptions
|
|||||||
public string ErrorMessage { get; set; }
|
public string ErrorMessage { get; set; }
|
||||||
public string ProtocolLog { get; }
|
public string ProtocolLog { get; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
|
|
||||||
|
public class ImapSynchronizerStrategyException : System.Exception
|
||||||
|
{
|
||||||
|
public ImapSynchronizerStrategyException(string message) : base(message)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class ImapTestSSLCertificateException : System.Exception
|
public class ImapTestSSLCertificateException : System.Exception
|
||||||
{
|
{
|
||||||
public ImapTestSSLCertificateException(string issuer, string expirationDateString, string validFromDateString)
|
public ImapTestSSLCertificateException(string issuer, string expirationDateString, string validFromDateString)
|
||||||
@@ -14,4 +14,3 @@
|
|||||||
public string ValidFromDateString { get; set; }
|
public string ValidFromDateString { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Wino.Core.Domain.Enums;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
|
|
||||||
|
public class InvalidMoveTargetException(InvalidMoveTargetReason reason) : Exception
|
||||||
{
|
{
|
||||||
public class InvalidMoveTargetException : Exception { }
|
public InvalidMoveTargetReason Reason { get; } = reason;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class MissingAliasException : System.Exception
|
public class MissingAliasException : System.Exception
|
||||||
{
|
{
|
||||||
public MissingAliasException() : base(Translator.Exception_MissingAlias) { }
|
public MissingAliasException() : base(Translator.Exception_MissingAlias) { }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Wino.Core.Domain.Exceptions
|
namespace Wino.Core.Domain.Exceptions;
|
||||||
{
|
|
||||||
public class SynchronizerEntityNotFoundException : Exception
|
public class SynchronizerEntityNotFoundException : Exception
|
||||||
{
|
{
|
||||||
public SynchronizerEntityNotFoundException(string message) : base(message)
|
public SynchronizerEntityNotFoundException(string message) : base(message)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user