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;
}
}
}