Beispiel #1
0
 internal UpnpBaseDevice(IUpnpTypeMatchable deviceNt, string friendlyName, UpnpManufacturer manufacturer, UpnpModel model)
 {
     this.DeviceNt     = deviceNt;
     this.FriendlyName = friendlyName;
     this.Manufacturer = manufacturer;
     this.Model        = model;
 }
Beispiel #2
0
 public UpnpService(IUpnpTypeMatchable serviceNt, string sspDUrl, string controlUrl, string eventSubUrl)
 {
     this.ServiceNt   = serviceNt;
     this.SspDUrl     = sspDUrl;
     this.ControlUrl  = controlUrl;
     this.EventSubUrl = eventSubUrl;
 }
Beispiel #3
0
 public static UpnpNt GetUpnpType(this IUpnpTypeMatchable item) =>
 item.GetByNtType(UpnpNt.NtType.DeviceType) ??
 item.GetByNtType(UpnpNt.NtType.ServiceType) ??
 item.GetByNtType(UpnpNt.NtType.DomainDeviceType) ??
 item.GetByNtType(UpnpNt.NtType.DomainServiceType) ??
 item.GetByNtType(UpnpNt.NtType.CustomType) ??
 item.GetByNtType(UpnpNt.NtType.DomainCustomType);
Beispiel #4
0
 public static UpnpNt GetUpnpRoot(this IUpnpTypeMatchable item) => item.GetByNtType(UpnpNt.NtType.RootDevice);
Beispiel #5
0
 public static UpnpNt GetUpnpId(this IUpnpTypeMatchable item) => item.GetByNtType(UpnpNt.NtType.Guid);