public class Transcripts extends IQ
Transcript
Modifier and Type | Class and Description |
---|---|
static class |
Transcripts.AgentDetail
An AgentDetail contains information of an Agent that was involved in a conversation.
|
static class |
Transcripts.TranscriptSummary
A TranscriptSummary contains some information about a conversation such as the ID of the
session or the date when the conversation started and finished.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
Transcripts(String userID)
Creates a transcripts request for the given userID.
|
Transcripts(String userID,
List<Transcripts.TranscriptSummary> summaries)
Creates a Transcripts which will contain the transcript summaries of the given user.
|
Modifier and Type | Method and Description |
---|---|
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
List<Transcripts.TranscriptSummary> |
getSummaries()
Returns a list of TranscriptSummary.
|
String |
getUserID()
Returns the id of the user that was involved in the conversations.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public Transcripts(String userID)
userID
- the id of the user to get his conversations transcripts.public Transcripts(String userID, List<Transcripts.TranscriptSummary> summaries)
userID
- the id of the user. Could be a real JID or a unique String that identifies
anonymous users.summaries
- the list of TranscriptSummaries.public String getUserID()
public List<Transcripts.TranscriptSummary> getSummaries()
public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ