getCallType function
method for returning the callType
Implementation
CallType getCallType(int n) {
if (n == 100) {
//return the wifi outgoing call
return CallType.wifiOutgoing;
} else if (n == 101) {
//return wifiIncoming call
return CallType.wifiIncoming;
} else if (n >= 1 && n <= 8) {
return CallType.values[n - 1];
} else {
return CallType.unknown;
}
}