-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Rename and Fix SetGroupRequest
- Loading branch information
1 parent
94dc542
commit 6edf192
Showing
7 changed files
with
68 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
Lagrange.Core/Internal/Event/Action/AcceptGroupRequestEvent.cs
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
Lagrange.Core/Internal/Event/Action/SetGroupRequestEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace Lagrange.Core.Internal.Event.Action; | ||
|
||
internal class SetGroupRequestEvent : ProtocolEvent | ||
{ | ||
public ulong Sequence { get; set; } | ||
|
||
public uint GroupUin { get; set; } | ||
|
||
public bool Accept { get; set; } | ||
|
||
public uint Type { get; } | ||
|
||
private SetGroupRequestEvent(bool accept, uint groupUin, ulong sequence, uint type) : base(true) | ||
{ | ||
Accept = accept; | ||
GroupUin = groupUin; | ||
Sequence = sequence; | ||
Type = type; | ||
} | ||
|
||
private SetGroupRequestEvent(int resultCode) : base(resultCode) { } | ||
|
||
public static SetGroupRequestEvent Create(bool accept, uint groupUin, ulong sequence, uint type) | ||
=> new(accept, groupUin, sequence, type); | ||
|
||
public static SetGroupRequestEvent Result(int resultCode) => new(resultCode); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters