public final class Annotation extends Object
<storage/> element in the storage:rosternotes namespace.
This class is immutable.Many modern IM clients offer functionality that enables users to make notes about items in their roster. This comes in handy if users don't have meaningful information in their vCard or if you need to remember additional things related to a roster item.
This specification defines a protocol for storing annotations about a given set of entities. Its primary goal is to enable users to store some personal piece of information with their roster items.
Annotations are stored using server-side private XML storage (the 'jabber:iq:private' namespace).
| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.Note
Represents a note for a contact in the roster (roster item).
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
storage:rosternotes
|
| Constructor and Description |
|---|
Annotation(Collection<Annotation.Note> notes) |
| Modifier and Type | Method and Description |
|---|---|
List<Annotation.Note> |
getNotes()
Gets the roster notes.
|
public static final String NAMESPACE
public Annotation(Collection<Annotation.Note> notes)
public final List<Annotation.Note> getNotes()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.