Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalIdentityLink.cs
4
6{
11 {
16 {
17 }
18
24 public Grade Supports(Uri Link)
25 {
26 return string.Equals(Link.Scheme, Constants.UriSchemes.IotId, StringComparison.OrdinalIgnoreCase) ? Grade.Ok : Grade.NotAtAll;
27 }
28
30 public async Task<bool> TryOpenLink(Uri Link, bool ShowErrorIfUnable)
31 {
32 string? LegalId = Constants.UriSchemes.RemoveScheme(Link.OriginalString.Replace("%40", "@")); // Android has problems with URIs containg @
33 if (LegalId is null)
34 return false;
35
36 await ServiceRef.ContractOrchestratorService.OpenLegalIdentity(LegalId,
38
39 return true;
40 }
41 }
42}
static ? string RemoveScheme(string Url)
Removes the URI Schema from an URL.
Definition: Constants.cs:272
const string IotId
The IoT ID URI Scheme (iotid)
Definition: Constants.cs:153
A set of never changing property constants and helpful values.
Definition: Constants.cs:24
A strongly-typed resource class, for looking up localized strings, etc.
static string ScannedQrCode
Looks up a localized string similar to Scanned QR Code.
Base class that references services in the app.
Definition: ServiceRef.cs:43
static IContractOrchestratorService ContractOrchestratorService
Contract orchestrator service.
Definition: ServiceRef.cs:238
static IReportingStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:370
Grade
Grade enumeration
Definition: Grade.cs:7