public interface Context
Modifier and Type | Method and Description |
---|---|
Room |
byId(java.lang.String id)
Gives a handle to a room with the designated id
|
Chatlet[] |
chatletByAlias(java.lang.String alias)
Returns array containing chatlets for the alias passed.
|
Chatlet |
chatletById(java.lang.String id)
Gives a handle to a chatlet by the formid.
|
Chatlet |
chatletByRef(java.lang.String ref)
For future use
|
Room |
create()
Creates a new room
|
Flowlet |
createFlowlet()
For future use
|
Chatlet |
currentChatlet() |
java.lang.String[] |
currentChatletAlias()
For future use
|
Comment |
currentComment() |
Event |
currentEvent() |
Flowlet |
currentFlowlet()
For future use
|
java.lang.String[] |
currentKeywordParams() |
Reply |
currentReply() |
Room |
currentRoom() |
java.lang.String |
currentRoomAlias()
For future use
|
Sender |
currentSender() |
java.lang.String |
currentSenderId() |
Room |
p2p(long userId)
Gives a handle to a one on one room between the bot and a user.
|
Room |
p2p(java.lang.String email)
Gives a handle to a one on one room between the bot and a user.
|
Chatlet |
raw(java.lang.String message)
Creates a raw chatlet from a string.
|
java.lang.Iterable<TeamchatAPI> |
recursiveIterate(java.lang.String relation)
For future use
|
Room[] |
relatedRooms(java.lang.String relation)
For future use
|
Room[] |
roomByAlias(java.lang.String alias)
Returns array containing rooms for the alias passed.
|
Room currentRoom()
Room p2p(java.lang.String email)
email
- The userRoom p2p(long userId)
userId
- The userRoom byId(java.lang.String id)
id
- The id of the roomRoom create()
Chatlet currentChatlet()
Chatlet chatletById(java.lang.String id)
id
- the formid of the chatletChatlet raw(java.lang.String message)
message
- The String from which to create the chatletReply currentReply()
Comment currentComment()
Event currentEvent()
java.lang.String[] currentKeywordParams()
java.lang.String[] currentChatletAlias()
java.lang.String currentRoomAlias()
Chatlet chatletByRef(java.lang.String ref)
Flowlet currentFlowlet()
Flowlet createFlowlet()
Room[] relatedRooms(java.lang.String relation)
java.lang.Iterable<TeamchatAPI> recursiveIterate(java.lang.String relation)
Chatlet[] chatletByAlias(java.lang.String alias)
alias
- for which the chatlets need to be fetchedRoom[] roomByAlias(java.lang.String alias)
alias
- for which the rooms need to be fetchedjava.lang.String currentSenderId()
Sender currentSender()