]> git.basschouten.com Git - openhab-addons.git/blob
1153b97545c8e53aa0d347e2162bebc79a203243
[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.nikohomecontrol.internal.protocol.nhc2;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * {@link NhcMessage2} represents a Niko Home Control II message. It is used when sending messages to the Connected
22  * Controller or when parsing the message response json.
23  *
24  * @author Mark Herwege - Initial Contribution
25  */
26 @NonNullByDefault
27 class NhcMessage2 {
28     static class NhcMessageParam {
29         @Nullable
30         List<NhcSystemInfo2> systemInfo;
31         @Nullable
32         List<NhcService2> services;
33         @Nullable
34         List<NhcDevice2> devices;
35         @Nullable
36         List<NhcNotification2> notifications;
37         @Nullable
38         List<NhcTimeInfo2> timeInfo;
39     }
40
41     @Nullable
42     String method;
43     String errCode = "";
44     String errMessage = "";
45     @Nullable
46     List<NhcMessageParam> params;
47 }