-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cdr.java
56 lines (45 loc) · 1.26 KB
/
Cdr.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
45
46
47
48
49
50
51
52
53
54
55
56
package examples.data;
import java.io.Serializable;
public class Cdr implements Serializable {
private final String callSource;
private final String callDestination;
private final int callTime;
private int clientId;
private int price;
public Cdr(String callSource, String callDestination, int callTime) {
this.callSource = callSource;
this.callDestination = callDestination;
this.callTime = callTime;
}
public String getCallSource() {
return callSource;
}
public String getCallDestination() {
return callDestination;
}
public int getCallTime() {
return callTime;
}
public int getClientId() {
return clientId;
}
public int getPrice() {
return price;
}
public void setClientId(int clientId) {
this.clientId = clientId;
}
public void setPrice(int price) {
this.price = price;
}
@Override
public String toString() {
return "Cdr{" +
"callSource='" + callSource + '\'' +
", callDestination='" + callDestination + '\'' +
", callTime=" + callTime +
", clientId=" + clientId +
", price=" + price +
'}';
}
}