-
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
8791d25
commit ffe73cf
Showing
12 changed files
with
359 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using KonataNT.Message; | ||
|
||
namespace KonataNT.Core.Handlers; | ||
|
||
internal class HighwayHandler(BaseClient client) | ||
{ | ||
private readonly HttpClient _client = new(); | ||
|
||
public Task UploadResources(MessageChain chain) | ||
{ | ||
foreach (var baseChain in chain) | ||
{ | ||
|
||
} | ||
|
||
throw new NotImplementedException(); | ||
} | ||
} |
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,15 @@ | ||
using ProtoBuf; | ||
|
||
#pragma warning disable CS8618 | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
[ProtoContract] | ||
internal class OidbFriend | ||
{ | ||
[ProtoMember(1)] public string Uid { get; set; } | ||
|
||
[ProtoMember(3)] public uint Uin { get; set; } | ||
|
||
[ProtoMember(10001)] public List<OidbFriendAdditional> Additional { 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,13 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
#pragma warning disable CS8618 | ||
|
||
[ProtoContract] | ||
internal class OidbFriendAdditional | ||
{ | ||
[ProtoMember(1)] public uint Type { get; set; } | ||
|
||
[ProtoMember(2)] public OidbFriendLayer1 Layer1 { 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,11 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
#pragma warning disable CS8618 | ||
|
||
[ProtoContract] | ||
internal class OidbFriendLayer1 | ||
{ | ||
[ProtoMember(2)] public List<OidbFriendProperty> Properties { 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,13 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
#pragma warning disable CS8618 | ||
|
||
[ProtoContract] | ||
internal class OidbFriendProperty | ||
{ | ||
[ProtoMember(1)] public uint Code { get; set; } | ||
|
||
[ProtoMember(2)] public string Value { 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,9 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
[ProtoContract] | ||
internal class OidbNumber | ||
{ | ||
[ProtoMember(1)] public List<uint> Numbers { get; set; } = new(); | ||
} |
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,33 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
#pragma warning disable CS8618 | ||
// ReSharper disable InconsistentNaming | ||
|
||
/// <summary> | ||
/// Fetch Friends List | ||
/// </summary> | ||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFD4_1 | ||
{ | ||
[ProtoMember(2)] public uint Field2 { get; set; } = 300; | ||
|
||
[ProtoMember(4)] public uint Field4 { get; set; } = 0; | ||
|
||
[ProtoMember(6)] public uint Field6 { get; set; } = 1; | ||
|
||
[ProtoMember(10001)] public List<OidbSvcTrpcTcp0xFD4_1Body> Body { get; set; } | ||
|
||
[ProtoMember(10002)] public List<uint> Field10002 { get; set; } = new() { 13578, 13579, 13573, 13572, 13568 }; | ||
|
||
[ProtoMember(10003)] public uint Field10003 { get; set; } = 4051; | ||
} | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFD4_1Body | ||
{ | ||
[ProtoMember(1)] public uint Type { get; set; } | ||
|
||
[ProtoMember(2)] public OidbNumber Number { get; set; } | ||
} |
18 changes: 18 additions & 0 deletions
18
KonataNT/Core/Packet/Oidb/OidbSvcTrpcTcp0xFD4_1Response.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,18 @@ | ||
using ProtoBuf; | ||
|
||
namespace KonataNT.Core.Packet.Oidb; | ||
|
||
// ReSharper disable InconsistentNaming | ||
#pragma warning disable CS8618 | ||
|
||
[ProtoContract] | ||
internal class OidbSvcTrpcTcp0xFD4_1Response | ||
{ | ||
[ProtoMember(3)] public uint DisplayFriendCount { get; set; } | ||
|
||
[ProtoMember(6)] public uint Timestamp { get; set; } | ||
|
||
[ProtoMember(7)] public uint SelfUin { get; set; } | ||
|
||
[ProtoMember(101)] public List<OidbFriend> Friends { get; set; } | ||
} |
Oops, something went wrong.