I have been working with the asterisk-java library this week and ran across a syntax I didn't recognize. I don't know what it is called so I can't search for info. Here is what I think are the pertinent lines of code
import org.asteriskjava.manager.event.ManagerEvent;
import org.asteriskjava.manager.event.VarSetEvent;
public class TestEvent implements ManagerEventListener {
...
...
...
//ManagerEventListener is abstract so must override onManagerEvent
public void onManagerEvent(ManagerEvent event) {
String eventName = event.getClass().getSimpleName();
if (eventName.equals("VarSetEvent")) {
//this is the syntax I don't recognize
VarSetEvent vse = (VarSetEvent) event;
}
}
