MessageType Property

This is the type of the current message.

Syntax

ANSI (Cross Platform)
int GetMessageType();
int SetMessageType(int iMessageType); Unicode (Windows) INT GetMessageType();
INT SetMessageType(INT iMessageType);

Possible Values

MT_NORMAL(0), 
MT_CHAT(1),
MT_GROUP_CHAT(2),
MT_HEADLINE(3),
MT_ERROR(4)
@property (nonatomic,readwrite,assign,getter=messageType,setter=setMessageType:) int messageType;
- (int)messageType;
- (void)setMessageType:(int)newMessageType;

Possible Values

MT_NORMAL(0), 
MT_CHAT(1),
MT_GROUP_CHAT(2),
MT_HEADLINE(3),
MT_ERROR(4)
#define PID_XMPP_MESSAGETYPE 26

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_XMPP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_XMPP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

MessageType is the type of the message as specified in the XMPP RFC. The possible values are defined in the protocol specification as follows:

normal (mtNormal - 0)A single message.
chat (mtChat - 1)A message sent in the context of two-way chat between two entities.
groupchat (mtGroupChat - 2)A message sent in the context of multi-user chat among multiple entities.
headline (mtHeadline - 3)A message that represents one of a list of items (e.g., in a news feed or information ticker).
error (mtError - 4)A message returned to a sender specifying an error associated with a previous message sent by the sender to an intended recipient.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]