Improved json support

This commit is contained in:
TheXamlGuy
2024-07-15 21:14:30 +01:00
parent 46d8ea6d6c
commit f38a3d6aad
34 changed files with 143 additions and 130 deletions
+1 -3
View File
@@ -3,8 +3,6 @@ using Toolkit.Foundation;
namespace Wallet;
public record Comment<TValue>(TValue Value);
public partial class CreateCommentEntryViewModel(IServiceProvider provider,
IServiceFactory factory,
IMediator mediator,
@@ -16,7 +14,7 @@ public partial class CreateCommentEntryViewModel(IServiceProvider provider,
[RelayCommand]
private void Invoke()
{
Publisher.Publish(Create.As(new Comment<string?>(Value)));
Publisher.Publish(Create.As(new Comment { Text = Value, DateTime = DateTimeOffset.Now }));
Value = null;
}
}