Package org.jivesoftware.smackx.commands
Class AdHocCommandNote
- java.lang.Object
-
- org.jivesoftware.smackx.commands.AdHocCommandNote
-
public class AdHocCommandNote extends Object
Notes can be added to a command execution response. A note has a type and value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdHocCommandNote.Type
Represents a note type.
-
Constructor Summary
Constructors Constructor Description AdHocCommandNote(AdHocCommandNote.Type type, String value)
Creates a new adhoc command note with the specified type and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdHocCommandNote.Type
getType()
Return the type of the note.String
getValue()
Returns the value or message of the note.
-
-
-
Constructor Detail
-
AdHocCommandNote
public AdHocCommandNote(AdHocCommandNote.Type type, String value)
Creates a new adhoc command note with the specified type and value.- Parameters:
type
- the type of the note.value
- the value of the note.
-
-
Method Detail
-
getValue
public String getValue()
Returns the value or message of the note.- Returns:
- the value or message of the note.
-
getType
public AdHocCommandNote.Type getType()
Return the type of the note.- Returns:
- the type of the note.
-
-