forked from community/device-mgt-core
fixes https://roadmap.entgra.net/issues/11418geo-fence-issue-id-11418
parent
03d6a145d8
commit
0dc138dbb3
@ -0,0 +1,211 @@
|
||||
/*
|
||||
* Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package io.entgra.device.mgt.core.device.mgt.common.geo.service;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Holds Device updates on events related to fence crossings
|
||||
*/
|
||||
@ApiModel(value = "GeoEventDeviceUpdate", description = "This class holds Device updates on events related to fence crossings")
|
||||
public class GeoEventDeviceUpdate implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1448121761L;
|
||||
|
||||
@ApiModelProperty(name = "id", value = "ID of the event in the database.")
|
||||
private int id;
|
||||
|
||||
@ApiModelProperty(name = "deviceId", value = "IDs of the reporting device")
|
||||
private String deviceId;
|
||||
|
||||
@ApiModelProperty(name = "eventType", value = "Type of fence crossing event.")
|
||||
private String eventType;
|
||||
|
||||
@ApiModelProperty(name = "fenceIds", value = "IDs of the event in the database.")
|
||||
private int fenceId;
|
||||
|
||||
@ApiModelProperty(name = "lat", value = "latitude of the current position")
|
||||
private double lat;
|
||||
|
||||
@ApiModelProperty(name = "lon", value = "longitude of the current position")
|
||||
private double lon;
|
||||
@ApiModelProperty(name = "street1", value = "street1 of the current position")
|
||||
private String street1;
|
||||
@ApiModelProperty(name = "street2", value = "street2 of the current position")
|
||||
private String street2;
|
||||
@ApiModelProperty(name = "city", value = "city of the current position")
|
||||
private String city;
|
||||
@ApiModelProperty(name = "zip", value = "zip of the current position")
|
||||
private String zip;
|
||||
@ApiModelProperty(name = "state", value = "state of the current position")
|
||||
private String state;
|
||||
@ApiModelProperty(name = "country", value = "country of the current position")
|
||||
private String country;
|
||||
@ApiModelProperty(name = "altitude", value = "altitude of the current position")
|
||||
private double altitude;
|
||||
@ApiModelProperty(name = "speed", value = "speed of the current position")
|
||||
private float speed;
|
||||
@ApiModelProperty(name = "bearing", value = "bearing of the current position")
|
||||
private float bearing;
|
||||
@ApiModelProperty(name = "distance", value = "distance of the current position")
|
||||
private float distance;
|
||||
@ApiModelProperty(name = "updatedTimestamp", value = "updatedTimestamp of the current position")
|
||||
private long updatedTimestamp;
|
||||
|
||||
public long getUpdatedTimestamp() {
|
||||
return updatedTimestamp;
|
||||
}
|
||||
|
||||
public void setUpdatedTimestamp(long updatedTimestamp) {
|
||||
this.updatedTimestamp = updatedTimestamp;
|
||||
}
|
||||
|
||||
public String getStreet1() {
|
||||
return street1;
|
||||
}
|
||||
|
||||
public void setStreet1(String street1) {
|
||||
this.street1 = street1;
|
||||
}
|
||||
|
||||
public String getStreet2() {
|
||||
return street2;
|
||||
}
|
||||
|
||||
public void setStreet2(String street2) {
|
||||
this.street2 = street2;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getZip() {
|
||||
return zip;
|
||||
}
|
||||
|
||||
public void setZip(String zip) {
|
||||
this.zip = zip;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public double getAltitude() {
|
||||
return altitude;
|
||||
}
|
||||
|
||||
public void setAltitude(double altitude) {
|
||||
this.altitude = altitude;
|
||||
}
|
||||
|
||||
public float getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public void setSpeed(float speed) {
|
||||
this.speed = speed;
|
||||
}
|
||||
|
||||
public float getBearing() {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
public void setBearing(float bearing) {
|
||||
this.bearing = bearing;
|
||||
}
|
||||
|
||||
public float getDistance() {
|
||||
return distance;
|
||||
}
|
||||
|
||||
public void setDistance(float distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getEventType() {
|
||||
return eventType;
|
||||
}
|
||||
|
||||
public void setEventType(String eventType) {
|
||||
this.eventType = eventType;
|
||||
}
|
||||
|
||||
public int getFenceId() {
|
||||
return fenceId;
|
||||
}
|
||||
|
||||
public void setFenceId(int fenceId) {
|
||||
this.fenceId = fenceId;
|
||||
}
|
||||
|
||||
public double getLat() {
|
||||
return lat;
|
||||
}
|
||||
|
||||
public void setLat(double lat) {
|
||||
this.lat = lat;
|
||||
}
|
||||
|
||||
public double getLon() {
|
||||
return lon;
|
||||
}
|
||||
|
||||
public void setLon(double lon) {
|
||||
this.lon = lon;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue