This repository was archived by the owner on Oct 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 354
[Core] Implemented the recall poke #839
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| namespace Lagrange.Core.Event.EventArg; | ||
|
|
||
| public class FriendRecallPokeEvent : EventBase | ||
| { | ||
| public uint PeerUin { get; } | ||
|
|
||
| public uint OperatorUin { get; } | ||
|
|
||
| public ulong TipsSeqId { get; set; } | ||
|
|
||
| public FriendRecallPokeEvent(uint peerUin, uint operatorUin, ulong tipsSeqId) | ||
| { | ||
| PeerUin = peerUin; | ||
| OperatorUin = operatorUin; | ||
| TipsSeqId = tipsSeqId; | ||
|
|
||
| EventMessage = $"[FriendRecallPoke] Peer: {PeerUin} | Operator: {OperatorUin} | TipsSeqId: {TipsSeqId}"; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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,19 @@ | ||
| namespace Lagrange.Core.Event.EventArg; | ||
|
|
||
| public class GroupRecallPokeEvent : EventBase | ||
| { | ||
| public uint GroupUin { get; } | ||
|
|
||
| public uint OperatorUin { get; } | ||
|
|
||
| public ulong TipsSeqId { get; set; } | ||
|
|
||
| public GroupRecallPokeEvent(uint groupUin, uint operatorUin, ulong tipsSeqId) | ||
| { | ||
| GroupUin = groupUin; | ||
| OperatorUin = operatorUin; | ||
| TipsSeqId = tipsSeqId; | ||
|
|
||
| EventMessage = $"[GroupRecallPoke] Group: {GroupUin} | Operator: {OperatorUin} | TipsSeqId: {TipsSeqId}"; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,35 @@ | ||
|
|
||
| namespace Lagrange.Core.Internal.Event.Message; | ||
|
|
||
| internal class RecallPokeEvent : ProtocolEvent | ||
| { | ||
| public bool IsGroup { get; init; } | ||
| public ulong Uin { get; init; } | ||
| public ulong MessageSequence { get; init; } | ||
| public ulong MessageTime { get; init; } | ||
| public ulong TipsSeqId { get; internal set; } | ||
|
|
||
| public string Message { get; set; } | ||
|
|
||
| private RecallPokeEvent(bool isGroup, ulong uin, ulong messageSequence, ulong messageTime, ulong tipsSeqId) : base(true) | ||
| { | ||
| IsGroup = isGroup; | ||
| Uin = uin; | ||
| MessageSequence = messageSequence; | ||
| MessageTime = messageTime; | ||
| TipsSeqId = tipsSeqId; | ||
|
|
||
| Message = null!; | ||
| } | ||
|
|
||
| private RecallPokeEvent(int retcode, string message) : base(retcode) | ||
| { | ||
| Message = message; | ||
| } | ||
|
|
||
| public static RecallPokeEvent Create(bool isGroup, ulong uin, ulong messageSequence, ulong messageTime, ulong tipsSeqId) | ||
| => new(isGroup, uin, messageSequence, messageTime, tipsSeqId); | ||
|
|
||
| public static RecallPokeEvent Result(int retcode, string message) | ||
| => new(retcode, message); | ||
| } |
This file contains hidden or 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
20 changes: 20 additions & 0 deletions
20
Lagrange.Core/Internal/Event/Notify/FriendSysRecallPokeEvent.cs
This file contains hidden or 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,20 @@ | ||
| namespace Lagrange.Core.Internal.Event.Notify; | ||
|
|
||
| internal class FriendSysRecallPokeEvent : ProtocolEvent | ||
| { | ||
| public string PeerUid { get; } | ||
|
|
||
| public string OperatorUid { get; } | ||
|
|
||
| public ulong TipsSeqId { get; set; } | ||
|
|
||
| private FriendSysRecallPokeEvent(string peerUid, string operatorUid, ulong tipsSeqId) : base(0) | ||
| { | ||
| PeerUid = peerUid; | ||
| OperatorUid = operatorUid; | ||
| TipsSeqId = tipsSeqId; | ||
| } | ||
|
|
||
| public static FriendSysRecallPokeEvent Result(string peerUid, string operatorUid, ulong tipsSeqId) | ||
| => new(peerUid, operatorUid, tipsSeqId); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Public API extension methods lack XML documentation comments; consider adding summaries to explain purpose and parameters.