Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ServiceProviderModel.cs
2{
7 {
8 private readonly Waher.Networking.XMPP.Contracts.IServiceProvider serviceProvider;
9
15 {
16 this.serviceProvider = ServiceProvider;
17 }
18
23
27 public string Name => this.serviceProvider.Name;
28
32 public string Id => this.serviceProvider.Type + "|" + this.serviceProvider.Id;
33
37 public string IconUrl => this.serviceProvider.IconUrl;
38
42 public double IconScale
43 {
44 get
45 {
46 return System.Math.Min(150.0 / this.serviceProvider.IconHeight, 1.0);
47 }
48 }
49
53 public int IconWidth => (int)(this.serviceProvider.IconWidth * this.IconScale + 0.5);
54
58 public int IconHeight => (int)(this.serviceProvider.IconHeight * this.IconScale + 0.5);
59
60 }
61}
Interface for information about a service provider.
Definition: App.xaml.cs:4