forked from LagrangeDev/LagrangeV2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBotGroupInviteSelfEventStruct.cs
More file actions
34 lines (28 loc) · 1011 Bytes
/
Copy pathBotGroupInviteSelfEventStruct.cs
File metadata and controls
34 lines (28 loc) · 1011 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
using System.Runtime.InteropServices;
using Lagrange.Core.Events.EventArgs;
namespace Lagrange.Core.NativeAPI.NativeModel.Event
{
[StructLayout(LayoutKind.Sequential)]
public struct BotGroupInviteSelfEventStruct : IEventStruct
{
public BotGroupInviteSelfEventStruct() { }
public long InvitationSeq = 0;
public long InitiatorUin = 0;
public long GroupUin = 0;
//public static implicit operator BotGroupMemberDecreaseEvent(BotGroupMemberDecreaseEventStruct e)
//{
// return new BotGroupMemberDecreaseEvent(
// e.GroupUin, e.UserUin, e.OperatorUin
// );
//}
public static implicit operator BotGroupInviteSelfEventStruct(BotGroupInviteSelfEvent e)
{
return new BotGroupInviteSelfEventStruct()
{
InvitationSeq = e.InvitationSeq,
InitiatorUin = e.InitiatorUin,
GroupUin = e.GroupUin
};
}
}
}