Send message from originator to array of destinations. Use default username and password for authentication.

Namespace: hr.tis.mgw.client.message
Assembly:   mgw2-client-1.0.6 (in mgw2-client-1.0.6)
Version: 2.1.0.6

Syntax

Visual Basic (Declaration)
Public MustOverride Function sendMessage ( _
	message As Message, _
	dest As String(), _
	orig As String, _
	priority As Priority, _
	charging As Charging _
) As MessageId
C#
public abstract MessageId sendMessage (
	Message message,
	string[] dest,
	string orig,
	Priority priority,
	Charging charging
)
Visual C++
public:
virtual MessageId^ sendMessage (
	Message^ message, 
	array<String^>^ dest, 
	String^ orig, 
	Priority priority, 
	Charging^ charging
) abstract

Parameters

message
hr.tis.mgw.client.message.Message
Message object to send
dest
System.String[]
Destination array addresses
orig
System.String
Originator address
priority
hr.tis.mgw.client.message.Priority
Priority of message
charging
hr.tis.mgw.client.charging.Charging
Charging

Return Value

MessageId

Remarks

Priority is used only for MmsMessage and ignored for all other message types. Method returns MessageId object which can be used to obtain message delivery information. To link charging with message sending use charging object returned after reserving currency. The method throws generic GatewayException which is parent of specific exceptions for various reasons.

Exceptions

ExceptionCondition
hr.tis.mgw.client.GatewayExceptionGeneric exception base class for all exceptions.