forked from LagrangeDev/LagrangeV2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBotGroupRecallEventStruct.cs
More file actions
35 lines (28 loc) · 960 Bytes
/
BotGroupRecallEventStruct.cs
File metadata and controls
35 lines (28 loc) · 960 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
using System.Runtime.InteropServices;
using System.Text;
using Lagrange.Core.Events.EventArgs;
using Lagrange.Core.NativeAPI.NativeModel.Common;
namespace Lagrange.Core.NativeAPI.NativeModel.Event
{
[StructLayout(LayoutKind.Sequential)]
public struct BotGroupRecallEventStruct : IEventStruct
{
public BotGroupRecallEventStruct() { }
public long GroupUin = 0;
public ulong Sequence = 0;
public long AuthorUin = 0;
public long OperatorUin = 0;
public ByteArrayNative Tip = new();
public static implicit operator BotGroupRecallEventStruct(BotGroupRecallEvent e)
{
return new BotGroupRecallEventStruct()
{
GroupUin = e.GroupUin,
Sequence = e.Sequence,
AuthorUin = e.AuthorUin,
OperatorUin = e.OperatorUin,
Tip = Encoding.UTF8.GetBytes(e.Tip)
};
}
}
}