|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEventObject
SessionEvent
SessionFriendEvent
Fired when friend's details have changed. Like other events, this one can be caused by more than one circumstance, and as such the field use is determined by the type of event.
  | getFrom | getFriend | getFriends | getGroup |
friendsUpdateReceived | y | y | y | n[1] |
friendsAddedReceived | y | y | y | y |
friendsRemoveReceived | y | y | y | y |
[1] = a friend may be in more than one group - therefore this event is not specific to one group, unlike other friend events.
Field Summary |
Fields inherited from class EventObject |
source |
Constructor Summary | |
SessionFriendEvent(Object o,
int sz)
Create a new instance. |
|
SessionFriendEvent(Object o,
YahooUser yu,
String gp)
Create a new instance. |
Method Summary | |
YahooUser |
getFriend()
Returns the YahooUser to whom this event applies. |
YahooUser[] |
getFriends()
Returns the list of YahooUser's to whom this event applies. |
String |
getFrom()
Returns the id of a single user relating to this event. |
String |
getGroup()
Returns the group for which this event applies. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class SessionEvent |
getMessage, getStatus, getTimestamp, getTo |
Methods inherited from class EventObject |
getSource |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SessionFriendEvent(Object o, int sz)
o
- source of event (Session
)sz
- number of userspublic SessionFriendEvent(Object o, YahooUser yu, String gp)
o
- source of event (Session
)yu
- yahoo user objectgp
- group nameMethod Detail |
public YahooUser[] getFriends()
friendsUpdateReceived
event
method is used. Otherwise it is null
.
public YahooUser getFriend()
friendAddedReceived
or
friendRemovedReceived
event methods are used.
Otherwise it is null
.
public String getGroup()
friendAddedReceived
or
friendRemovedReceived
event methods are used.
Otherwise it is null
.
public String getFrom()
getFriend().getId()
.
getFrom
in class SessionEvent
public String toString()
toString
in class SessionEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |