Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GnssServer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhushanglei
GnssServer
Commits
72b45eb0
Commit
72b45eb0
authored
Apr 12, 2022
by
zhushanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
a8bd4079
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
GpsDto.java
src/main/java/server/GpsDto.java
+5
-5
TcpServerHandler.java
src/main/java/server/TcpServerHandler.java
+1
-1
No files found.
src/main/java/server/GpsDto.java
View file @
72b45eb0
...
@@ -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
get
Id
()
{
public
String
get
Name
()
{
return
id
;
return
name
;
}
}
public
void
set
Id
(
String
id
)
{
public
void
set
Name
(
String
name
)
{
this
.
id
=
id
;
this
.
name
=
name
;
}
}
public
SimplePoint
getLocation
()
{
public
SimplePoint
getLocation
()
{
...
...
src/main/java/server/TcpServerHandler.java
View file @
72b45eb0
...
@@ -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
.
set
Id
(
TcpServer
.
deviceId
);
gpsDto
.
set
Name
(
TcpServer
.
deviceId
);
gpsDto
.
setTime
(
new
Date
());
gpsDto
.
setTime
(
new
Date
());
gpsDto
.
setLocation
(
simplePoint
);
gpsDto
.
setLocation
(
simplePoint
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment