19        private readonly 
string friendlyName = FriendlyName;
 
   26        public decimal Balance => this.accountEvent.Balance;
 
   31        public decimal Reserved => this.accountEvent.Reserved;
 
   36        public decimal Change => this.accountEvent.Change;
 
   41        public DateTime Timestamp => this.accountEvent.Timestamp;
 
   46        public Guid TransactionId => this.accountEvent.TransactionId;
 
   49        public string UniqueName => this.TransactionId.ToString();
 
   54        public string Remote => this.accountEvent.Remote;
 
   59        public string FriendlyName => this.friendlyName;
 
   64        public string Message => this.accountEvent.Message;
 
   69        public bool HasMessage => !
string.IsNullOrEmpty(this.accountEvent.Message);
 
   74        public string? Currency => this.viewModel.Currency;
 
   88                if (!this.@
new.HasValue)
 
   90                    this.@
new = this.notificationEvents.Length > 0;
 
   95                        this.notificationEvents = [];
 
  101                return this.@
new.Value;
 
  108        public Color? TextColor
 
  112                if (this.Change >= 0)
 
  122        public string TimestampStr
 
  126                DateTime Today = DateTime.Today;
 
  128                if (this.Timestamp.Date == Today)
 
  129                    return this.Timestamp.ToLongTimeString();
 
  130                else if (this.Timestamp.Date == Today.AddDays(-1))
 
  131                    return ServiceRef.
Localizer[nameof(AppResources.Yesterday)] + 
", " + this.Timestamp.ToLongTimeString();
 
  133                    return this.Timestamp.ToShortDateString() + 
", " + this.Timestamp.ToLongTimeString();
 
  140        public string ReservedSuffix
 
  144                if (this.accountEvent.Reserved == 0)
 
Base class that references services in the app.
 
static INotificationService NotificationService
Service for managing notifications for the user.
 
static IStringLocalizer Localizer
Localization service
 
Static class that gives access to app-specific themed colors
 
static Color PrimaryForeground
Primary foreground color.
 
static Color Alert
Alert color.
 
Converts values to strings.
 
static string ToString(decimal Money)
Converts a monetary value to a string, removing any round-off errors.
 
Task DeleteEvents(NotificationEventType Type, CaseInsensitiveString Category)
Deletes events for a given button and category.
 
abstract class NotificationEvent()
Abstract base class of notification events.
 
partial class MyWalletViewModel(WalletNavigationArgs? Args)
The view model to bind to for when displaying the wallet.