public interface PresenceModel
Modifier and Type | Method and Description |
---|---|
void |
addActivity(PresenceActivity activity)
Adds an activity to a presence model.
|
void |
addNote(java.lang.String noteContent,
java.lang.String lang)
Adds a note to a presence model.
|
void |
addPerson(PresencePerson person)
Adds a person to a presence model.
|
void |
addService(PresenceService service)
Adds a service to a presence model.
|
void |
clearActivities()
Clears the activities of a presence model.
|
void |
clearNotes()
Clears all the notes of a presence model.
|
void |
clearPersons()
Clears the persons of a presence model.
|
void |
clearServices()
Clears the services of a presence model.
|
PresenceActivity |
getActivity()
Gets the first activity of a presence model (there is usually only one).
|
PresenceBasicStatus |
getBasicStatus()
Gets the basic status of a presence model.
|
ConsolidatedPresence |
getConsolidatedPresence()
Get the consolidated presence from a presence model.
|
java.lang.String |
getContact()
Gets the contact of a presence model.
|
int |
getNbActivities()
Gets the number of activities included in the presence model.
|
int |
getNbPersons()
Gets the number of persons included in the presence model.
|
int |
getNbServices()
Gets the number of services included in the presence model.
|
PresenceNote |
getNote(java.lang.String lang)
Gets the first note of a presence model (there is usually only one).
|
PresenceActivity |
getNthActivity(int idx)
Gets the nth activity of a presence model.
|
PresencePerson |
getNthPerson(int idx)
Gets the nth person of a presence model.
|
PresenceService |
getNthService(int idx)
Gets the nth service of a presence model.
|
Address |
getPresentity()
Gets the presentity of a presence model.
|
long |
getTimestamp()
Gets the timestamp of a presence model.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isOnline()
Tells whether a presence model is considered online.
|
PresenceModel |
newWithActivity(PresenceActivity.Type activity,
java.lang.String description)
Creates a presence model specifying an activity.
|
PresenceModel |
newWithActivityAndNote(PresenceActivity.Type activity,
java.lang.String description,
java.lang.String note,
java.lang.String lang)
Creates a presence model specifying an activity and adding a note.
|
void |
setActivity(PresenceActivity.Type activity,
java.lang.String description)
Sets the activity of a presence model (limits to only one activity).
|
void |
setBasicStatus(PresenceBasicStatus basicStatus)
Sets the basic status of a presence model.
|
void |
setContact(java.lang.String contact)
Sets the contact of a presence model.
|
void |
setPresentity(Address presentity)
Sets the presentity of a presence model.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
PresenceActivity getActivity()
PresenceBasicStatus getBasicStatus()
void setBasicStatus(PresenceBasicStatus basicStatus)
ConsolidatedPresence getConsolidatedPresence()
java.lang.String getContact()
void setContact(java.lang.String contact)
boolean isOnline()
int getNbActivities()
int getNbPersons()
int getNbServices()
Address getPresentity()
void setPresentity(Address presentity)
long getTimestamp()
void addActivity(PresenceActivity activity)
void addNote(java.lang.String noteContent, java.lang.String lang)
void addPerson(PresencePerson person)
void addService(PresenceService service)
void clearActivities()
void clearNotes()
void clearPersons()
void clearServices()
PresenceNote getNote(java.lang.String lang)
PresenceActivity getNthActivity(int idx)
PresencePerson getNthPerson(int idx)
PresenceService getNthService(int idx)
void setActivity(PresenceActivity.Type activity, java.lang.String description)
PresenceModel newWithActivity(PresenceActivity.Type activity, java.lang.String description)
PresenceModel newWithActivityAndNote(PresenceActivity.Type activity, java.lang.String description, java.lang.String note, java.lang.String lang)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()