1using System.Globalization;
2using CommunityToolkit.Mvvm.ComponentModel;
3using CommunityToolkit.Mvvm.Input;
30 await base.OnInitializeAsync();
32 this.AssignProperties();
41 private string? provider;
47 private string? timestamp;
53 private string? signature;
57 private void AssignProperties()
59 if (this.contract is not
null)
61 this.Provider = this.contract.Provider;
62 this.Timestamp = this.contract.ServerSignature.Timestamp.ToString(CultureInfo.CurrentCulture);
63 this.Signature = Convert.ToBase64String(this.contract.ServerSignature.DigitalSignature);
77 private static async Task Copy(
object Item)
81 if (Item is
string Label)
82 await Clipboard.SetTextAsync(Label);
84 await Clipboard.SetTextAsync(Item?.ToString() ??
string.Empty);
A set of never changing property constants and helpful values.
const string NotAvailableValue
A generic "no value available" string.
A strongly-typed resource class, for looking up localized strings, etc.
static string TagValueCopiedToClipboard
Looks up a localized string similar to Tag value copied to clipboard.
static string SuccessTitle
Looks up a localized string similar to Success.
Base class that references services in the app.
static ILogService LogService
Log service.
static IUiService UiService
Service serializing and managing UI-related tasks.
static IReportingStringLocalizer Localizer
Localization service
A base class for all view models, inheriting from the BindableObject. NOTE: using this class requir...
Holds navigation parameters specific to views displaying a server signature.
Contract? Contract
The contract to display.
The view model to bind to for when displaying server signatures.
ServerSignatureViewModel(ServerSignatureNavigationArgs? Args)
Creates an instance of the ServerSignatureViewModel class.
override async Task OnInitializeAsync()
Method called when view is initialized for the first time. Use this method to implement registration ...
Contains the definition of a contract