Re: [Asterisk-java-users] MeetMeJoinEvent
Brought to you by:
srt
From: David R. <dr...@in...> - 2007-08-09 09:50:51
|
On Thu, 2007-08-09 at 06:40 -0300, Carlos G Mendioroz wrote: > Usually you access subclass functionality by casting to the subclass, > guarded by a type check like: >=20 > public void onManagerEvent(ManagerEvent event) > { > // just print received events > System.out.println(event); > =09 > if (event.getClass().equals(MeetMeJoinEvent.class)) { if (event instanceof MeetMeJoinEvent) { > System.out.println((MeetMeJoinEvent)event.getMeetMe()); This might be much more common. :) Nitpicking, David --=20 INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Gesch=C3=A4ftsf=C3=BChrer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 |