]> git.basschouten.com Git - openhab-addons.git/blob
8d160a3a1b0d7c7a49344d0a9c684751aac66c76
[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.innogysmarthome.internal.client;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Holds necessary constants for the innogy API.
19  *
20  * @author Oliver Kuhl - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public final class Constants {
25
26     // API URLs
27     public static final String API_HOST = "api.services-smarthome.de";
28     public static final String AUTH_HOST = "auth.services-smarthome.de";
29     public static final String API_VERSION = "1.1";
30     public static final String API_URL_BASE = "https://" + API_HOST + "/API/" + API_VERSION;
31     public static final String API_URL_TOKEN = "https://" + AUTH_HOST + "/AUTH/token";
32
33     public static final String API_URL_STATUS = API_URL_BASE + "/status";
34
35     public static final String API_URL_DEVICE = API_URL_BASE + "/device";
36     public static final String API_URL_DEVICE_ID = API_URL_DEVICE + "/{id}";
37     public static final String API_URL_DEVICE_ID_STATE = API_URL_DEVICE_ID + "/state";
38     public static final String API_URL_DEVICE_CAPABILITIES = API_URL_DEVICE + "/{id}/capabilities";
39     public static final String API_URL_DEVICE_STATES = API_URL_DEVICE + "/states";
40
41     public static final String API_URL_LOCATION = API_URL_BASE + "/location";
42
43     public static final String API_URL_CAPABILITY = API_URL_BASE + "/capability";
44     public static final String API_URL_CAPABILITY_STATES = API_URL_CAPABILITY + "/states";
45
46     public static final String API_URL_MESSAGE = API_URL_BASE + "/message";
47
48     public static final String API_URL_ACTION = API_URL_BASE + "/action";
49
50     private Constants() {
51         // Constants class
52     }
53 }