]> git.basschouten.com Git - openhab-addons.git/blob
b6186f33ac39da7d796b365ba2f1131490c68fef
[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.zoneminder.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link RunStateDTO} contains a run state.
19  *
20  * @author Mark Hilbush - Initial contribution
21  */
22 public class RunStateDTO extends AbstractResponseDTO {
23
24     /**
25      * A run state
26      */
27     @SerializedName("State")
28     public RunState runState;
29
30     public class RunState {
31         /**
32          * ID of run state, typically "1", "2", etc.
33          */
34         @SerializedName("Id")
35         public String id;
36
37         /**
38          * Name of run state
39          */
40         @SerializedName("Name")
41         public String name;
42
43         /**
44          * Definition of the run state
45          */
46         @SerializedName("Definition")
47         public String definition;
48
49         /**
50          * "1" if run state is active; "0" if not active
51          */
52         @SerializedName("IsActive")
53         public String isActive;
54     }
55 }