public interface PresenceService
Modifier and Type | Method and Description |
---|---|
int |
addNote(PresenceNote note)
Adds a note to a presence service.
|
int |
clearNotes()
Clears the notes of a presence service.
|
PresenceBasicStatus |
getBasicStatus()
Gets the basic status of a presence service.
|
String |
getContact()
Gets the contact of a presence service.
|
String |
getId()
Gets the id of a presence service.
|
long |
getNativePtr()
Gets the native pointer for this object.
|
long |
getNbNotes()
Gets the number of notes included in the presence service.
|
PresenceNote |
getNthNote(long idx)
Gets the nth note of a presence service.
|
int |
setBasicStatus(PresenceBasicStatus status)
Sets the basic status of a presence service.
|
int |
setContact(String contact)
Sets the contact of a presence service.
|
int |
setId(String id)
Sets the id of a presence service.
|
String getId()
int setId(String id)
id
- The id string to set. Can be null to generate it automatically.PresenceBasicStatus getBasicStatus()
int setBasicStatus(PresenceBasicStatus status)
status
- The #PresenceBasicStatus to set for the #PresenceService object.String getContact()
int setContact(String contact)
contact
- The contact string to set.long getNbNotes()
PresenceNote getNthNote(long idx)
idx
- The index of the note to get (the first note having the index 0).int addNote(PresenceNote note)
note
- The #PresenceNote object to add to the service.int clearNotes()
long getNativePtr()