Message(String, IExtensionBase, String, String, String, String, Int32, ListIMessageHeader) Constructor |
Initializes a new instance of the
Message class.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.54.0
Syntaxpublic 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 String
- The unique identifier of the message.
- source IExtensionBase
- The extension who sent the message.
- sender String
- The sender who sent the message.
- recipient String
- The recepient of the message set by the sender.
- content String
- Content of the message.
- contentType String
- Content type of the message.
- hopCount Int32 (Optional)
- A time-to-live value is decremented when message is precessed.
- headers ListIMessageHeader (Optional)
- Extra headers.
See Also