-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCallInfoModel.java
More file actions
41 lines (32 loc) · 952 Bytes
/
CallInfoModel.java
File metadata and controls
41 lines (32 loc) · 952 Bytes
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
package io.CareAR.connect;
import android.os.Bundle;
public class CallInfoModel {
private Bundle info;
public CallInfoModel(Bundle bundle) {
info = bundle;
}
public Boolean IsHasCallInfo() {
return info != null;
}
public String BuildInfoString() {
String roomKey = VoIPMessagingService.SESSION_ID_KEY;
String callerKey = VoIPMessagingService.CALLER_KEY;
String roomID = info.getString(roomKey);
String caller = info.getString(callerKey);
StringBuilder builder = new StringBuilder();
builder.append(roomKey);
builder.append("=");
builder.append(roomID);
builder.append("|");
builder.append(callerKey);
builder.append("=");
builder.append(caller);
return builder.toString();
}
public Bundle GetInfoAsBundle() {
return info;
}
public void Reset() {
info = null;
}
}