MessageIn Event

This event is fired upon receipt of a message.

Syntax

public event OnMessageInHandler OnMessageIn;

public delegate void OnMessageInHandler(object sender, XmppMessageInEventArgs e);

public class XmppMessageInEventArgs : EventArgs {
  public string MessageId { get; }
  public string From { get; }
  public string Domain { get; }
  public string Resource { get; }
  public int MessageType { get; }
  public string Subject { get; }
  public string MessageThread { get; }
  public string MessageText { get; }
  public string MessageHTML { get; }
  public string Other { get; }
}
Public Event OnMessageIn As OnMessageInHandler

Public Delegate Sub OnMessageInHandler(sender As Object, e As XmppMessageInEventArgs)

Public Class XmppMessageInEventArgs Inherits EventArgs
  Public ReadOnly Property MessageId As String
  Public ReadOnly Property From As String
  Public ReadOnly Property Domain As String
  Public ReadOnly Property Resource As String
  Public ReadOnly Property MessageType As Integer
  Public ReadOnly Property Subject As String
  Public ReadOnly Property MessageThread As String
  Public ReadOnly Property MessageText As String
  Public ReadOnly Property MessageHTML As String
  Public ReadOnly Property Other As String
End Class

Remarks

When a message is received, the XMPP component will parse the sender's Jabber ID into the From, Domain, and Resource fields. These parameters can be used to track the exact instance of a user's account that originated the message.

MessageId can be used with Jabber extension protocols. The MessageText parameter is the plaintext portion of the message body. MessageHTML will contain any HTML from the message.

Type the type of message received. See MessageType for a list of possible values. For message of type "headline", Subject will reflect the subject of the message. For messages of type "chat", Thread will report the conversation thread for which the current message is a follow-up.

Other will contains any extra data associated with the message but not defined by the XMPP-IM protocol.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 .NET Edition - Version 20.0 [Build 8155]