forked from markus7017/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API changed location of event counts (openhab#11159)
Signed-off-by: Mark Hilbush <[email protected]> Signed-off-by: Thomas <[email protected]>
- Loading branch information
Showing
3 changed files
with
97 additions
and
15 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
...zoneminder/src/main/java/org/openhab/binding/zoneminder/internal/dto/EventSummaryDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Copyright (c) 2010-2021 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.zoneminder.internal.dto; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* The {@link EventSummaryDTO} contains event counts for the monitor. If this object | ||
* doesn't exist in the JSON response, the event counts will be in the monitor object. | ||
* | ||
* @author Mark Hilbush - Initial contribution | ||
*/ | ||
public class EventSummaryDTO { | ||
|
||
/** | ||
* Number of events in last hour | ||
*/ | ||
@SerializedName("HourEvents") | ||
public String hourEvents; | ||
|
||
/** | ||
* Number of events in last day | ||
*/ | ||
@SerializedName("DayEvents") | ||
public String dayEvents; | ||
|
||
/** | ||
* Number of events in last week | ||
*/ | ||
@SerializedName("WeekEvents") | ||
public String weekEvents; | ||
|
||
/** | ||
* Number of events in last month | ||
*/ | ||
@SerializedName("MonthEvents") | ||
public String monthEvents; | ||
|
||
/** | ||
* Total number of events | ||
*/ | ||
@SerializedName("TotalEvents") | ||
public String totalEvents; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters