In the following code what those numbers means? I mean, 0, 1 2 and -1. As far I understand if "e.curPerformerInfo.chatType" is FREE or SIMPLE it will call "callExternalWindow" passing "ExternalWindows.WINDOW_INIT_SIMPLE_PRIVATE as argument and ...?
switch (e.curPerformerInfo.chatType) {
case ChatTypeText.FREE:
case ChatTypeText.SIMPLE:
e.callExternalWindow(ExternalWindows.WINDOW_INIT_SIMPLE_PRIVATE, {
0: function() {
e.socketCaller.startSimpleChat()
},
1: function() {
e.socketCaller.startPrivateChat()
},
2: function() {
e.socketCaller.startHotConnectionChat()
}
}, -1, e.curPerformerInfo.isHotConnectionEnabled);
}