JSJaC

## Class JSJaCMessage

    Object
       |
       +--JSJaCPacket
             |
             +--JSJaCMessage

class JSJaCMessage
extends JSJaCPacket

Models the XMPP notion of an 'message' packet
Defined in JSJaCPacket.js

Fields inherited from class JSJaCPacket
`xml`

Constructor Summary
`JSJaCMessage()` A jabber/XMPP message packet

Method Summary
`String` | `getBody()` Gets the body of this message
`String` | `getSubject()` Gets the subject of this message
`String` | `getThread()` Gets the 'thread' identifier for this message
`JSJaCMessage` | `setBody(<String> body)` Sets the body of the message
`JSJaCMessage` | `setSubject(<String> subject)` Sets the subject of the message
`JSJaCMessage` | `setThread(<String> thread)` Sets the 'tread' attribute for this message.

Methods inherited from class JSJaCPacket
`pType, getDoc, getNode, setTo, setFrom, setID, setType, setXMLLang, getTo, getFrom, getToJID, getFromJID, getID, getType, getXMLLang, getXMLNS, getChild, getChildVal, clone, isError, errorReply, buildNode, appendNode`

Constructor Detail

### JSJaCMessage

    JSJaCMessage()

A jabber/XMPP message packet

Method Detail

### getBody

    String getBody()

Gets the body of this message

Returns:

The body of this message

### getSubject

    String getSubject()

Gets the subject of this message

Returns:

The subject of this message

### getThread

    String getThread()

Gets the 'thread' identifier for this message

Returns:

A thread identifier

### setBody

    JSJaCMessage setBody(<String> body)

Sets the body of the message

Parameters:

`body` - Your message to be sent along

Returns:

this message

### setSubject

    JSJaCMessage setSubject(<String> subject)

Sets the subject of the message

Parameters:

`subject` - Your subject to be sent along

Returns:

this message

### setThread

    JSJaCMessage setThread(<String> thread)

Sets the 'tread' attribute for this message. This is used to identify threads in chat conversations

Parameters:

`thread` - Usually a somewhat random hash.

Returns:

this message

JSJaC

Documentation generated by JSDoc on Tue Jan 5 02:48:26 2021