internal UpnpBaseDevice(IUpnpTypeMatchable deviceNt, string friendlyName, UpnpManufacturer manufacturer, UpnpModel model) { this.DeviceNt = deviceNt; this.FriendlyName = friendlyName; this.Manufacturer = manufacturer; this.Model = model; }
public UpnpService(IUpnpTypeMatchable serviceNt, string sspDUrl, string controlUrl, string eventSubUrl) { this.ServiceNt = serviceNt; this.SspDUrl = sspDUrl; this.ControlUrl = controlUrl; this.EventSubUrl = eventSubUrl; }
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);
public static UpnpNt GetUpnpRoot(this IUpnpTypeMatchable item) => item.GetByNtType(UpnpNt.NtType.RootDevice);
public static UpnpNt GetUpnpId(this IUpnpTypeMatchable item) => item.GetByNtType(UpnpNt.NtType.Guid);