Skip to content

Commit

Permalink
[Core] Internalize classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Oct 17, 2023
1 parent a273e1e commit adaad56
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Lagrange.Core.Internal.Packets.Login.NTLogin;

public class NTLoginHttpRequest
internal class NTLoginHttpRequest
{
[JsonPropertyName("appid")] public long Appid { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Lagrange.Core.Internal.Packets.Login.NTLogin;

public class NTLoginHttpResponse
internal class NTLoginHttpResponse
{
[JsonPropertyName("retCode")] public int RetCode { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class OidbSvcTrpcTcp0xE37_1200
}

[ProtoContract]
public class OidbSvcTrpcTcp0xE37_1200Body
internal class OidbSvcTrpcTcp0xE37_1200Body
{
[ProtoMember(10)] public string ReceiverUid { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -25,7 +25,7 @@ public class OidbSvcTrpcTcp0xE37_800
}

[ProtoContract]
public class OidbSvcTrpcTcp0xE37_800Body
internal class OidbSvcTrpcTcp0xE37_800Body
{
[ProtoMember(10)] public string SenderUid { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
2 changes: 1 addition & 1 deletion Lagrange.Core/Message/MessageElementAttribute.cs
Original file line number Diff line number Diff line change
@@ -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; }

Expand Down
2 changes: 1 addition & 1 deletion Lagrange.Core/Utility/Binary/Compression/GZip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Lagrange.Core.Utility.Binary.Compression;

public static class GZip
internal static class GZip
{
public static byte[] Inflate(byte[] input)
{
Expand Down
4 changes: 2 additions & 2 deletions Lagrange.Core/Utility/ImageResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Lagrange.Core.Utility;

public static class ImageResolver
internal static class ImageResolver
{
public static ImageFormat Resolve(byte[] image, out Vector2 size)
{
Expand Down Expand Up @@ -66,7 +66,7 @@ public static ImageFormat Resolve(byte[] image, out Vector2 size)
}
}

public enum ImageFormat
internal enum ImageFormat
{
Unknown,
Png,
Expand Down

0 comments on commit adaad56

Please sign in to comment.