1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * A PeerlistCompleteEvent is triggered after the details of all peers has been reported in response
21 * to an SIPPeersAction or SIPShowPeerAction.<br>
22 * Available since Asterisk 1.2
23 *
24 * @see net.sf.asterisk.manager.event.PeerEntryEvent
25 * @see net.sf.asterisk.manager.action.SIPPeersAction
26 * @see net.sf.asterisk.manager.action.SIPShowPeerAction
27 * @author srt
28 * @version $Id: PeerlistCompleteEvent.java,v 1.1 2005/07/18 14:53:08 srt Exp $
29 * @since 0.2
30 */
31 public class PeerlistCompleteEvent extends ResponseEvent
32 {
33 /***
34 * Serial version identifier
35 */
36 private static final long serialVersionUID = -1177773673509373296L;
37 private Integer listItems;
38
39 /***
40 * Creates a new instance.
41 *
42 * @param source
43 */
44 public PeerlistCompleteEvent(Object source)
45 {
46 super(source);
47 }
48
49 /***
50 * Returns the number of PeerEvents that have been reported.
51 *
52 * @return the number of PeerEvents that have been reported.
53 */
54 public Integer getListItems()
55 {
56 return listItems;
57 }
58
59 /***
60 * Sets the number of PeerEvents that have been reported.
61 *
62 * @param listItems the number of PeerEvents that have been reported.
63 */
64 public void setListItems(Integer listItems)
65 {
66 this.listItems = listItems;
67 }
68 }