forked from community/device-mgt-core
parent
c4d75234b0
commit
8d99123ec1
@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (C) 2018 - 2022 Entgra (Pvt) Ltd, Inc - All Rights Reserved.
|
||||
*
|
||||
* Unauthorised copying/redistribution of this file, via any medium is strictly prohibited.
|
||||
*
|
||||
* Licensed under the Entgra Commercial License, Version 1.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://entgra.io/licenses/entgra-commercial/1.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 org.wso2.carbon.device.mgt.core.traccar.common.beans;
|
||||
|
||||
public class TraccarDevice {
|
||||
private String deviceIdentifier;
|
||||
private String deviceName;
|
||||
private String uniqueId;
|
||||
private String status;
|
||||
private String disabled;
|
||||
private String lastUpdate;
|
||||
private String positionId;
|
||||
private String groupId;
|
||||
private String phone;
|
||||
private String model;
|
||||
private String contact;
|
||||
private String category;
|
||||
|
||||
public TraccarDevice(String deviceIdentifier){
|
||||
this.deviceIdentifier =deviceIdentifier;
|
||||
}
|
||||
|
||||
public TraccarDevice(String deviceName, String uniqueId, String status, String disabled, String lastUpdate,
|
||||
String positionId, String groupId, String phone, String model, String contact,
|
||||
String category){
|
||||
this.deviceName =deviceName;
|
||||
this.uniqueId=uniqueId;
|
||||
this.status=status;
|
||||
this.disabled =disabled;
|
||||
this.lastUpdate =lastUpdate;
|
||||
this.positionId =positionId;
|
||||
this.groupId =groupId;
|
||||
this.phone =phone;
|
||||
this.model =model;
|
||||
this.contact =contact;
|
||||
this.category =category;
|
||||
}
|
||||
|
||||
public TraccarDevice(){ }
|
||||
|
||||
public String getDeviceIdentifier() {return deviceIdentifier;}
|
||||
|
||||
public void setDeviceIdentifier(String deviceIdentifier) {this.deviceIdentifier = deviceIdentifier;}
|
||||
|
||||
public String getDeviceName() {return deviceName;}
|
||||
|
||||
public void setDeviceName(String deviceName) {this.deviceName = deviceName;}
|
||||
|
||||
public String getUniqueId() {return uniqueId;}
|
||||
|
||||
public void setUniqueId(String uniqueId) {this.uniqueId = uniqueId;}
|
||||
|
||||
public String getStatus() {return status;}
|
||||
|
||||
public void setStatus(String status) {this.status = status;}
|
||||
|
||||
public String getDisabled() {return disabled;}
|
||||
|
||||
public void setDisabled(String disabled) {this.disabled = disabled;}
|
||||
|
||||
public String getLastUpdate() {return lastUpdate;}
|
||||
|
||||
public void setLastUpdate(String lastUpdate) {this.lastUpdate = lastUpdate;}
|
||||
|
||||
public String getPhone() {return phone;}
|
||||
|
||||
public void setPhone(String phone) {this.phone = phone;}
|
||||
|
||||
public String getModel() {return model;}
|
||||
|
||||
public void setModel(String model) {this.model = model;}
|
||||
|
||||
public String getContact() {return contact;}
|
||||
|
||||
public void setContact(String contact) {this.contact = contact;}
|
||||
|
||||
public String getCategory() {return category;}
|
||||
|
||||
public void setCategory(String category) {this.category = category;}
|
||||
|
||||
public String getPositionId() {return positionId;}
|
||||
|
||||
public void setPositionId(String positionId) {this.positionId = positionId;}
|
||||
|
||||
public String getGroupId() {return groupId;}
|
||||
|
||||
public void setGroupId(String groupId) {this.groupId = groupId;}
|
||||
|
||||
}
|
@ -1,206 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 - 2022 Entgra (Pvt) Ltd, Inc - All Rights Reserved.
|
||||
*
|
||||
* Unauthorised copying/redistribution of this file, via any medium is strictly prohibited.
|
||||
*
|
||||
* Licensed under the Entgra Commercial License, Version 1.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://entgra.io/licenses/entgra-commercial/1.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 org.wso2.carbon.device.mgt.core.traccar.common.beans;
|
||||
|
||||
public class TraccarDeviceInfo {
|
||||
private String deviceIdentifier;
|
||||
private Long timestamp;
|
||||
private Double lat;
|
||||
private Double lon;
|
||||
private Float bearing;
|
||||
private Float speed;
|
||||
|
||||
private String deviceName;
|
||||
private String uniqueId;
|
||||
private String status;
|
||||
private String disabled;
|
||||
private String lastUpdate;
|
||||
private String positionId;
|
||||
private String groupId;
|
||||
private String phone;
|
||||
private String model;
|
||||
private String contact;
|
||||
private String category;
|
||||
|
||||
public TraccarDeviceInfo(String deviceIdentifier, long timestamp, Double lat, Double lon,
|
||||
float bearing, float speed){
|
||||
this.deviceIdentifier =deviceIdentifier;
|
||||
this.timestamp=timestamp;
|
||||
this.lat=lat;
|
||||
this.lon =lon;
|
||||
this.bearing =bearing;
|
||||
this.speed =speed;
|
||||
}
|
||||
|
||||
public TraccarDeviceInfo(String deviceName, String uniqueId, String status, String disabled, String lastUpdate,
|
||||
String positionId, String groupId, String phone, String model, String contact,
|
||||
String category){
|
||||
this.deviceName =deviceName;
|
||||
this.uniqueId=uniqueId;
|
||||
this.status=status;
|
||||
this.disabled =disabled;
|
||||
this.lastUpdate =lastUpdate;
|
||||
this.positionId =positionId;
|
||||
this.groupId =groupId;
|
||||
this.phone =phone;
|
||||
this.model =model;
|
||||
this.contact =contact;
|
||||
this.category =category;
|
||||
}
|
||||
|
||||
public TraccarDeviceInfo(){ }
|
||||
|
||||
public Long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Long timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Float getBearing() {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
public void setBearing(Float bearing) {
|
||||
this.bearing = bearing;
|
||||
}
|
||||
|
||||
public Float getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public void setSpeed(Float speed) {
|
||||
this.speed = speed;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getUniqueId() {
|
||||
return uniqueId;
|
||||
}
|
||||
|
||||
public void setUniqueId(String uniqueId) {
|
||||
this.uniqueId = uniqueId;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDisabled() {
|
||||
return disabled;
|
||||
}
|
||||
|
||||
public void setDisabled(String disabled) {
|
||||
this.disabled = disabled;
|
||||
}
|
||||
|
||||
public String getLastUpdate() {
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
public void setLastUpdate(String lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getContact() {
|
||||
return contact;
|
||||
}
|
||||
|
||||
public void setContact(String contact) {
|
||||
this.contact = contact;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getDeviceIdentifier() {
|
||||
return deviceIdentifier;
|
||||
}
|
||||
|
||||
public void setDeviceIdentifier(String deviceIdentifier) {
|
||||
this.deviceIdentifier = deviceIdentifier;
|
||||
}
|
||||
|
||||
public String getPositionId() {
|
||||
return positionId;
|
||||
}
|
||||
|
||||
public void setPositionId(String positionId) {
|
||||
this.positionId = positionId;
|
||||
}
|
||||
|
||||
public String getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright (C) 2018 - 2022 Entgra (Pvt) Ltd, Inc - All Rights Reserved.
|
||||
*
|
||||
* Unauthorised copying/redistribution of this file, via any medium is strictly prohibited.
|
||||
*
|
||||
* Licensed under the Entgra Commercial License, Version 1.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://entgra.io/licenses/entgra-commercial/1.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 org.wso2.carbon.device.mgt.core.traccar.common.beans;
|
||||
|
||||
public class TraccarPosition {
|
||||
private String deviceIdentifier;
|
||||
private Long timestamp;
|
||||
private Double lat;
|
||||
private Double lon;
|
||||
private Float bearing;
|
||||
private Float speed;
|
||||
|
||||
public TraccarPosition(String deviceIdentifier, long timestamp, Double lat, Double lon,
|
||||
float bearing, float speed){
|
||||
this.deviceIdentifier =deviceIdentifier;
|
||||
this.timestamp=timestamp;
|
||||
this.lat=lat;
|
||||
this.lon =lon;
|
||||
this.bearing =bearing;
|
||||
this.speed =speed;
|
||||
}
|
||||
|
||||
public TraccarPosition(){ }
|
||||
|
||||
public String getDeviceIdentifier() {
|
||||
return deviceIdentifier;
|
||||
}
|
||||
|
||||
public void setDeviceIdentifier(String deviceIdentifier) {
|
||||
this.deviceIdentifier = deviceIdentifier;
|
||||
}
|
||||
|
||||
public Long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Long timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Float getBearing() {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
public void setBearing(Float bearing) {
|
||||
this.bearing = bearing;
|
||||
}
|
||||
|
||||
public Float getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public void setSpeed(Float speed) {
|
||||
this.speed = speed;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue