public class ImapMonitoringEventArgs
extends com.aspose.ms.System.EventArgs
Class contains monitoring event data.
Constructor and 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 |
Modifier and Type | Method and Description |
---|---|
ImapMessageInfo[] |
getDeletedMessages()
Gets deleted messages
|
Throwable |
getError()
Gets error of IMAP IDLE operation.
|
String |
getFolderName()
Gets specified folder for monitoring operation.
|
ImapMessageInfo[] |
getNewMessages()
Gets new messages
|
public ImapMonitoringEventArgs(String folderName, ImapMessageInfo[] newMessages, ImapMessageInfo[] deletedMessages)
Initializes a new instance of the ImapMonitoringEventArgs
class
folderName
- specified folder for monitoring operationnewMessages
- Contains information about new messagesdeletedMessages
- Contains information about deleted messagespublic ImapMonitoringEventArgs(String folderName, Throwable error)
Initializes a new instance of the ImapMonitoringEventArgs
class
folderName
- specified folder for monitoring operationerror
- Error of IMAP IDLE operationpublic final String getFolderName()
Gets specified folder for monitoring operation.
public final Throwable getError()
Gets error of IMAP IDLE operation.
public final ImapMessageInfo[] getNewMessages()
Gets new messages
public final ImapMessageInfo[] getDeletedMessages()
Gets deleted messages