ImapMonitoringEventArgs

Inheritance: java.lang.Object, com.aspose.ms.System.EventArgs

public class ImapMonitoringEventArgs extends System.EventArgs

Class contains monitoring event data.

Constructors

Constructor Description
ImapMonitoringEventArgs(String folderName, ImapMessageInfo[] newMessages, ImapMessageInfo[] deletedMessages) Initializes a new instance of the ImapMonitoringEventArgs class
ImapMonitoringEventArgs(String folderName, Throwable error) Initializes a new instance of the ImapMonitoringEventArgs class

Methods

Method Description
getFolderName() Gets specified folder for monitoring operation.
getError() Gets error of IMAP IDLE operation.
getNewMessages() Gets new messages
getDeletedMessages() Gets deleted messages

ImapMonitoringEventArgs(String folderName, ImapMessageInfo[] newMessages, ImapMessageInfo[] deletedMessages)

public ImapMonitoringEventArgs(String folderName, ImapMessageInfo[] newMessages, ImapMessageInfo[] deletedMessages)

Initializes a new instance of the ImapMonitoringEventArgs class

Parameters:

Parameter Type Description
folderName java.lang.String specified folder for monitoring operation
newMessages com.aspose.email.ImapMessageInfo[] Contains information about new messages
deletedMessages com.aspose.email.ImapMessageInfo[] Contains information about deleted messages

ImapMonitoringEventArgs(String folderName, Throwable error)

public ImapMonitoringEventArgs(String folderName, Throwable error)

Initializes a new instance of the ImapMonitoringEventArgs class

Parameters:

Parameter Type Description
folderName java.lang.String specified folder for monitoring operation
error java.lang.Throwable Error of IMAP IDLE operation

getFolderName()

public final String getFolderName()

Gets specified folder for monitoring operation.

Returns: java.lang.String

getError()

public final Throwable getError()

Gets error of IMAP IDLE operation.

Returns: java.lang.Throwable

getNewMessages()

public final ImapMessageInfo[] getNewMessages()

Gets new messages

Returns: com.aspose.email.ImapMessageInfo[]

getDeletedMessages()

public final ImapMessageInfo[] getDeletedMessages()

Gets deleted messages

Returns: com.aspose.email.ImapMessageInfo[]