Commit 72b45eb0 authored by zhushanglei's avatar zhushanglei

init

parent a8bd4079
......@@ -6,7 +6,7 @@ import java.util.Date;
public class GpsDto {
private Date time;
private String id;
private String name;
private SimplePoint location;
private double gndRate;
......@@ -18,12 +18,12 @@ public class GpsDto {
this.time = time;
}
public String getId() {
return id;
public String getName() {
return name;
}
public void setId(String id) {
this.id = id;
public void setName(String name) {
this.name = name;
}
public SimplePoint getLocation() {
......
......@@ -70,7 +70,7 @@ public class TcpServerHandler extends SimpleChannelInboundHandler<Object> {
simplePoint.setX(x);
simplePoint.setY(y);
gpsDto.setId(TcpServer.deviceId);
gpsDto.setName(TcpServer.deviceId);
gpsDto.setTime(new Date());
gpsDto.setLocation(simplePoint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment