Type Property
      
 

Description

Determines type of the message.


Property type

A MessageTypesEnum enumeration.  


Syntax

object.Type [= value]



The Type Property syntax has these parts:

Part Description
object An expression evaluating to an object of type XMPPMessage.
value A MessageTypesEnum enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 MsgNormal 0 Normal message.
 MsgChat 1 Chat session message.
 MsgGroupChat 2 Group chat message.
 MsgHeadline 3 Headline message.
 MsgError 4 Error message.
 MsgUnknown 99 Unknown message.

Remarks

This property will define what type of message will be sent, or is received by the component. Depending on this property you can decide how you wish to display it to the user. Typically you will exchange MsgNormal or MsgChat. When you receive MsgError you know you should check for ErrorCode and ErrorText properties.