Commit 8f2f1e3 1 parent 5cc0a39 commit 8f2f1e3 Copy full SHA for 8f2f1e3
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class CallHistory implements CallHistoryProvider {
44
44
NetworkPayload (
45
45
method: method,
46
46
body: message,
47
- direction: 'RECEIVED' ,
47
+ direction: NetworkDirections .received ,
48
48
timeStamp: timestamp),
49
49
);
50
50
}
@@ -65,7 +65,7 @@ class CallHistory implements CallHistoryProvider {
65
65
NetworkPayload (
66
66
method: method,
67
67
body: message,
68
- direction: 'SENT' ,
68
+ direction: NetworkDirections .sent ,
69
69
timeStamp: timestamp),
70
70
);
71
71
}
Original file line number Diff line number Diff line change @@ -22,8 +22,16 @@ class NetworkPayload {
22
22
final Object body;
23
23
24
24
/// direction of the api i.e SENT or RECEIVED.
25
- final String direction;
25
+ final NetworkDirections direction;
26
26
27
27
/// time of the api.
28
28
final int timeStamp;
29
29
}
30
+
31
+ enum NetworkDirections {
32
+ /// Going out from the web socket.
33
+ sent,
34
+
35
+ /// Coming in from the web socket.
36
+ received
37
+ }
You can’t perform that action at this time.
0 commit comments