]> git.basschouten.com Git - openhab-addons.git/blob
d5abb2b884e5d26e7ac9608abcf7ac55a63884f2
[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.ipcamera.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link ReolinkState} class holds the state and GSON parsed replies for a single Reolink Camera.
19  *
20  * @author Matthew Skinner - Initial contribution
21  */
22 @NonNullByDefault
23 public class ReolinkState {
24     public class GetAiStateResponse {
25         public class Value {
26             public class Alarm {
27                 public int alarm_state = 0;
28                 public int support = 0;
29             }
30
31             public int channel = 0;
32             public Alarm dog_cat = new Alarm();
33             public Alarm face = new Alarm();
34             public Alarm people = new Alarm();
35             public Alarm vehicle = new Alarm();
36         }
37
38         public String cmd = "";
39         public int code = 0;
40         public Value value = new Value();
41     }
42 }