Skip to content

Commit

Permalink
[Core] Add Missing responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Dec 21, 2023
1 parent 4f2acf8 commit be48091
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using ProtoBuf;

namespace Lagrange.Core.Internal.Packets.Service.Oidb.Response;

// Resharper Disable InconsistentNaming
#pragma warning disable CS8618

[ProtoContract]
internal class OidbSvcTrpcTcp0x10C0_1Response
{
[ProtoMember(1)] public List<OidbSvcTrpcTcp0x10C0_1ResponseRequests> Requests { get; set; }

[ProtoMember(2)] public ulong Field2 { get; set; }

[ProtoMember(3)] public ulong NewLatestSeq { get; set; }

[ProtoMember(4)] public uint Field4 { get; set; }

[ProtoMember(5)] public ulong Field5 { get; set; }

[ProtoMember(6)] public uint Field6 { get; set; }
}

[ProtoContract]
internal class OidbSvcTrpcTcp0x10C0_1ResponseRequests
{
[ProtoMember(1)] public ulong Sequence { get; set; }

[ProtoMember(2)] public uint EventType { get; set; } // 13 for exit group, 22 for group request

[ProtoMember(3)] public uint State { get; set; } // 2 for Join, 1 for waiting for action

[ProtoMember(4)] public OidbSvcTrpcTcp0x10C0_1ResponseGroup Group { get; set; }

[ProtoMember(5)] public OidbSvcTrpcTcp0x10C0_1ResponseUser Target { get; set; }

[ProtoMember(6)] public OidbSvcTrpcTcp0x10C0_1ResponseUser Invitor { get; set; }

[ProtoMember(7)] public OidbSvcTrpcTcp0x10C0_1ResponseUser Operator { get; set; }

[ProtoMember(9)] public string Field9 { get; set; }
}

[ProtoContract]
internal class OidbSvcTrpcTcp0x10C0_1ResponseGroup
{
[ProtoMember(1)] public uint GroupUin { get; set; }

[ProtoMember(2)] public string GroupName { get; set; } // 13 for exit group, 22 for group request
}

[ProtoContract]
internal class OidbSvcTrpcTcp0x10C0_1ResponseUser
{
[ProtoMember(1)] public string Uid { get; set; }

[ProtoMember(2)] public string Name { get; set; } // 13 for exit group, 22 for group request
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using ProtoBuf;

// Resharper Disable InconsistentNaming

namespace Lagrange.Core.Internal.Packets.Service.Oidb.Response;

[ProtoContract]
internal class OidbSvcTrpcTcp0xFE1_2Response
{
[ProtoMember(3)] public uint Uin { get; set; }
}

0 comments on commit be48091

Please sign in to comment.