]> git.basschouten.com Git - openhab-addons.git/blob
a85f6c8d88d6710dc256fadca782c1d35598641d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.pulseaudio.internal.items;
14
15 import java.util.Map;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * A SinkInput is an audio stream which can be routed to a {@link Sink}
22  *
23  * @author Tobias Bräutigam - Initial contribution
24  */
25 @NonNullByDefault
26 public class SinkInput extends AbstractAudioDeviceConfig {
27
28     @Nullable
29     private Sink sink;
30
31     public SinkInput(int id, String name, String description, Map<String, String> properties, @Nullable Module module) {
32         super(id, name, description, properties, module);
33     }
34
35     public @Nullable Sink getSink() {
36         return sink;
37     }
38
39     public void setSink(@Nullable Sink sink) {
40         this.sink = sink;
41     }
42 }