org.fourthline.cling.model.types.UnsignedIntegerTwoBytes Java Examples
The following examples show how to use
org.fourthline.cling.model.types.UnsignedIntegerTwoBytes.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PortMapping.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public PortMapping(int port, String internalClient, Protocol protocol) { this( true, new UnsignedIntegerFourBytes(0), null, new UnsignedIntegerTwoBytes(port), new UnsignedIntegerTwoBytes(port), internalClient, protocol, null ); }
Example #2
Source File: AddPortMappingAction.java From portmapper with GNU General Public License v3.0 | 5 votes |
@Override public Map<String, Object> getArgumentValues() { final HashMap<String, Object> args = new HashMap<>(); args.put("NewExternalPort", new UnsignedIntegerTwoBytes(portMapping.getExternalPort())); args.put("NewProtocol", portMapping.getProtocol()); args.put("NewInternalClient", portMapping.getInternalClient()); args.put("NewInternalPort", new UnsignedIntegerTwoBytes(portMapping.getInternalPort())); args.put("NewLeaseDuration", new UnsignedIntegerFourBytes(portMapping.getLeaseDuration())); args.put("NewEnabled", portMapping.isEnabled()); args.put("NewRemoteHost", portMapping.getRemoteHost()); args.put("NewPortMappingDescription", portMapping.getDescription()); return args; }
Example #3
Source File: DeletePortMappingAction.java From portmapper with GNU General Public License v3.0 | 5 votes |
@Override public Map<String, Object> getArgumentValues() { final HashMap<String, Object> args = new HashMap<>(); args.put("NewExternalPort", new UnsignedIntegerTwoBytes(externalPort)); args.put("NewProtocol", protocol); args.put("NewRemoteHost", remoteHost); return args; }
Example #4
Source File: AudioRenderingControl.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@Override public void setVolume(UnsignedIntegerFourBytes instanceId, String channelName, UnsignedIntegerTwoBytes desiredVolume) throws RenderingControlException { checkChannel(channelName); double vol = desiredVolume.getValue() / 100d; log.fine("Setting backend volume to: " + vol); getInstance(instanceId).setVolume(vol); }
Example #5
Source File: AudioRenderingControl.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@Override public UnsignedIntegerTwoBytes getVolume(UnsignedIntegerFourBytes instanceId, String channelName) throws RenderingControlException { checkChannel(channelName); int vol = (int) (getInstance(instanceId).getVolume() * 100); log.fine("Getting backend volume: " + vol); return new UnsignedIntegerTwoBytes(vol); }
Example #6
Source File: EventedValueChannelVolume.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@Override public Map.Entry<String, String>[] getAttributes() { return new Map.Entry[]{ new AbstractMap.SimpleEntry<String, String>( "val", new UnsignedIntegerTwoBytesDatatype().getString( new UnsignedIntegerTwoBytes(getValue().getVolume()) ) ), new AbstractMap.SimpleEntry<String, String>( "channel", getValue().getChannel().name() ) }; }
Example #7
Source File: EventedValueChannelVolumeDB.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@Override public Map.Entry<String, String>[] getAttributes() { return new Map.Entry[]{ new AbstractMap.SimpleEntry<String, String>( "val", new UnsignedIntegerTwoBytesDatatype().getString( new UnsignedIntegerTwoBytes(getValue().getVolumeDB()) ) ), new AbstractMap.SimpleEntry<String, String>( "channel", getValue().getChannel().name() ) }; }
Example #8
Source File: PortMapping.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public PortMapping(boolean enabled, UnsignedIntegerFourBytes leaseDurationSeconds, String remoteHost, UnsignedIntegerTwoBytes externalPort, UnsignedIntegerTwoBytes internalPort, String internalClient, Protocol protocol, String description) { this.enabled = enabled; this.leaseDurationSeconds = leaseDurationSeconds; this.remoteHost = remoteHost; this.externalPort = externalPort; this.internalPort = internalPort; this.internalClient = internalClient; this.protocol = protocol; this.description = description; }
Example #9
Source File: PortMapping.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public PortMapping(String remoteHost, UnsignedIntegerTwoBytes externalPort, Protocol protocol) { this( true, new UnsignedIntegerFourBytes(0), remoteHost, externalPort, null, null, protocol, null ); }
Example #10
Source File: PortMapping.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public PortMapping(int port, String internalClient, Protocol protocol, String description) { this( true, new UnsignedIntegerFourBytes(0), null, new UnsignedIntegerTwoBytes(port), new UnsignedIntegerTwoBytes(port), internalClient, protocol, description ); }
Example #11
Source File: PortMapping.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public PortMapping(Map<String, ActionArgumentValue<Service>> map) { this( (Boolean) map.get("NewEnabled").getValue(), (UnsignedIntegerFourBytes) map.get("NewLeaseDuration").getValue(), (String) map.get("NewRemoteHost").getValue(), (UnsignedIntegerTwoBytes) map.get("NewExternalPort").getValue(), (UnsignedIntegerTwoBytes) map.get("NewInternalPort").getValue(), (String) map.get("NewInternalClient").getValue(), Protocol.valueOf(map.get("NewProtocol").toString()), (String) map.get("NewPortMappingDescription").getValue() ); }
Example #12
Source File: PortMapping.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public PortMapping(Map<String, ActionArgumentValue<Service>> map) { this( (Boolean) map.get("NewEnabled").getValue(), (UnsignedIntegerFourBytes) map.get("NewLeaseDuration").getValue(), (String) map.get("NewRemoteHost").getValue(), (UnsignedIntegerTwoBytes) map.get("NewExternalPort").getValue(), (UnsignedIntegerTwoBytes) map.get("NewInternalPort").getValue(), (String) map.get("NewInternalClient").getValue(), Protocol.valueOf(map.get("NewProtocol").toString()), (String) map.get("NewPortMappingDescription").getValue() ); }
Example #13
Source File: AudioRenderingControl.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@Override public void setVolume(UnsignedIntegerFourBytes instanceId, String channelName, UnsignedIntegerTwoBytes desiredVolume) throws RenderingControlException { checkChannel(channelName); double vol = desiredVolume.getValue() / 100d; log.fine("Setting backend volume to: " + vol); getInstance(instanceId).setVolume(vol); }
Example #14
Source File: AudioRenderingControl.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@Override public UnsignedIntegerTwoBytes getVolume(UnsignedIntegerFourBytes instanceId, String channelName) throws RenderingControlException { checkChannel(channelName); int vol = (int) (getInstance(instanceId).getVolume() * 100); log.fine("Getting backend volume: " + vol); return new UnsignedIntegerTwoBytes(vol); }
Example #15
Source File: EventedValueChannelVolume.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@Override public Map.Entry<String, String>[] getAttributes() { return new Map.Entry[]{ new AbstractMap.SimpleEntry<String, String>( "val", new UnsignedIntegerTwoBytesDatatype().getString( new UnsignedIntegerTwoBytes(getValue().getVolume()) ) ), new AbstractMap.SimpleEntry<String, String>( "channel", getValue().getChannel().name() ) }; }
Example #16
Source File: EventedValueChannelVolumeDB.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@Override public Map.Entry<String, String>[] getAttributes() { return new Map.Entry[]{ new AbstractMap.SimpleEntry<String, String>( "val", new UnsignedIntegerTwoBytesDatatype().getString( new UnsignedIntegerTwoBytes(getValue().getVolumeDB()) ) ), new AbstractMap.SimpleEntry<String, String>( "channel", getValue().getChannel().name() ) }; }
Example #17
Source File: PortMapping.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public PortMapping(int port, String internalClient, Protocol protocol) { this( true, new UnsignedIntegerFourBytes(0), null, new UnsignedIntegerTwoBytes(port), new UnsignedIntegerTwoBytes(port), internalClient, protocol, null ); }
Example #18
Source File: PortMapping.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public PortMapping(int port, String internalClient, Protocol protocol, String description) { this( true, new UnsignedIntegerFourBytes(0), null, new UnsignedIntegerTwoBytes(port), new UnsignedIntegerTwoBytes(port), internalClient, protocol, description ); }
Example #19
Source File: PortMapping.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public PortMapping(String remoteHost, UnsignedIntegerTwoBytes externalPort, Protocol protocol) { this( true, new UnsignedIntegerFourBytes(0), remoteHost, externalPort, null, null, protocol, null ); }
Example #20
Source File: PortMapping.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public PortMapping(boolean enabled, UnsignedIntegerFourBytes leaseDurationSeconds, String remoteHost, UnsignedIntegerTwoBytes externalPort, UnsignedIntegerTwoBytes internalPort, String internalClient, Protocol protocol, String description) { this.enabled = enabled; this.leaseDurationSeconds = leaseDurationSeconds; this.remoteHost = remoteHost; this.externalPort = externalPort; this.internalPort = internalPort; this.internalClient = internalClient; this.protocol = protocol; this.description = description; }
Example #21
Source File: AbstractAudioRenderingControl.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
@UpnpAction public abstract void setVolume(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId, @UpnpInputArgument(name = "Channel") String channelName, @UpnpInputArgument(name = "DesiredVolume", stateVariable = "Volume") UnsignedIntegerTwoBytes desiredVolume) throws RenderingControlException;
Example #22
Source File: AbstractAudioRenderingControl.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
@UpnpAction(out = @UpnpOutputArgument(name = "CurrentVolume", stateVariable = "Volume")) public abstract UnsignedIntegerTwoBytes getVolume(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId, @UpnpInputArgument(name = "Channel") String channelName) throws RenderingControlException;
Example #23
Source File: SetVolume.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public SetVolume(UnsignedIntegerFourBytes instanceId, Service service, long newVolume) { super(new ActionInvocation(service.getAction("SetVolume"))); getActionInvocation().setInput("InstanceID", instanceId); getActionInvocation().setInput("Channel", Channel.Master.toString()); getActionInvocation().setInput("DesiredVolume", new UnsignedIntegerTwoBytes(newVolume)); }
Example #24
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Brightness(UnsignedIntegerTwoBytes value) { super(value); }
Example #25
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Contrast(UnsignedIntegerTwoBytes value) { super(value); }
Example #26
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Sharpness(UnsignedIntegerTwoBytes value) { super(value); }
Example #27
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public RedVideoGain(UnsignedIntegerTwoBytes value) { super(value); }
Example #28
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public BlueVideoGain(UnsignedIntegerTwoBytes value) { super(value); }
Example #29
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public GreenVideoGain(UnsignedIntegerTwoBytes value) { super(value); }
Example #30
Source File: RenderingControlVariable.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public RedVideoBlackLevel(UnsignedIntegerTwoBytes value) { super(value); }