-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
764584f
commit c1f5a48
Showing
12 changed files
with
239 additions
and
13 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
63 changes: 63 additions & 0 deletions
63
KonataNT/Core/Packet/Oidb/OidbSvcTrpcTcp0xFE7_2Response.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,63 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
// ReSharper disable InconsistentNaming | ||
#pragma warning disable CS8618 | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_2Response | ||
{ | ||
[ProtoMember(1)] public uint GroupUin { get; set; } | ||
|
||
[ProtoMember(2)] public List<OidbSvcTrpcTcp0xFE7_2Member> Members { get; set; } | ||
|
||
[ProtoMember(3)] public uint Field3 { get; set; } | ||
|
||
[ProtoMember(5)] public uint MemberChangeSeq { get; set; } | ||
|
||
[ProtoMember(6)] public uint MemberCardChangeSeq { get; set; } | ||
|
||
[ProtoMember(15)] public string? Token { get; set; } // for the next page | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_2Member | ||
{ | ||
[ProtoMember(1)] public OidbSvcTrpcTcp0xFE7_2Uin Uin { get; set; } | ||
|
||
[ProtoMember(10)] public string MemberName { get; set; } | ||
|
||
[ProtoMember(11)] public OidbSvcTrpcTcp0xFE7_2Card MemberCard { get; set; } | ||
|
||
[ProtoMember(12)] public OidbSvcTrpcTcp0xFE7_2Level? Level { get; set; } | ||
|
||
[ProtoMember(100)] public uint JoinTimestamp { get; set; } | ||
|
||
[ProtoMember(101)] public uint LastMsgTimestamp { get; set; } | ||
|
||
[ProtoMember(107)] public uint Permission { get; set; } | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_2Uin | ||
{ | ||
[ProtoMember(2)] public string Uid { get; set; } | ||
|
||
[ProtoMember(4)] public uint Uin { get; set; } | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_2Card | ||
{ | ||
[ProtoMember(2)] public string? MemberCard { get; set; } | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_2Level | ||
{ | ||
[ProtoMember(1)] public List<uint>? Infos { get; set; } | ||
|
||
[ProtoMember(2)] public uint Level { get; set; } | ||
} | ||
|
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,50 @@ | ||
using ProtoBuf; | ||
|
||
#pragma warning disable CS8618 | ||
// Resharper disable InconsistentNaming | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFE7_3 | ||
{ | ||
[ProtoMember(1)] public uint GroupUin { get; set; } | ||
|
||
[ProtoMember(2)] public uint Field2 { get; set; } // 5 | ||
|
||
[ProtoMember(3)] public uint Field3 { get; set; } // 2 | ||
|
||
[ProtoMember(4)] public OidbSvcTrpcScp0xFE7_3Body Body { get; set; } | ||
|
||
[ProtoMember(15)] public string? Token { get; set; } | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcScp0xFE7_3Body | ||
{ | ||
[ProtoMember(10)] public bool MemberName { get; set; } // 1 | ||
|
||
[ProtoMember(11)] public bool MemberCard { get; set; } // 1 | ||
|
||
[ProtoMember(12)] public bool Level { get; set; } // 1 | ||
|
||
[ProtoMember(20)] public bool Field4 { get; set; } // 1 | ||
|
||
[ProtoMember(21)] public bool Field5 { get; set; } // 1 | ||
|
||
[ProtoMember(100)] public bool JoinTimestamp { get; set; } // 1 | ||
|
||
[ProtoMember(101)] public bool LastMsgTimestamp { get; set; } // 1 | ||
|
||
[ProtoMember(102)] public bool Field8 { get; set; } // 1 | ||
|
||
[ProtoMember(103)] public bool Field9 { get; set; } // 1 | ||
|
||
[ProtoMember(104)] public bool Field10 { get; set; } // 1 | ||
|
||
[ProtoMember(105)] public bool Field11 { get; set; } // 1 | ||
|
||
[ProtoMember(106)] public bool Field12 { get; set; } // 1 | ||
|
||
[ProtoMember(107)] public bool Permission { get; set; } // 1 | ||
} |
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,21 @@ | ||
using KonataNT.Message; | ||
|
||
namespace KonataNT.Events.EventArgs; | ||
|
||
public class BotGroupMessageEvent : EventBase | ||
{ | ||
public BotGroupMessageEvent(uint groupUin, uint memberUin, MessageStruct message) | ||
{ | ||
GroupUin = groupUin; | ||
MemberUin = memberUin; | ||
Message = message; | ||
|
||
EventMessage = $"[{nameof(BotGroupMessageEvent)}] {groupUin} {memberUin} {message}"; | ||
} | ||
|
||
public uint GroupUin { get; } | ||
|
||
public uint MemberUin { get; } | ||
|
||
public MessageStruct Message { get; } | ||
} |
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,18 @@ | ||
using KonataNT.Message; | ||
|
||
namespace KonataNT.Events.EventArgs; | ||
|
||
public class BotPrivateMessageEvent : EventBase | ||
{ | ||
public uint FriendUin { get; } | ||
|
||
public MessageStruct Message { get; } | ||
|
||
public BotPrivateMessageEvent(uint friendUin, MessageStruct message) | ||
{ | ||
FriendUin = friendUin; | ||
Message = message; | ||
|
||
EventMessage = $"[{nameof(BotPrivateMessageEvent)}] {friendUin} {message}"; | ||
} | ||
} |
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,6 @@ | ||
namespace KonataNT.Events.EventArgs; | ||
|
||
public class BotStrangerMessageEvent : EventBase | ||
{ | ||
|
||
} |
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
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