public OutgoingNotificationRequestDeviceType(Location location, LocalDevice device, NotificationSubtype type) { super(location, device, type); getHeaders().add(UpnpHeader.Type.NT, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }
public OutgoingSearchResponseDeviceType(IncomingDatagramMessage request, Location location, LocalDevice device) { super(request, location, device); getHeaders().add(UpnpHeader.Type.ST, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }
public void onLocalDeviceComplete(@Observes @Phase.Complete LocalDeviceDiscovery discovery) { LocalDevice device = discovery.getDevice(); String[] labels = new String[]{ device.getDetails().getFriendlyName(), device.getDisplayString(), "(LOCAL) " + device.getType().getDisplayString() }; final DeviceItem deviceItem = new DeviceItem(device, labels); Icon usableIcon = findUsableIcon(device); if (usableIcon != null) { ImageIcon imageIcon = new ImageIcon(usableIcon.getData()); deviceItem.setIcon(imageIcon); } else { deviceItem.setIcon(getUnknownDeviceIcon(deviceItem.getLabel()[0])); } SwingUtilities.invokeLater(new Runnable() { public void run() { view.addDeviceItem(deviceItem); } }); }
public OutgoingNotificationRequestDeviceType(Location location, LocalDevice device, NotificationSubtype type) { super(location, device, type); getHeaders().add(UpnpHeader.Type.NT, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }
public OutgoingSearchResponseDeviceType(IncomingDatagramMessage request, Location location, LocalDevice device) { super(request, location, device); getHeaders().add(UpnpHeader.Type.ST, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }
Log.i(TAG, "getType: " + device.getType().toString()); } catch (ValidationException ex) { throw new RuntimeException(ex);
public OutgoingSearchResponseDeviceType(IncomingDatagramMessage request, Location location, LocalDevice device) { super(request, location, device); getHeaders().add(UpnpHeader.Type.ST, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }
public OutgoingNotificationRequestDeviceType(Location location, LocalDevice device, NotificationSubtype type) { super(location, device, type); getHeaders().add(UpnpHeader.Type.NT, new DeviceTypeHeader(device.getType())); getHeaders().add(UpnpHeader.Type.USN, new DeviceUSNHeader(device.getIdentity().getUdn(), device.getType())); }