[Core] Internalize classes
This commit is contained in:
parent
a273e1ebde
commit
adaad5698b
|
@ -3,7 +3,7 @@ using ProtoBuf;
|
|||
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
|
||||
|
||||
[ProtoContract]
|
||||
public class ServerAddr
|
||||
internal class ServerAddr
|
||||
{
|
||||
[ProtoMember(1)] public uint Type { get; set; }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
|
|||
#pragma warning disable CS8618
|
||||
|
||||
[ProtoContract]
|
||||
public class ServerInfo
|
||||
internal class ServerInfo
|
||||
{
|
||||
[ProtoMember(1)] public uint ServiceType { get; set; }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Text.Json.Serialization;
|
|||
|
||||
namespace Lagrange.Core.Internal.Packets.Login.NTLogin;
|
||||
|
||||
public class NTLoginHttpRequest
|
||||
internal class NTLoginHttpRequest
|
||||
{
|
||||
[JsonPropertyName("appid")] public long Appid { get; set; }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Text.Json.Serialization;
|
|||
|
||||
namespace Lagrange.Core.Internal.Packets.Login.NTLogin;
|
||||
|
||||
public class NTLoginHttpResponse
|
||||
internal class NTLoginHttpResponse
|
||||
{
|
||||
[JsonPropertyName("retCode")] public int RetCode { get; set; }
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Lagrange.Core.Internal.Packets.Service.Oidb.Request;
|
|||
|
||||
[ProtoContract]
|
||||
[OidbSvcTrpcTcp(0x7c1, 1)]
|
||||
public class OidbSvcTrpcTcp0x7C1_1
|
||||
internal class OidbSvcTrpcTcp0x7C1_1
|
||||
{
|
||||
[ProtoMember(1)] public uint Field1 { get; set; } // 1
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ internal class OidbSvcTrpcTcp0xE37_1200
|
|||
}
|
||||
|
||||
[ProtoContract]
|
||||
public class OidbSvcTrpcTcp0xE37_1200Body
|
||||
internal class OidbSvcTrpcTcp0xE37_1200Body
|
||||
{
|
||||
[ProtoMember(10)] public string ReceiverUid { get; set; }
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Lagrange.Core.Internal.Packets.Service.Oidb.Request;
|
|||
/// </summary>
|
||||
[ProtoContract]
|
||||
[OidbSvcTrpcTcp(0xE37, 800)]
|
||||
public class OidbSvcTrpcTcp0xE37_800
|
||||
internal class OidbSvcTrpcTcp0xE37_800
|
||||
{
|
||||
[ProtoMember(1)] public uint SubCommand => 800;
|
||||
|
||||
|
@ -25,7 +25,7 @@ public class OidbSvcTrpcTcp0xE37_800
|
|||
}
|
||||
|
||||
[ProtoContract]
|
||||
public class OidbSvcTrpcTcp0xE37_800Body
|
||||
internal class OidbSvcTrpcTcp0xE37_800Body
|
||||
{
|
||||
[ProtoMember(10)] public string SenderUid { get; set; }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Lagrange.Core.Internal.Packets.Service.Oidb.Response;
|
|||
// ReSharper disable InconsistentNaming
|
||||
|
||||
[ProtoContract]
|
||||
public class OidbSvcTrpcTcp0x8FC_3Response
|
||||
internal class OidbSvcTrpcTcp0x8FC_3Response
|
||||
{
|
||||
[ProtoMember(1)] public uint GroupUin { get; set; }
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
namespace Lagrange.Core.Message;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public class MessageElementAttribute : Attribute
|
||||
internal class MessageElementAttribute : Attribute
|
||||
{
|
||||
public Type Element { get; }
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.IO.Compression;
|
|||
|
||||
namespace Lagrange.Core.Utility.Binary.Compression;
|
||||
|
||||
public static class GZip
|
||||
internal static class GZip
|
||||
{
|
||||
public static byte[] Inflate(byte[] input)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using BitConverter = Lagrange.Core.Utility.Binary.BitConverter;
|
|||
|
||||
namespace Lagrange.Core.Utility;
|
||||
|
||||
public static class ImageResolver
|
||||
internal static class ImageResolver
|
||||
{
|
||||
public static ImageFormat Resolve(byte[] image, out Vector2 size)
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ public static class ImageResolver
|
|||
}
|
||||
}
|
||||
|
||||
public enum ImageFormat
|
||||
internal enum ImageFormat
|
||||
{
|
||||
Unknown,
|
||||
Png,
|
||||
|
|
Loading…
Reference in New Issue