]> git.basschouten.com Git - openhab-addons.git/blob
02a9ef0f9572f0850363a080b0de95846803f63b
[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.pushover.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.config.core.ParameterOption;
17
18 /**
19  * The {@link Sound} is the Java class used to map the JSON response to a Pushover API request..
20  *
21  * @author Christoph Weitkamp - Initial contribution
22  */
23 @NonNullByDefault
24 public class Sound {
25     public String sound;
26     public String label;
27
28     public Sound(String sound, String label) {
29         this.sound = sound;
30         this.label = label;
31     }
32
33     public ParameterOption getAsParameterOption() {
34         return new ParameterOption(sound, label);
35     }
36 }