Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PaymentSuccessPopupViewModel.cs
1using System;
2using System.Threading.Tasks;
3using CommunityToolkit.Mvvm.ComponentModel;
4using CommunityToolkit.Mvvm.Input;
5using EDaler;
8
10{
11 public partial class PaymentSuccessPopupViewModel(EDaler.Transaction Transaction, string? Message) : BasePopupViewModel
12 {
13 [ObservableProperty]
14 private EDaler.Transaction transaction = Transaction;
15
16 private readonly string? message = Message;
17
18 public string Amount => this.Transaction.Amount + " " + this.Transaction.Currency;
19
20 public string Message
21 {
22 get => this.message ?? "";
23 }
24
25 #region Commands
26
27 [RelayCommand]
28 private async Task Close()
29 {
30 await ServiceRef.PopupService.PopAsync();
31 }
32
33 protected override Task OnPopAsync()
34 {
35 return base.OnPopAsync();
36 }
37
38 #endregion
39 }
40}
Represents a transaction in the eDaler network.
Definition: Transaction.cs:36
CaseInsensitiveString Currency
Currency
Definition: Transaction.cs:143
Base class that references services in the app.
Definition: ServiceRef.cs:43
static IPopupService PopupService
Popup service for presenting application popups.
Definition: ServiceRef.cs:142