27 public string Name => this.serviceProvider.Name;
32 public string Id => this.serviceProvider.Type +
"|" + this.serviceProvider.Id;
37 public string IconUrl => this.serviceProvider.IconUrl;
46 return System.Math.Min(150.0 / this.serviceProvider.IconHeight, 1.0);
53 public int IconWidth => (int)(this.serviceProvider.IconWidth *
this.IconScale + 0.5);
58 public int IconHeight => (int)(this.serviceProvider.IconHeight *
this.IconScale + 0.5);
View mode for service providers.
int IconHeight
Icon Height
string Id
ID of service provider.
double IconScale
Scaling factor to apply for Icon.
Waher.Networking.XMPP.Contracts.IServiceProvider ServiceProvider
Reference to service provider.
ServiceProviderModel(Waher.Networking.XMPP.Contracts.IServiceProvider ServiceProvider)
View mode for service providers.
string Name
Name of service provider.
Interface for information about a service provider.