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