Message Constructor (String, IExtensionBase, String, String, String, String, Int32, ListIMessageHeader) |
Initializes a new instance of the
Message class.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax public Message(
string id,
IExtensionBase source,
string sender,
string recipient,
string content,
string contentType,
int hopCount = 10,
List<IMessageHeader> headers = null
)
Public Sub New (
id As String,
source As IExtensionBase,
sender As String,
recipient As String,
content As String,
contentType As String,
Optional hopCount As Integer = 10,
Optional headers As List(Of IMessageHeader) = Nothing
)
public:
Message(
String^ id,
IExtensionBase^ source,
String^ sender,
String^ recipient,
String^ content,
String^ contentType,
int hopCount = 10,
List<IMessageHeader^>^ headers = nullptr
)
new :
id : string *
source : IExtensionBase *
sender : string *
recipient : string *
content : string *
contentType : string *
?hopCount : int *
?headers : List<IMessageHeader>
(* Defaults:
let _hopCount = defaultArg hopCount 10
let _headers = defaultArg headers null
*)
-> Message
Parameters
- id
- Type: SystemString
The unique identifier of the message. - source
- Type: Ozeki.VoIPIExtensionBase
The extension who sent the message. - sender
- Type: SystemString
The sender who sent the message. - recipient
- Type: SystemString
The recepient of the message set by the sender. - content
- Type: SystemString
Content of the message. - contentType
- Type: SystemString
Content type of the message. - hopCount (Optional)
- Type: SystemInt32
A time-to-live value is decremented when message is precessed. - headers (Optional)
- Type: System.Collections.GenericListIMessageHeader
Extra headers.
See Also