P15GEN2\59518
2024-05-29 d4210c7c4b04abde20037ea8aa0f54ef8a2649aa
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
package foundation.icall;
 
import foundation.util.Util;
 
public enum ICallDirection {
 
    InBound, RemoteServer, RemoteDB, Unknown; 
 
    public static ICallDirection parse(String value) {
        if (Util.isEmpty(value)) {
            return Unknown;
        }
        
        value = value.toLowerCase();
        
        if ("input".equals(value)) {
            return InBound;
        }
        else if ("remoteserver".equals(value)) {
            return RemoteServer;
        }
        else if ("remotedb".equals(value)) {
            return RemoteDB;
        }
        
        return Unknown;
    }
    
}