code sweep
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
public interface IEventParameter
|
||||
{
|
||||
public interface IEventParameter
|
||||
{
|
||||
List<object> GetValues(EventArgs args);
|
||||
}
|
||||
List<object> GetValues(EventArgs args);
|
||||
}
|
||||
@@ -1,13 +1,11 @@
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public interface INavigationConfirmation
|
||||
{
|
||||
ValueTask<bool> CanConfirm();
|
||||
}
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public interface INavigated
|
||||
{
|
||||
ValueTask Navigated();
|
||||
}
|
||||
public interface INavigationConfirmation
|
||||
{
|
||||
ValueTask<bool> CanConfirm();
|
||||
}
|
||||
|
||||
public interface INavigated
|
||||
{
|
||||
ValueTask Navigated();
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public interface INavigationRouteDescriptor
|
||||
{
|
||||
object Route { get; }
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
string? Name { get; }
|
||||
}
|
||||
public interface INavigationRouteDescriptor
|
||||
{
|
||||
object Route { get; }
|
||||
|
||||
string? Name { get; }
|
||||
}
|
||||
@@ -1,8 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
public interface INavigationRouteDescriptorCollection : IList<INavigationRouteDescriptor>
|
||||
{
|
||||
public interface INavigationRouteDescriptorCollection : IList<INavigationRouteDescriptor>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public interface IParameter
|
||||
{
|
||||
string? Key { get; }
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
KeyValuePair<string, object>? GetValue(object target);
|
||||
}
|
||||
public interface IParameter
|
||||
{
|
||||
string? Key { get; }
|
||||
|
||||
KeyValuePair<string, object>? GetValue(object target);
|
||||
}
|
||||
@@ -1,29 +1,28 @@
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
public record Navigate : IRequest
|
||||
{
|
||||
public record Navigate : IRequest
|
||||
public Navigate(string name, params object?[] parameters)
|
||||
{
|
||||
public Navigate(string name, params object?[] parameters)
|
||||
{
|
||||
Name = name;
|
||||
Parameters = parameters;
|
||||
}
|
||||
|
||||
public Navigate(Type type, params object?[] parameters)
|
||||
{
|
||||
Type = type;
|
||||
Parameters = parameters;
|
||||
}
|
||||
|
||||
public Type? Type { get; }
|
||||
|
||||
public object? Route { get; init; }
|
||||
|
||||
public string? Name { get; }
|
||||
|
||||
public string? FriendlyName { get; init; }
|
||||
|
||||
public object?[] Parameters { get; }
|
||||
Name = name;
|
||||
Parameters = parameters;
|
||||
}
|
||||
|
||||
public Navigate(Type type, params object?[] parameters)
|
||||
{
|
||||
Type = type;
|
||||
Parameters = parameters;
|
||||
}
|
||||
|
||||
public Type? Type { get; }
|
||||
|
||||
public object? Route { get; init; }
|
||||
|
||||
public string? Name { get; }
|
||||
|
||||
public string? FriendlyName { get; init; }
|
||||
|
||||
public object?[] Parameters { get; }
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public record NavigateBack(object Route) : IRequest;
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
}
|
||||
public record NavigateBack(object Route) : IRequest;
|
||||
@@ -1,6 +1,5 @@
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public record NavigationRoute(string Name, object Route) : IRequest;
|
||||
}
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
public record NavigationRoute(string Name, object Route) : IRequest;
|
||||
@@ -1,15 +1,14 @@
|
||||
namespace Toolkit.Foundation
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
public record NavigationRouteDescriptor : INavigationRouteDescriptor
|
||||
{
|
||||
public record NavigationRouteDescriptor : INavigationRouteDescriptor
|
||||
public NavigationRouteDescriptor(string name, object route)
|
||||
{
|
||||
public NavigationRouteDescriptor(string name, object route)
|
||||
{
|
||||
Name = name;
|
||||
Route = route;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public object Route { get; }
|
||||
Name = name;
|
||||
Route = route;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public object Route { get; }
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace Toolkit.Foundation
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
public class NavigationRouteDescriptorCollection : List<INavigationRouteDescriptor>, INavigationRouteDescriptorCollection
|
||||
{
|
||||
public class NavigationRouteDescriptorCollection : List<INavigationRouteDescriptor>, INavigationRouteDescriptorCollection
|
||||
public NavigationRouteDescriptorCollection(IEnumerable<INavigationRouteDescriptor> collection) : base(collection)
|
||||
{
|
||||
public NavigationRouteDescriptorCollection(IEnumerable<INavigationRouteDescriptor> collection) : base(collection)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user