Class: Wall

models~ Wall

new Wall()

Our root class that runs everything
Source:

Methods

(static) addMessage(data, callback)

Adds a new message to the wall
This:
Parameters:
Name Type Description
data JSON of the message with required keys title (string), author (objectId), message (string)
callback module:WallAPI~wallCallback
Source:

(static) isParticipant(object, roles)

Helper method to check is a given ObjectID has the necessary role
This:
Parameters:
Name Type Description
object ObjectId
roles Array defaults to all
Source:
Returns:
Participant or null

(static) read(data, callback)

Sets a read flag on a message for a reader
This:
Parameters:
Name Type Description
data JSON with keys message (message index), reader (objectId)
callback module:WallAPI~wallCallback
Source:

(static) replyTo(data, callback)

Adds a reply to a message
This:
Parameters:
Name Type Description
data JSON of the reply with required keys replyTo (message index), message (string), author (objecId)
callback module:WallAPI~wallCallback
Source: