forked from smiley22/S22.Imap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MailboxStatus.cs
47 lines (43 loc) · 1.2 KB
/
MailboxStatus.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
using System;
namespace S22.Imap {
/// <summary>
/// Represents the status information of a mailbox which can be constructed from the server
/// response to a STATUS command.
/// </summary>
[Serializable]
internal class MailboxStatus {
/// <summary>
/// Initializes a new MailboxStatus instance with the specified number of total and unread
/// messages.
/// </summary>
/// <param name="Messages">The total number of messages in the mailbox.</param>
/// <param name="Unread">The number of unread (unseen) messages in the mailbox.</param>
/// <param name="NextUID">The next unique identifier value of the mailbox</param>
internal MailboxStatus(int Messages, int Unread, uint NextUID) {
this.Messages = Messages;
this.Unread = Unread;
this.NextUID = NextUID;
}
/// <summary>
/// The next unique identifier value of the mailbox.
/// </summary>
internal uint NextUID {
get;
private set;
}
/// <summary>
/// The total number of messages in the mailbox.
/// </summary>
internal int Messages {
get;
private set;
}
/// <summary>
/// The number of unread (unseen) messages in the mailbox.
/// </summary>
internal int Unread {
get;
private set;
}
}
}