8using Microsoft.Maui.Controls.Shapes;
35 this.TokenId = e.Token.TokenId;
36 this.FriendlyName = e.Token.FriendlyName;
37 this.TokenCategory = e.Token.Category;
39 this.Category = e.Token.TokenId;
41 StringBuilder Xml =
new();
42 e.Token.Serialize(Xml);
43 this.TokenXml = Xml.ToString();
53 this.TokenId = e.TokenId;
56 this.Category = e.TokenId;
87 if (this.token is
null && !
string.IsNullOrEmpty(this.
TokenXml))
89 XmlDocument Doc =
new()
91 PreserveWhitespace =
true
107 this.TokenXml =
null;
110 StringBuilder Xml =
new();
112 this.TokenXml = Xml.ToString();
136 return Task.FromResult(this.
TokenId ??
string.Empty);
142 public override async Task
Open()
144 if (
string.IsNullOrEmpty(this.
TokenId))
Abstract base class for token notification events.
string? TokenCategory
Category of token
TokenNotificationEvent(TokenEventArgs e)
Abstract base class for token notification events.
string? TokenXml
XML of token.
override async Task Open()
Opens the event.
override Task< Geometry > GetCategoryIcon()
Gets an icon for the category of event.
TokenNotificationEvent(StateMachineEventArgs e)
Abstract base class for token notification events.
TokenNotificationEvent()
Abstract base class for token notification events.
string? FriendlyName
Friendly Name of token
override Task< string > GetDescription()
Gets a descriptive text for the event.
Abstract base class for wallet notification events.
Base class that references services in the app.
static IUiService UiService
Service serializing and managing UI-related tasks.
static INotificationService NotificationService
Service for managing notifications for the user.
static IXmppService XmppService
The XMPP service for XMPP communication.
Static class containing SVG Paths for symbols used in the app.
static readonly Geometry TokenIconPath
Token symbol for QR codes
Encapsulates a Token object.
Holds navigation parameters specific to a token.
A page that allows the user to view information about a token.
static bool TryParse(XmlElement Xml, out Token Token)
Serializes the Token, in normalized form.
void Serialize(StringBuilder Xml)
Serializes the Token, in normalized form.
Task GoToAsync(string Route, BackMethod BackMethod=BackMethod.Inherited, string? UniqueId=null)
Navigates the AppShell to the specified route, with page arguments to match.
abstract class NotificationEvent()
Abstract base class of notification events.
NotificationEventType
Button on which event is to be displayed.
BackMethod
Navigation Back Method