-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathBotGroup.cs
More file actions
40 lines (28 loc) · 1008 Bytes
/
BotGroup.cs
File metadata and controls
40 lines (28 loc) · 1008 Bytes
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
namespace Lagrange.Core.Common.Entity;
public class BotGroup(
long groupUin,
string groupName,
int memberCount,
int maxMember,
long createTime,
string? description,
string? question,
string? announcement,
uint lastestSeq = 0) : BotContact
{
public long GroupUin { get; } = groupUin;
public string GroupName { get; } = groupName ?? string.Empty;
public int MemberCount { get; } = memberCount;
public int MaxMember { get; } = maxMember;
public long CreateTime { get; } = createTime;
public string? Description { get; } = description;
public string? Question { get; } = question;
public string? Announcement { get; } = announcement;
/// <summary>
/// The latest message sequence number for this group.
/// </summary>
public uint LastestSeq { get; } = lastestSeq;
public override long Uin => GroupUin;
public override string Nickname => GroupName;
public override string Uid => GroupUin.ToString();
}