2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.zoneminder.internal.dto;
15 import java.util.Date;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link EventDTO} represents a Zoneminder event.
22 * @author Mark Hilbush - Initial contribution
24 public class EventDTO {
30 public String eventId;
33 * Monitor Id associated with this event
35 @SerializedName("MonitorId")
36 public String monitorId;
41 @SerializedName("Name")
47 @SerializedName("Cause")
51 * Date/time when the event started
53 @SerializedName("StartTime")
54 public Date startTime;
57 * Date/time when the event ended
59 @SerializedName("EndTime")
63 * Number of frames in the event
65 @SerializedName("Frames")
66 public Integer frames;
69 * Number of alarm frames in the event
71 @SerializedName("AlarmFrames")
72 public Integer alarmFrames;
75 * Length of the event in seconds
77 @SerializedName("Length")
81 * Total score of the event
83 @SerializedName("TotScore")
84 public String totalScore;
87 * Average score of the event
89 @SerializedName("AvgScore")
90 public String averageScore;
93 * Maximum score of the event
95 @SerializedName("MaxScore")
96 public String maximumScore;
101 @SerializedName("Notes")