public final class Annotation
extends java.lang.Object
The implementation of the <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 java.lang.String |
NAMESPACE
storage:rosternotes
|
Constructor and Description |
---|
Annotation(java.util.Collection<Annotation.Note> notes) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Annotation.Note> |
getNotes()
Gets the roster notes.
|
public static final java.lang.String NAMESPACE
storage:rosternotes
public Annotation(java.util.Collection<Annotation.Note> notes)
public final java.util.List<Annotation.Note> getNotes()
Gets the roster notes.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.