file scoped namespaces (#565)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user