File scoped namespaces
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Models.MailItem;
|
||||
|
||||
namespace Wino.Messaging.Client.Accounts
|
||||
{
|
||||
/// <summary>
|
||||
/// When menu item for the account is requested to be extended.
|
||||
/// Additional properties are also supported to navigate to correct IMailItem.
|
||||
/// </summary>
|
||||
/// <param name="AutoSelectAccount">Account to extend menu item for.</param>
|
||||
/// <param name="FolderId">Folder to select after expansion.</param>
|
||||
/// <param name="NavigateMailItem">Mail item to select if possible in the expanded folder.</param>
|
||||
public record AccountMenuItemExtended(Guid FolderId, IMailItem NavigateMailItem);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Accounts;
|
||||
|
||||
/// <summary>
|
||||
/// When menu item for the account is requested to be extended.
|
||||
/// Additional properties are also supported to navigate to correct IMailItem.
|
||||
/// </summary>
|
||||
/// <param name="AutoSelectAccount">Account to extend menu item for.</param>
|
||||
/// <param name="FolderId">Folder to select after expansion.</param>
|
||||
/// <param name="NavigateMailItem">Mail item to select if possible in the expanded folder.</param>
|
||||
public record AccountMenuItemExtended(Guid FolderId, IMailItem NavigateMailItem);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wino.Messaging.Client.Accounts
|
||||
{
|
||||
/// <summary>
|
||||
/// Emitted when account menu items are reordered.
|
||||
/// </summary>
|
||||
/// <param name="newOrderDictionary">New order info.</param>
|
||||
public record AccountMenuItemsReordered(Dictionary<Guid, int> newOrderDictionary);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Accounts;
|
||||
|
||||
/// <summary>
|
||||
/// Emitted when account menu items are reordered.
|
||||
/// </summary>
|
||||
/// <param name="newOrderDictionary">New order info.</param>
|
||||
public record AccountMenuItemsReordered(Dictionary<Guid, int> newOrderDictionary);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Accounts
|
||||
{
|
||||
/// <summary>
|
||||
/// When a full menu refresh for accounts menu is requested.
|
||||
/// </summary>
|
||||
public record AccountsMenuRefreshRequested(bool AutomaticallyNavigateFirstItem = true);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Accounts;
|
||||
|
||||
/// <summary>
|
||||
/// When a full menu refresh for accounts menu is requested.
|
||||
/// </summary>
|
||||
public record AccountsMenuRefreshRequested(bool AutomaticallyNavigateFirstItem = true);
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when calendar type is changed like Day,Week,Month etc.
|
||||
/// </summary>
|
||||
/// <param name="NewDisplayType">New type.</param>
|
||||
public record CalendarDisplayTypeChangedMessage(CalendarDisplayType NewDisplayType);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when calendar type is changed like Day,Week,Month etc.
|
||||
/// </summary>
|
||||
/// <param name="NewDisplayType">New type.</param>
|
||||
public record CalendarDisplayTypeChangedMessage(CalendarDisplayType NewDisplayType);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
public record CalendarEnableStatusChangedMessage(bool IsEnabled);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
public record CalendarEnableStatusChangedMessage(bool IsEnabled);
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using Wino.Core.Domain.Entities.Calendar;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
public record CalendarListRefreshed(List<AccountCalendar> AccountCalendars);
|
||||
public record CalendarListAdded(AccountCalendar AccountCalendar);
|
||||
public record CalendarListUpdated(AccountCalendar AccountCalendar);
|
||||
public record CalendarListDeleted(AccountCalendar AccountCalendar);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
public record CalendarListRefreshed(List<AccountCalendar> AccountCalendars);
|
||||
public record CalendarListAdded(AccountCalendar AccountCalendar);
|
||||
public record CalendarListUpdated(AccountCalendar AccountCalendar);
|
||||
public record CalendarListDeleted(AccountCalendar AccountCalendar);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using Wino.Core.Domain.Entities.Calendar;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
public record CalendarItemAdded(CalendarItem CalendarItem);
|
||||
public record CalendarItemUpdated(CalendarItem CalendarItem);
|
||||
public record CalendarItemDeleted(CalendarItem CalendarItem);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
public record CalendarItemAdded(CalendarItem CalendarItem);
|
||||
public record CalendarItemUpdated(CalendarItem CalendarItem);
|
||||
public record CalendarItemDeleted(CalendarItem CalendarItem);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when calendar settings are updated.
|
||||
/// </summary>
|
||||
public record CalendarSettingsUpdatedMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when calendar settings are updated.
|
||||
/// </summary>
|
||||
public record CalendarSettingsUpdatedMessage;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// When event details page is activated or deactivated.
|
||||
/// </summary>
|
||||
public record DetailsPageStateChangedMessage(bool IsActivated);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// When event details page is activated or deactivated.
|
||||
/// </summary>
|
||||
public record DetailsPageStateChangedMessage(bool IsActivated);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when user clicks '>' button from the shell.
|
||||
/// </summary>
|
||||
public record GoNextDateRequestedMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when user clicks '>' button from the shell.
|
||||
/// </summary>
|
||||
public record GoNextDateRequestedMessage;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when user clicks '<' button from the shell.
|
||||
/// </summary>
|
||||
public record GoPreviousDateRequestedMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when user clicks '<' button from the shell.
|
||||
/// </summary>
|
||||
public record GoPreviousDateRequestedMessage;
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when a new calendar range is requested for drawing.
|
||||
/// </summary>
|
||||
/// <param name="DisplayType">Type of the calendar.</param>
|
||||
/// <param name="DisplayDate">Exact date to highlight.</param>
|
||||
/// <param name="DayDisplayCount">How many days to load with Day calendar display type.</param>
|
||||
/// <param name="ForceRedraw">Remove all days and force re-render of everything. Used when settings are updated.</param>
|
||||
public record LoadCalendarMessage(DateTime DisplayDate, CalendarInitInitiative CalendarInitInitiative, bool ForceRedraw = false);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when a new calendar range is requested for drawing.
|
||||
/// </summary>
|
||||
/// <param name="DisplayType">Type of the calendar.</param>
|
||||
/// <param name="DisplayDate">Exact date to highlight.</param>
|
||||
/// <param name="DayDisplayCount">How many days to load with Day calendar display type.</param>
|
||||
/// <param name="ForceRedraw">Remove all days and force re-render of everything. Used when settings are updated.</param>
|
||||
public record LoadCalendarMessage(DateTime DisplayDate, CalendarInitInitiative CalendarInitInitiative, bool ForceRedraw = false);
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when requested date is already loaded into calendar flip view to scroll to it.
|
||||
/// </summary>
|
||||
/// <param name="Date">Date to scroll.</param>
|
||||
public record ScrollToDateMessage(DateTime Date);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when requested date is already loaded into calendar flip view to scroll to it.
|
||||
/// </summary>
|
||||
/// <param name="Date">Date to scroll.</param>
|
||||
public record ScrollToDateMessage(DateTime Date);
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Emitted when vertical scroll position is requested to be changed.
|
||||
/// </summary>
|
||||
/// <param name="TimeSpan">Hour to scroll vertically on flip view item.</param>
|
||||
public record ScrollToHourMessage(TimeSpan TimeSpan);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Emitted when vertical scroll position is requested to be changed.
|
||||
/// </summary>
|
||||
/// <param name="TimeSpan">Hour to scroll vertically on flip view item.</param>
|
||||
public record ScrollToHourMessage(TimeSpan TimeSpan);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using Wino.Core.Domain.Models.Calendar;
|
||||
|
||||
namespace Wino.Messaging.Client.Calendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when calendar's visible date range is updated.
|
||||
/// Used to update the background of the visible date range in CalendarView.
|
||||
/// </summary>
|
||||
/// <param name="DateRange">New visible date range.</param>
|
||||
public record VisibleDateRangeChangedMessage(DateRange DateRange);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when calendar's visible date range is updated.
|
||||
/// Used to update the background of the visible date range in CalendarView.
|
||||
/// </summary>
|
||||
/// <param name="DateRange">New visible date range.</param>
|
||||
public record VisibleDateRangeChangedMessage(DateRange DateRange);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Connection
|
||||
{
|
||||
/// <summary>
|
||||
/// When client established a healthy connection to the server.
|
||||
/// </summary>
|
||||
public record WinoServerConnectionEstablished;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Connection;
|
||||
|
||||
/// <summary>
|
||||
/// When client established a healthy connection to the server.
|
||||
/// </summary>
|
||||
public record WinoServerConnectionEstablished;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When rendered html is requested to cancel.
|
||||
/// </summary>
|
||||
public record CancelRenderingContentRequested;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When rendered html is requested to cancel.
|
||||
/// </summary>
|
||||
public record CancelRenderingContentRequested;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When reset all mail selections requested.
|
||||
/// </summary>
|
||||
public record ClearMailSelectionsRequested;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When reset all mail selections requested.
|
||||
/// </summary>
|
||||
public record ClearMailSelectionsRequested;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using Wino.Core.Domain.Models.Reader;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When a new composing requested.
|
||||
/// </summary>
|
||||
/// <param name="RenderModel"></param>
|
||||
public record CreateNewComposeMailRequested(MailRenderModel RenderModel);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When a new composing requested.
|
||||
/// </summary>
|
||||
/// <param name="RenderModel"></param>
|
||||
public record CreateNewComposeMailRequested(MailRenderModel RenderModel);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When rendering frame should be disposed.
|
||||
/// </summary>
|
||||
public class DisposeRenderingFrameRequested { }
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When rendering frame should be disposed.
|
||||
/// </summary>
|
||||
public class DisposeRenderingFrameRequested { }
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When existing a new html is requested to be rendered due to mail selection or signature.
|
||||
/// </summary>
|
||||
/// <param name="HtmlBody">HTML to render in WebView2.</param>
|
||||
public record HtmlRenderingRequested(string HtmlBody);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When existing a new html is requested to be rendered due to mail selection or signature.
|
||||
/// </summary>
|
||||
/// <param name="HtmlBody">HTML to render in WebView2.</param>
|
||||
public record HtmlRenderingRequested(string HtmlBody);
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When IMAP setup dialog requestes back breadcrumb navigation.
|
||||
/// Not providing PageType will go back to previous page by doing back navigation.
|
||||
/// </summary>
|
||||
/// <param name="PageType">Type to go back.</param>
|
||||
/// <param name="Parameter">Back parameters.</param>
|
||||
public record ImapSetupBackNavigationRequested(Type PageType = null, object Parameter = null);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When IMAP setup dialog requestes back breadcrumb navigation.
|
||||
/// Not providing PageType will go back to previous page by doing back navigation.
|
||||
/// </summary>
|
||||
/// <param name="PageType">Type to go back.</param>
|
||||
/// <param name="Parameter">Back parameters.</param>
|
||||
public record ImapSetupBackNavigationRequested(Type PageType = null, object Parameter = null);
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When user asked to dismiss IMAP setup dialog.
|
||||
/// </summary>
|
||||
/// <param name="CompletedServerInformation"> Validated server information that is ready to be saved to database. </param>
|
||||
public record ImapSetupDismissRequested(CustomServerInformation CompletedServerInformation = null);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When user asked to dismiss IMAP setup dialog.
|
||||
/// </summary>
|
||||
/// <param name="CompletedServerInformation"> Validated server information that is ready to be saved to database. </param>
|
||||
public record ImapSetupDismissRequested(CustomServerInformation CompletedServerInformation = null);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When IMAP setup dialog breadcrumb navigation requested.
|
||||
/// </summary>
|
||||
/// <param name="PageType">Page type to navigate.</param>
|
||||
/// <param name="Parameter">Navigation parameters.</param>
|
||||
public record ImapSetupNavigationRequested(Type PageType, object Parameter);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When IMAP setup dialog breadcrumb navigation requested.
|
||||
/// </summary>
|
||||
/// <param name="PageType">Page type to navigate.</param>
|
||||
/// <param name="Parameter">Navigation parameters.</param>
|
||||
public record ImapSetupNavigationRequested(Type PageType, object Parameter);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When a IMailItem needs to be navigated (or selected)
|
||||
/// </summary>
|
||||
/// <param name="UniqueMailId">UniqueId of the mail to navigate.</param>
|
||||
/// <param name="ScrollToItem">Whether navigated item should be scrolled to or not..</param>
|
||||
public record MailItemNavigationRequested(Guid UniqueMailId, bool ScrollToItem = false);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When a IMailItem needs to be navigated (or selected)
|
||||
/// </summary>
|
||||
/// <param name="UniqueMailId">UniqueId of the mail to navigate.</param>
|
||||
/// <param name="ScrollToItem">Whether navigated item should be scrolled to or not..</param>
|
||||
public record MailItemNavigationRequested(Guid UniqueMailId, bool ScrollToItem = false);
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
using Wino.Core.Domain.Models.Navigation;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// Selects the given FolderMenuItem in the shell folders list.
|
||||
/// </summary>
|
||||
public class NavigateMailFolderEvent : NavigateMailFolderEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Selects the given FolderMenuItem in the shell folders list.
|
||||
/// </summary>
|
||||
public class NavigateMailFolderEvent : NavigateMailFolderEventArgs
|
||||
public NavigateMailFolderEvent(IBaseFolderMenuItem baseFolderMenuItem, TaskCompletionSource<bool> folderInitLoadAwaitTask = null)
|
||||
: base(baseFolderMenuItem, folderInitLoadAwaitTask)
|
||||
{
|
||||
public NavigateMailFolderEvent(IBaseFolderMenuItem baseFolderMenuItem, TaskCompletionSource<bool> folderInitLoadAwaitTask = null)
|
||||
: base(baseFolderMenuItem, folderInitLoadAwaitTask)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When print mail is requested.
|
||||
/// </summary>
|
||||
/// <param name="PDFFilePath">Path to PDF file that WebView2 saved the html content as PDF.</param>
|
||||
/// <param name="PrintTitle">Printer title on the dialog.</param>
|
||||
public record PrintMailRequested(string PDFFilePath, string PrintTitle);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When print mail is requested.
|
||||
/// </summary>
|
||||
/// <param name="PDFFilePath">Path to PDF file that WebView2 saved the html content as PDF.</param>
|
||||
/// <param name="PrintTitle">Printer title on the dialog.</param>
|
||||
public record PrintMailRequested(string PDFFilePath, string PrintTitle);
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Wino.Messaging.Client.Mails
|
||||
{
|
||||
/// <summary>
|
||||
/// When mail save as PDF requested.
|
||||
/// </summary>
|
||||
public record SaveAsPDFRequested(string FileSavePath);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Mails;
|
||||
|
||||
/// <summary>
|
||||
/// When mail save as PDF requested.
|
||||
/// </summary>
|
||||
public record SaveAsPDFRequested(string FileSavePath);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Navigation
|
||||
{
|
||||
/// <summary>
|
||||
/// When back navigation is requested for breadcrumb pages.
|
||||
/// </summary>
|
||||
public record BackBreadcrumNavigationRequested { }
|
||||
}
|
||||
namespace Wino.Messaging.Client.Navigation;
|
||||
|
||||
/// <summary>
|
||||
/// When back navigation is requested for breadcrumb pages.
|
||||
/// </summary>
|
||||
public record BackBreadcrumNavigationRequested { }
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.Client.Navigation
|
||||
{
|
||||
/// <summary>
|
||||
/// When Breadcrumb control navigation requested.
|
||||
/// </summary>
|
||||
/// <param name="PageTitle">Title to display for the page.</param>
|
||||
/// <param name="PageType">Enum equilavent of the page to navigate.</param>
|
||||
/// <param name="Parameter">Additional parameters to the page.</param>
|
||||
public record BreadcrumbNavigationRequested(string PageTitle, WinoPage PageType, object Parameter = null);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Navigation;
|
||||
|
||||
/// <summary>
|
||||
/// When Breadcrumb control navigation requested.
|
||||
/// </summary>
|
||||
/// <param name="PageTitle">Title to display for the page.</param>
|
||||
/// <param name="PageType">Enum equilavent of the page to navigate.</param>
|
||||
/// <param name="Parameter">Additional parameters to the page.</param>
|
||||
public record BreadcrumbNavigationRequested(string PageTitle, WinoPage PageType, object Parameter = null);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Navigation
|
||||
{
|
||||
/// <summary>
|
||||
/// Navigates user to Settings -> App Preferences.
|
||||
/// </summary>
|
||||
public record NavigateAppPreferencesRequested;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Navigation;
|
||||
|
||||
/// <summary>
|
||||
/// Navigates user to Settings -> App Preferences.
|
||||
/// </summary>
|
||||
public record NavigateAppPreferencesRequested;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Navigation
|
||||
{
|
||||
/// <summary>
|
||||
/// Navigates to manage accounts page.
|
||||
/// </summary>
|
||||
public record NavigateManageAccountsRequested;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Navigation;
|
||||
|
||||
/// <summary>
|
||||
/// Navigates to manage accounts page.
|
||||
/// </summary>
|
||||
public record NavigateManageAccountsRequested;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace Wino.Messaging.Client.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When the application theme changed.
|
||||
/// </summary>
|
||||
/// <param name="IsUnderlyingThemeDark"></param>
|
||||
public record ApplicationThemeChanged(bool IsUnderlyingThemeDark);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Shell;
|
||||
|
||||
/// <summary>
|
||||
/// When the application theme changed.
|
||||
/// </summary>
|
||||
/// <param name="IsUnderlyingThemeDark"></param>
|
||||
public record ApplicationThemeChanged(bool IsUnderlyingThemeDark);
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.Client.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When
|
||||
/// - There is no selection of any folder for any account
|
||||
/// - Multiple accounts exists
|
||||
/// - User clicked 'Create New Mail'
|
||||
///
|
||||
/// flyout must be presented to pick correct account.
|
||||
/// This message will be picked up by UWP Shell.
|
||||
/// </summary>
|
||||
public record CreateNewMailWithMultipleAccountsRequested(IEnumerable<MailAccount> AllAccounts);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Shell;
|
||||
|
||||
/// <summary>
|
||||
/// When
|
||||
/// - There is no selection of any folder for any account
|
||||
/// - Multiple accounts exists
|
||||
/// - User clicked 'Create New Mail'
|
||||
///
|
||||
/// flyout must be presented to pick correct account.
|
||||
/// This message will be picked up by UWP Shell.
|
||||
/// </summary>
|
||||
public record CreateNewMailWithMultipleAccountsRequested(IEnumerable<MailAccount> AllAccounts);
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.Client.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// For displaying right sliding notification message in shell.
|
||||
/// </summary>
|
||||
/// <param name="Severity">Severity of notification.</param>
|
||||
/// <param name="Title">Title of the message.</param>
|
||||
/// <param name="Message">Message content.</param>
|
||||
public record InfoBarMessageRequested(InfoBarMessageType Severity,
|
||||
string Title,
|
||||
string Message,
|
||||
string ActionButtonTitle = "",
|
||||
Action Action = null);
|
||||
}
|
||||
namespace Wino.Messaging.Client.Shell;
|
||||
|
||||
/// <summary>
|
||||
/// For displaying right sliding notification message in shell.
|
||||
/// </summary>
|
||||
/// <param name="Severity">Severity of notification.</param>
|
||||
/// <param name="Title">Title of the message.</param>
|
||||
/// <param name="Message">Message content.</param>
|
||||
public record InfoBarMessageRequested(InfoBarMessageType Severity,
|
||||
string Title,
|
||||
string Message,
|
||||
string ActionButtonTitle = "",
|
||||
Action Action = null);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace Wino.Messaging.Client.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When application language is updated.
|
||||
/// </summary>
|
||||
public record LanguageChanged;
|
||||
}
|
||||
namespace Wino.Messaging.Client.Shell;
|
||||
|
||||
/// <summary>
|
||||
/// When application language is updated.
|
||||
/// </summary>
|
||||
public record LanguageChanged;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace Wino.Messaging.Client.Shell
|
||||
{
|
||||
public class MailtoProtocolMessageRequested { }
|
||||
}
|
||||
namespace Wino.Messaging.Client.Shell;
|
||||
|
||||
public class MailtoProtocolMessageRequested { }
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace Wino.Messaging.Enums
|
||||
namespace Wino.Messaging.Enums;
|
||||
|
||||
public enum MessageType
|
||||
{
|
||||
public enum MessageType
|
||||
{
|
||||
UIMessage, // For database changes that needs to be reflected in the UI. Either client sends it to itself or server sends it to client.
|
||||
ServerMessage, // For all actions that UWP awaits a response from Server. Caller is awaited, response returned in the app service connection args.
|
||||
}
|
||||
UIMessage, // For database changes that needs to be reflected in the UI. Either client sends it to itself or server sends it to client.
|
||||
ServerMessage, // For all actions that UWP awaits a response from Server. Caller is awaited, response returned in the app service connection args.
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace Wino.Messaging
|
||||
namespace Wino.Messaging;
|
||||
|
||||
public static class MessageConstants
|
||||
{
|
||||
public static class MessageConstants
|
||||
{
|
||||
public const string MessageTypeKey = nameof(MessageTypeKey);
|
||||
public const string MessageDataKey = nameof(MessageDataKey);
|
||||
public const string MessageDataTypeKey = nameof(MessageDataTypeKey);
|
||||
public const string MessageDataRequestAccountIdKey = nameof(MessageDataRequestAccountIdKey);
|
||||
}
|
||||
public const string MessageTypeKey = nameof(MessageTypeKey);
|
||||
public const string MessageDataKey = nameof(MessageDataKey);
|
||||
public const string MessageDataTypeKey = nameof(MessageDataTypeKey);
|
||||
public const string MessageDataRequestAccountIdKey = nameof(MessageDataRequestAccountIdKey);
|
||||
}
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// For delegating authentication/authorization to the server app.
|
||||
/// </summary>
|
||||
public record AuthorizationRequested(MailProviderType MailProviderType, MailAccount CreatedAccount, bool ProposeCopyAuthorizationURL) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// For delegating authentication/authorization to the server app.
|
||||
/// </summary>
|
||||
public record AuthorizationRequested(MailProviderType MailProviderType, MailAccount CreatedAccount, bool ProposeCopyAuthorizationURL) : IClientMessage;
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
using Wino.Core.Domain.Models.MailItem;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Message to download a missing message.
|
||||
/// Sent from client to server.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id for corresponding synchronizer.</param>
|
||||
/// <param name="MailCopyId">Mail copy id to download.</param>
|
||||
public record DownloadMissingMessageRequested(Guid AccountId, IMailItem MailItem) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Message to download a missing message.
|
||||
/// Sent from client to server.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id for corresponding synchronizer.</param>
|
||||
/// <param name="MailCopyId">Mail copy id to download.</param>
|
||||
public record DownloadMissingMessageRequested(Guid AccountId, IMailItem MailItem) : IClientMessage;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
public record ImapConnectivityTestRequested(CustomServerInformation ServerInformation, bool IsSSLHandshakeAllowed) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
public record ImapConnectivityTestRequested(CustomServerInformation ServerInformation, bool IsSSLHandshakeAllowed) : IClientMessage;
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Client message that requests to kill the account synchronizer.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id to kill synchronizer for.</param>
|
||||
public record KillAccountSynchronizerRequested(Guid AccountId) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Client message that requests to kill the account synchronizer.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id to kill synchronizer for.</param>
|
||||
public record KillAccountSynchronizerRequested(Guid AccountId) : IClientMessage;
|
||||
|
||||
@@ -2,17 +2,16 @@
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
using Wino.Core.Domain.Models.Synchronization;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Triggers a new mail synchronization if possible.
|
||||
/// </summary>
|
||||
/// <param name="Options">Options for synchronization.</param>
|
||||
public record NewMailSynchronizationRequested(MailSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage, IUIMessage;
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Triggers a new calendar synchronization if possible.
|
||||
/// </summary>
|
||||
/// <param name="Options">Options for synchronization.</param>
|
||||
public record NewCalendarSynchronizationRequested(CalendarSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage;
|
||||
}
|
||||
/// <summary>
|
||||
/// Triggers a new mail synchronization if possible.
|
||||
/// </summary>
|
||||
/// <param name="Options">Options for synchronization.</param>
|
||||
public record NewMailSynchronizationRequested(MailSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage, IUIMessage;
|
||||
|
||||
/// <summary>
|
||||
/// Triggers a new calendar synchronization if possible.
|
||||
/// </summary>
|
||||
/// <param name="Options">Options for synchronization.</param>
|
||||
public record NewCalendarSynchronizationRequested(CalendarSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage;
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// App close behavior for server is changed.
|
||||
/// </summary>
|
||||
/// <param name="ServerBackgroundMode">New server background mode.</param>
|
||||
public record ServerTerminationModeChanged(ServerBackgroundMode ServerBackgroundMode) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// App close behavior for server is changed.
|
||||
/// </summary>
|
||||
/// <param name="ServerBackgroundMode">New server background mode.</param>
|
||||
public record ServerTerminationModeChanged(ServerBackgroundMode ServerBackgroundMode) : IClientMessage;
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Synchronization
|
||||
{
|
||||
/// <summary>
|
||||
/// Client request to server to check whether given account id is in the middle of synchronization.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id to check sync existence for.</param>
|
||||
public record SynchronizationExistenceCheckRequest(Guid AccountId) : IClientMessage;
|
||||
}
|
||||
namespace Wino.Core.Domain.Models.Synchronization;
|
||||
|
||||
/// <summary>
|
||||
/// Client request to server to check whether given account id is in the middle of synchronization.
|
||||
/// </summary>
|
||||
/// <param name="AccountId">Account id to check sync existence for.</param>
|
||||
public record SynchronizationExistenceCheckRequest(Guid AccountId) : IClientMessage;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// This message is sent to server to kill itself when UWP app is terminating.
|
||||
/// </summary>
|
||||
public record TerminateServerRequested : IClientMessage;
|
||||
}
|
||||
namespace Wino.Messaging.Server;
|
||||
|
||||
/// <summary>
|
||||
/// This message is sent to server to kill itself when UWP app is terminating.
|
||||
/// </summary>
|
||||
public record TerminateServerRequested : IClientMessage;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record AccountCreatedMessage(MailAccount Account) : UIMessageBase<AccountCreatedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record AccountCreatedMessage(MailAccount Account) : UIMessageBase<AccountCreatedMessage>;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// When account's special folder configuration is updated.
|
||||
/// </summary>
|
||||
public record AccountFolderConfigurationUpdated(Guid AccountId) : UIMessageBase<AccountFolderConfigurationUpdated>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
/// <summary>
|
||||
/// When account's special folder configuration is updated.
|
||||
/// </summary>
|
||||
public record AccountFolderConfigurationUpdated(Guid AccountId) : UIMessageBase<AccountFolderConfigurationUpdated>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record AccountRemovedMessage(MailAccount Account) : UIMessageBase<AccountRemovedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record AccountRemovedMessage(MailAccount Account) : UIMessageBase<AccountRemovedMessage>;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record AccountSynchronizationCompleted(Guid AccountId, SynchronizationCompletedState Result, Guid? SynchronizationTrackingId)
|
||||
: UIMessageBase<AccountSynchronizationCompleted>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record AccountSynchronizationCompleted(Guid AccountId, SynchronizationCompletedState Result, Guid? SynchronizationTrackingId)
|
||||
: UIMessageBase<AccountSynchronizationCompleted>;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Reports back the account synchronization progress.
|
||||
/// </summary>
|
||||
public record AccountSynchronizationProgressUpdatedMessage(Guid AccountId, double Progress) : UIMessageBase<AccountSynchronizationProgressUpdatedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Reports back the account synchronization progress.
|
||||
/// </summary>
|
||||
public record AccountSynchronizationProgressUpdatedMessage(Guid AccountId, double Progress) : UIMessageBase<AccountSynchronizationProgressUpdatedMessage>;
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Emitted when synchronizer state is updated.
|
||||
/// </summary>
|
||||
/// <param name="synchronizer">Account Synchronizer</param>
|
||||
/// <param name="newState">New state.</param>
|
||||
public record AccountSynchronizerStateChanged(Guid AccountId, AccountSynchronizerState NewState) : UIMessageBase<AccountSynchronizerStateChanged>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Emitted when synchronizer state is updated.
|
||||
/// </summary>
|
||||
/// <param name="synchronizer">Account Synchronizer</param>
|
||||
/// <param name="newState">New state.</param>
|
||||
public record AccountSynchronizerStateChanged(Guid AccountId, AccountSynchronizerState NewState) : UIMessageBase<AccountSynchronizerStateChanged>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record AccountUpdatedMessage(MailAccount Account) : UIMessageBase<AccountUpdatedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record AccountUpdatedMessage(MailAccount Account) : UIMessageBase<AccountUpdatedMessage>;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// When authenticators are proposed to copy the auth URL on the UI.
|
||||
/// </summary>
|
||||
/// <param name="AuthURL">URL to be copied to clipboard.</param>
|
||||
public record CopyAuthURLRequested(string AuthURL) : UIMessageBase<CopyAuthURLRequested>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
/// <summary>
|
||||
/// When authenticators are proposed to copy the auth URL on the UI.
|
||||
/// </summary>
|
||||
/// <param name="AuthURL">URL to be copied to clipboard.</param>
|
||||
public record CopyAuthURLRequested(string AuthURL) : UIMessageBase<CopyAuthURLRequested>;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record DraftCreated(MailCopy DraftMail, MailAccount Account) : UIMessageBase<DraftCreated>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record DraftCreated(MailCopy DraftMail, MailAccount Account) : UIMessageBase<DraftCreated>;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record DraftFailed(MailCopy DraftMail, MailAccount Account) : UIMessageBase<DraftFailed>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record DraftFailed(MailCopy DraftMail, MailAccount Account) : UIMessageBase<DraftFailed>;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record DraftMapped(string LocalDraftCopyId, string RemoteDraftCopyId) : UIMessageBase<DraftMapped>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record DraftMapped(string LocalDraftCopyId, string RemoteDraftCopyId) : UIMessageBase<DraftMapped>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record FolderRenamed(MailItemFolder MailItemFolder) : UIMessageBase<FolderRenamed>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record FolderRenamed(MailItemFolder MailItemFolder) : UIMessageBase<FolderRenamed>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Models.Folders;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record FolderSynchronizationEnabled(IMailItemFolder MailItemFolder) : UIMessageBase<FolderSynchronizationEnabled>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record FolderSynchronizationEnabled(IMailItemFolder MailItemFolder) : UIMessageBase<FolderSynchronizationEnabled>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record MailAddedMessage(MailCopy AddedMail) : UIMessageBase<MailAddedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record MailAddedMessage(MailCopy AddedMail) : UIMessageBase<MailAddedMessage>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record MailDownloadedMessage(MailCopy DownloadedMail) : UIMessageBase<MailDownloadedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record MailDownloadedMessage(MailCopy DownloadedMail) : UIMessageBase<MailDownloadedMessage>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record MailRemovedMessage(MailCopy RemovedMail) : UIMessageBase<MailRemovedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record MailRemovedMessage(MailCopy RemovedMail) : UIMessageBase<MailRemovedMessage>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record MailUpdatedMessage(MailCopy UpdatedMail) : UIMessageBase<MailUpdatedMessage>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record MailUpdatedMessage(MailCopy UpdatedMail) : UIMessageBase<MailUpdatedMessage>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record MergedInboxRenamed(Guid MergedInboxId, string NewName) : UIMessageBase<MergedInboxRenamed>;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record MergedInboxRenamed(Guid MergedInboxId, string NewName) : UIMessageBase<MergedInboxRenamed>;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record RefreshUnreadCountsMessage(Guid AccountId) : IUIMessage;
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record RefreshUnreadCountsMessage(Guid AccountId) : IUIMessage;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Messaging.UI
|
||||
{
|
||||
public record UIMessageBase<T> : IUIMessage { }
|
||||
}
|
||||
namespace Wino.Messaging.UI;
|
||||
|
||||
public record UIMessageBase<T> : IUIMessage { }
|
||||
|
||||
Reference in New Issue
Block a user