write thumbnail to wallet store
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
namespace Toolkit.Foundation;
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record Activated
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public interface IImageProvider
|
||||
public interface IImageReader
|
||||
{
|
||||
Task<IImageDescriptor> Get(string filePath,
|
||||
Task<IImageDescriptor> Get(Stream stream,
|
||||
int width,
|
||||
int height,
|
||||
bool maintainAspectRatio = false);
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public interface IImageWriter
|
||||
{
|
||||
void Write(IImageDescriptor imageDescriptor, Stream stream);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public class Read
|
||||
{
|
||||
public static ReadEventArgs<TSender> As<TSender>(TSender sender) =>
|
||||
new(sender);
|
||||
|
||||
public static ReadEventArgs<TSender> As<TSender>() where TSender : new() =>
|
||||
new(new TSender());
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record ReadEventArgs<TSender>(TSender? Sender = default);
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
public class Request
|
||||
{
|
||||
public static RequestEventArgs<TValue> As<TValue>(TValue value) =>
|
||||
new(value);
|
||||
public static RequestEventArgs<TSender> As<TSender>(TSender sender) =>
|
||||
new(sender);
|
||||
|
||||
public static RequestEventArgs<TValue> As<TValue>() where TValue : new() =>
|
||||
new(new TValue());
|
||||
public static RequestEventArgs<TSender> As<TSender>() where TSender : new() =>
|
||||
new(new TSender());
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record RequestEventArgs<TSender>(TSender? Sender = default);
|
||||
public record RequestEventArgs<TSender>(TSender? Sender = default);
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public class Write
|
||||
{
|
||||
public static WriteEventArgs<TSender> As<TSender>(TSender sender) =>
|
||||
new(sender);
|
||||
|
||||
public static WriteEventArgs<TSender> As<TSender>() where TSender : new() =>
|
||||
new(new TSender());
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record WriteEventArgs<TSender>(TSender? Sender = default);
|
||||
Reference in New Issue
Block a user