public class RosterElement extends Object
Modifier and Type | Field and Description |
---|---|
protected static long |
INITIAL_LAST_SEEN_VAL
Field description
|
Constructor and Description |
---|
RosterElement(Element roster_el,
XMPPResourceConnection session) |
RosterElement(JID jid,
String name,
String[] groups,
XMPPResourceConnection session) |
Modifier and Type | Method and Description |
---|---|
void |
addGroups(String[] groups) |
double |
getActivity() |
String[] |
getGroups() |
JID |
getJid() |
long |
getLastSeen() |
String |
getName() |
String |
getOtherData() |
Element |
getRosterElement() |
Element |
getRosterItem() |
RosterAbstract.SubscriptionType |
getSubscription() |
double |
getWeight() |
boolean |
isModified() |
boolean |
isOnline() |
boolean |
isPersistent() |
boolean |
isPresence_sent() |
void |
setActivity(double activity) |
void |
setGroups(String[] groups) |
void |
setLastSeen(long lastSeen) |
void |
setName(String name) |
void |
setOnline(String resource,
boolean online) |
void |
setOtherData(String other_data) |
void |
setPersistent(boolean persistent) |
void |
setPresence_sent(boolean presence_sent) |
void |
setSubscription(RosterAbstract.SubscriptionType subscription) |
void |
setWeight(double weight) |
String |
toString() |
protected static final long INITIAL_LAST_SEEN_VAL
public RosterElement(Element roster_el, XMPPResourceConnection session) throws TigaseStringprepException
TigaseStringprepException
public RosterElement(JID jid, String name, String[] groups, XMPPResourceConnection session)
public void addGroups(String[] groups)
public String[] getGroups()
public JID getJid()
public String getName()
public String getOtherData()
public Element getRosterElement()
public Element getRosterItem()
public RosterAbstract.SubscriptionType getSubscription()
public boolean isModified()
public boolean isOnline()
public boolean isPresence_sent()
public final void setGroups(String[] groups)
public final void setName(String name)
public void setOnline(String resource, boolean online)
public void setOtherData(String other_data)
public void setPresence_sent(boolean presence_sent)
public void setSubscription(RosterAbstract.SubscriptionType subscription)
public boolean isPersistent()
public void setPersistent(boolean persistent)
public double getActivity()
public void setActivity(double activity)
public double getWeight()
public void setWeight(double weight)
public long getLastSeen()
public void setLastSeen(long lastSeen)
Copyright © 2017 "Tigase, Inc.". All rights reserved.