forked from smiley22/S22.Imap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IdleMessageEventArgs.cs
50 lines (46 loc) · 1.44 KB
/
IdleMessageEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
namespace S22.Imap {
/// <summary>
/// Provides data for IMAP idle notification events.
/// </summary>
public class IdleMessageEventArgs : EventArgs {
/// <summary>
/// Initializes a new instance of the IdleMessageEventArgs class and sets the
/// MessageCount attribute to the value of the <paramref name="messageCount"/>
/// parameter.
/// </summary>
/// <param name="messageCount">The number of messages in the selected mailbox.</param>
/// <param name="messageUid"> The unique identifier (UID) of the newest message in the
/// mailbox.</param>
/// <param name="client">The instance of the ImapClient class that raised the event.</param>
internal IdleMessageEventArgs(uint messageCount, uint messageUid,
ImapClient client) {
this.MessageCount = messageCount;
this.MessageUid = messageUid;
this.Client = client;
}
/// <summary>
/// The total number of messages in the selected mailbox.
/// </summary>
public uint MessageCount {
get;
private set;
}
/// <summary>
/// The unique identifier (UID) of the newest message in the mailbox.
/// </summary>
/// <remarks>The UID can be passed to the GetMessage method in order to retrieve the mail
/// message from the server.</remarks>
public uint MessageUid {
get;
private set;
}
/// <summary>
/// The instance of the ImapClient class that raised the event.
/// </summary>
public ImapClient Client {
get;
private set;
}
}
}