Commit 72b45eb0 authored by zhushanglei's avatar zhushanglei

init

parent a8bd4079
...@@ -6,7 +6,7 @@ import java.util.Date; ...@@ -6,7 +6,7 @@ import java.util.Date;
public class GpsDto { public class GpsDto {
private Date time; private Date time;
private String id; private String name;
private SimplePoint location; private SimplePoint location;
private double gndRate; private double gndRate;
...@@ -18,12 +18,12 @@ public class GpsDto { ...@@ -18,12 +18,12 @@ public class GpsDto {
this.time = time; this.time = time;
} }
public String getId() { public String getName() {
return id; return name;
} }
public void setId(String id) { public void setName(String name) {
this.id = id; this.name = name;
} }
public SimplePoint getLocation() { public SimplePoint getLocation() {
......
...@@ -70,7 +70,7 @@ public class TcpServerHandler extends SimpleChannelInboundHandler<Object> { ...@@ -70,7 +70,7 @@ public class TcpServerHandler extends SimpleChannelInboundHandler<Object> {
simplePoint.setX(x); simplePoint.setX(x);
simplePoint.setY(y); simplePoint.setY(y);
gpsDto.setId(TcpServer.deviceId); gpsDto.setName(TcpServer.deviceId);
gpsDto.setTime(new Date()); gpsDto.setTime(new Date());
gpsDto.setLocation(simplePoint); 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