/
Ride.java
44 lines (30 loc) · 883 Bytes
/
Ride.java
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
package com.redhat.coderland.reactica.model;
import java.util.UUID;
public class Ride {
public static final String STATE_UNKNOWN = "UNKNOWN";
public static final String STATE_PLANNED = "PLANNED";
public static final String STATE_IN_PROGRESS = "IN_PROGRESS";
public static final String STATE_COMPLETED = "COMPLETED";
public static final long DEFAULT_RIDE_DURATION = 60;
public static final int DEFAULT_JITTER_DURATION = 10;
public static final int DEFAULT_USER_ON_RIDE = 10;
private String uuid;
private String state;
public Ride() {
this.uuid = UUID.randomUUID().toString();
}
public String getUuid() {
return uuid;
}
public Ride setUuid(String uuid) {
this.uuid = uuid;
return this;
}
public String getState() {
return state;
}
public Ride setState(String state) {
this.state = state;
return this;
}
}