Class NSMessagingAgent
SMS and other external messaging systems.
Syntax
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSMessagingAgent()
SMS and other external messaging systems.
Declaration
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);
Methods
CreateMessage(NSIncomingMessage)
Creates a new message and insert it in the message queue. (inbox)
Declaration
Void CreateMessage(NSIncomingMessage incomingMessage)
Parameters
Type |
Name |
Description |
|
incomingMessage |
|
Returns
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);
GetDeliveryStatus(Integer[])
Declaration
NSMessageDeliveryStatus[] GetDeliveryStatus(Integer[] messagingIds)
Parameters
Type |
Name |
Description |
Integer[] |
messagingIds |
|
Returns
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);
GetPlugins()
SMS and other external messaging systems.
Declaration
NSProviderInfo[] GetPlugins()
Returns
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);
SendMessages(String,NSOutgoingMessage[])
Sends an array of messages
Declaration
NSMessageDeliveryStatus[] SendMessages(String plugin, NSOutgoingMessage[] outgoingMessages)
Parameters
Type |
Name |
Description |
String |
plugin |
|
|
outgoingMessages |
|
Returns
Examples
NSMessagingAgent agent;
String plugin;
NSOutgoingMessage[] outgoingMessages;
NSMessageDeliveryStatus[] res = agent.SendMessages(plugin, outgoingMessages);
SendMessagesWithConfig(String)
Sends an array of messages using given config
Declaration
NSMessageDeliveryStatus[] SendMessagesWithConfig(String plugin, NSOutgoingMessage[] outgoingMessages, Map config)
Parameters
Type |
Name |
Description |
String |
plugin |
|
|
outgoingMessages |
|
|
config |
|
Returns
Examples
NSMessagingAgent agent;
String plugin;
NSOutgoingMessage[] outgoingMessages;
Map config;
NSMessageDeliveryStatus[] res = agent.SendMessagesWithConfig(plugin, outgoingMessages, config);
SetDeliveryStatus(String,String,Integer,String)
Sets or change the delivery status on an outgoing message.
Declaration
Void SetDeliveryStatus(String plugin, String externalMessageId, Integer status, String statusDescription)
Parameters
Returns
Examples
NSMessagingAgent agent;
agent.callMethod(arg1, arg2);