StationRouteData.java
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.example.demo.model;
public class StationRouteData {
private String stationRouteCode;
private String directions;
private String lineCode;
private String stationName;
private String stationCode;
public static StationRouteData getInstance(StationRoute stationRoute){
StationRouteData stationRouteKFK=new StationRouteData();
stationRouteKFK.setStationRouteCode(stationRoute.getStation_route_code());
stationRouteKFK.setDirections(stationRoute.getDirections());
stationRouteKFK.setLineCode(stationRoute.getShanghai_linecode());
stationRouteKFK.setStationName(stationRoute.getStation_name());
stationRouteKFK.setStationCode(stationRoute.getStation_code());
return stationRouteKFK;
}
public String getStationRouteCode() {
return stationRouteCode;
}
public void setStationRouteCode(String stationRouteCode) {
this.stationRouteCode = stationRouteCode;
}
public String getDirections() {
return directions;
}
public void setDirections(String directions) {
this.directions = directions;
}
public String getLineCode() {
return lineCode;
}
public void setLineCode(String lineCode) {
this.lineCode = lineCode;
}
public String getStationName() {
return stationName;
}
public void setStationName(String stationName) {
this.stationName = stationName;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
}