]> git.basschouten.com Git - openhab-addons.git/blob
fe5b5dc058932ea46f7a6f2a13f267d0fb9832d3
[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 java.util.Date;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link EventDTO} represents a Zoneminder event.
21  *
22  * @author Mark Hilbush - Initial contribution
23  */
24 public class EventDTO {
25
26     /**
27      * Id of the event
28      */
29     @SerializedName("Id")
30     public String eventId;
31
32     /**
33      * Monitor Id associated with this event
34      */
35     @SerializedName("MonitorId")
36     public String monitorId;
37
38     /**
39      * Name of the event
40      */
41     @SerializedName("Name")
42     public String name;
43
44     /**
45      * Cause of the event
46      */
47     @SerializedName("Cause")
48     public String cause;
49
50     /**
51      * Date/time when the event started
52      */
53     @SerializedName("StartTime")
54     public Date startTime;
55
56     /**
57      * Date/time when the event ended
58      */
59     @SerializedName("EndTime")
60     public Date endTime;
61
62     /**
63      * Number of frames in the event
64      */
65     @SerializedName("Frames")
66     public Integer frames;
67
68     /**
69      * Number of alarm frames in the event
70      */
71     @SerializedName("AlarmFrames")
72     public Integer alarmFrames;
73
74     /**
75      * Length of the event in seconds
76      */
77     @SerializedName("Length")
78     public Double length;
79
80     /**
81      * Total score of the event
82      */
83     @SerializedName("TotScore")
84     public String totalScore;
85
86     /**
87      * Average score of the event
88      */
89     @SerializedName("AvgScore")
90     public String averageScore;
91
92     /**
93      * Maximum score of the event
94      */
95     @SerializedName("MaxScore")
96     public String maximumScore;
97
98     /**
99      * Event notes
100      */
101     @SerializedName("Notes")
102     public String notes;
103 }