]> git.basschouten.com Git - openhab-addons.git/blob
1c3bbb54ae8b46a59c28e7a2acb9e3a5babb6a89
[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.config;
14
15 import static org.openhab.binding.pushover.internal.PushoverBindingConstants.*;
16
17 import java.util.List;
18
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.eclipse.jdt.annotation.Nullable;
21 import org.openhab.binding.pushover.internal.dto.Sound;
22
23 /**
24  * The {@link PushoverAccountConfiguration} class contains fields mapping thing configuration parameters.
25  *
26  * @author Christoph Weitkamp - Initial contribution
27  */
28 @NonNullByDefault
29 public class PushoverAccountConfiguration {
30     public static final Sound SOUND_DEFAULT = new Sound("default", "Default");
31     public static final List<Sound> DEFAULT_SOUNDS = List.of(new Sound("alien", "Alien Alarm (long)"),
32             new Sound("bike", "Bike"), new Sound("bugle", "Bugle"), new Sound("cashregister", "Cash Register"),
33             new Sound("classical", "Classical"), new Sound("climb", "Climb (long)"), new Sound("cosmic", "Cosmic"),
34             new Sound("falling", "Falling"), new Sound("gamelan", "Gamelan"), new Sound("incoming", "Incoming"),
35             new Sound("intermission", "Intermission"), new Sound("magic", "Magic"),
36             new Sound("mechanical", "Mechanical"), new Sound("none", "None (silent)"),
37             new Sound("persistent", "Persistent (long)"), new Sound("pianobar", "Piano Bar"),
38             new Sound("pushover", "Pushover (default)"), new Sound("echo", "Pushover Echo (long)"),
39             new Sound("siren", "Siren"), new Sound("spacealarm", "Space Alarm"), new Sound("tugboat", "Tug Boat"),
40             new Sound("updown", "Up Down (long)"), new Sound("vibrate", "Vibrate Only"), SOUND_DEFAULT);
41
42     public @Nullable String apikey;
43     public @Nullable String user;
44     public String title = DEFAULT_TITLE;
45     public String format = "none";
46     public String sound = DEFAULT_SOUND;
47     public int retry = 300;
48     public int expire = 3600;
49     public int timeout = 10;
50 }