]> git.basschouten.com Git - openhab-addons.git/blob
e2994db73a29f903ee20b6831cce67d2c2e1b635
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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 org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * In order to add a {@link Sink} to the pulseaudio server you have to
20  * load a corresponding module. Current Module objects are needed to
21  * be able to remove sinks from the pulseaudio server.
22  *
23  * @author Tobias Bräutigam - Initial contribution
24  */
25 @NonNullByDefault
26 public class Module extends AbstractDeviceConfig {
27
28     private @Nullable String argument;
29
30     public Module(int id, String name) {
31         super(id, name);
32     }
33
34     public @Nullable String getArgument() {
35         return argument;
36     }
37
38     public void setArgument(String argument) {
39         this.argument = argument;
40     }
41
42     @Override
43     public String toString() {
44         return name;
45     }
46 }