[Breaking Change] Change Lagrange.Core.Core namespace to Lagrange.Core.Internal

This commit is contained in:
Linwenxuan05 2023-09-15 23:24:56 +08:00
parent 6b5e50d8eb
commit 3ce6ee32aa
381 changed files with 747 additions and 779 deletions

View File

@ -1,10 +1,13 @@
using Lagrange.Core.Test.Tests;
// BenchmarkRunner.Run<ProtoBufTest>(new DebugBuildConfig());
await new NTLoginTest().LoginByPassword();
// await new WtLoginTest().FetchQrCode();
namespace Lagrange.Core.Test;
public class Test
internal static class Program
{
public string Name { get; set; } = "";
public static async Task Main(string[] args)
{
// BenchmarkRunner.Run<ProtoBufTest>(new DebugBuildConfig());
await new NTLoginTest().LoginByPassword();
// await new WtLoginTest().FetchQrCode();
}
}

View File

@ -1,4 +1,4 @@
using Lagrange.Core.Core.Packets.Login.Ecdh;
using Lagrange.Core.Internal.Packets.Login.Ecdh;
using Lagrange.Core.Utility.Extension;
using ProtoBuf;

View File

@ -28,19 +28,19 @@ public class NTLoginTest
Protocol = Protocols.Linux
}, deviceInfo, keyStore);
bot.Invoker.OnBotLogEvent += (context, @event) =>
bot.Invoker.OnBotLogEvent += (_, @event) =>
{
Utility.Console.ChangeColorByTitle(@event.Level);
Console.WriteLine(@event.ToString());
};
bot.Invoker.OnBotOnlineEvent += (context, @event) =>
bot.Invoker.OnBotOnlineEvent += (_, @event) =>
{
Console.WriteLine(@event.ToString());
WtLoginTest.SaveKeystore(bot.UpdateKeystore());
};
bot.Invoker.OnBotCaptchaEvent += (context, @event) =>
bot.Invoker.OnBotCaptchaEvent += (_, @event) =>
{
Console.WriteLine(@event.ToString());
var captcha = Console.ReadLine();
@ -48,7 +48,7 @@ public class NTLoginTest
if (captcha != null && randStr != null) bot.SubmitCaptcha(captcha, randStr);
};
bot.Invoker.OnGroupInvitationReceived += async (context, @event) =>
bot.Invoker.OnGroupInvitationReceived += async (_, @event) =>
{
Console.WriteLine(@event.ToString());
};

View File

@ -1,4 +1,4 @@
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Internal.Event.EventArg;
namespace Lagrange.Core.Test.Utility;

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Common;
using Lagrange.Core.Core.Context;
using Lagrange.Core.Core.Event;
using Lagrange.Core.Internal.Context;
using Lagrange.Core.Internal.Event;
namespace Lagrange.Core;

View File

@ -1,6 +0,0 @@
namespace Lagrange.Core.Core.Event.EventArg;
public class BotOfflineEvent : EventBase
{
}

View File

@ -1,6 +0,0 @@
namespace Lagrange.Core.Core.Event.EventArg;
public class BotOnlineEvent : EventBase
{
}

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Context.Attributes;
namespace Lagrange.Core.Internal.Context.Attributes;
[AttributeUsage(AttributeTargets.Class)]
internal class BusinessLogicAttribute : Attribute

View File

@ -1,15 +1,15 @@
using System.Reflection;
using Lagrange.Core.Common;
using Lagrange.Core.Core.Context.Attributes;
using Lagrange.Core.Core.Context.Logic;
using Lagrange.Core.Core.Context.Logic.Implementation;
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Core.Packets;
using Lagrange.Core.Core.Service;
using Lagrange.Core.Internal.Context.Attributes;
using Lagrange.Core.Internal.Context.Logic;
using Lagrange.Core.Internal.Context.Logic.Implementation;
using Lagrange.Core.Internal.Event.Protocol;
using Lagrange.Core.Internal.Packets;
using Lagrange.Core.Internal.Service;
using Lagrange.Core.Utility.Extension;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
internal class BusinessContext : ContextBase
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Common;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
internal abstract class ContextBase
{

View File

@ -1,8 +1,8 @@
using Lagrange.Core.Common;
using Lagrange.Core.Core.Event;
using Lagrange.Core.Internal.Event;
using TaskScheduler = Lagrange.Core.Utility.TaskScheduler;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
internal class ContextCollection
{

View File

@ -1,10 +1,10 @@
using Lagrange.Core.Common;
using Lagrange.Core.Core.Packets.Service.Highway;
using Lagrange.Core.Internal.Packets.Service.Highway;
using Lagrange.Core.Utility.Binary;
using Lagrange.Core.Utility.Extension;
using ProtoBuf.Meta;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
/// <summary>
/// <para>Provides BDH (Big-Data Highway) Operation</para>

View File

@ -1,11 +1,11 @@
using Lagrange.Core.Common;
using Lagrange.Core.Core.Event;
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Internal.Event;
using Lagrange.Core.Internal.Event.EventArg;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
/// <summary>
/// Log context, all the logs will be dispatched to this context and then to the <see cref="Lagrange.Core.Core.Event.EventArg.BotLogEvent"/>.
/// Log context, all the logs will be dispatched to this context and then to the <see cref="BotLogEvent"/>.
/// </summary>
internal class LogContext : ContextBase
{

View File

@ -1,10 +1,10 @@
using Lagrange.Core.Common.Entity;
using Lagrange.Core.Core.Context.Attributes;
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Core.Event.Protocol.System;
using Lagrange.Core.Core.Service;
using Lagrange.Core.Internal.Context.Attributes;
using Lagrange.Core.Internal.Event.Protocol;
using Lagrange.Core.Internal.Event.Protocol.System;
using Lagrange.Core.Internal.Service;
namespace Lagrange.Core.Core.Context.Logic.Implementation;
namespace Lagrange.Core.Internal.Context.Logic.Implementation;
[EventSubscribe(typeof(InfoPushGroupEvent))]
[BusinessLogic("CachingLogic", "Cache Uin to Uid")]

View File

@ -1,15 +1,15 @@
using Lagrange.Core.Core.Context.Attributes;
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Core.Event.Protocol.Message;
using Lagrange.Core.Core.Service;
using Lagrange.Core.Internal.Context.Attributes;
using Lagrange.Core.Internal.Event;
using Lagrange.Core.Internal.Event.EventArg;
using Lagrange.Core.Internal.Event.Protocol;
using Lagrange.Core.Internal.Event.Protocol.Message;
using Lagrange.Core.Internal.Event.Protocol.Notify;
using Lagrange.Core.Internal.Service;
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;
using Lagrange.Core.Core.Event;
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Core.Event.Protocol.Notify;
using Lagrange.Core.Utility.Extension;
namespace Lagrange.Core.Core.Context.Logic.Implementation;
namespace Lagrange.Core.Internal.Context.Logic.Implementation;
[EventSubscribe(typeof(PushMessageEvent))]
[EventSubscribe(typeof(SendMessageEvent))]

View File

@ -1,12 +1,11 @@
using Lagrange.Core.Common.Entity;
using Lagrange.Core.Core.Context.Attributes;
using Lagrange.Core.Core.Event.Protocol.System;
using Lagrange.Core.Core.Event.Protocol.Message;
using Lagrange.Core.Internal.Context.Attributes;
using Lagrange.Core.Internal.Event.Protocol.Action;
using Lagrange.Core.Internal.Event.Protocol.Message;
using Lagrange.Core.Internal.Event.Protocol.System;
using Lagrange.Core.Message;
using System.Text;
using Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Core.Context.Logic.Implementation;
namespace Lagrange.Core.Internal.Context.Logic.Implementation;
[BusinessLogic("OperationLogic", "Manage the user operation of the bot")]
internal class OperationLogic : LogicBase

View File

@ -1,20 +1,20 @@
using System.Text.Json;
using Lagrange.Core.Common;
using Lagrange.Core.Core.Context.Attributes;
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Core.Event.Protocol.Login;
using Lagrange.Core.Core.Event.Protocol.Login.Ecdh;
using Lagrange.Core.Core.Event.Protocol.System;
using Lagrange.Core.Core.Packets.Login.NTLogin;
using Lagrange.Core.Core.Packets.Login.WtLogin.Entity;
using Lagrange.Core.Core.Service;
using Lagrange.Core.Internal.Context.Attributes;
using Lagrange.Core.Internal.Event.EventArg;
using Lagrange.Core.Internal.Event.Protocol;
using Lagrange.Core.Internal.Event.Protocol.Login;
using Lagrange.Core.Internal.Event.Protocol.Login.Ecdh;
using Lagrange.Core.Internal.Event.Protocol.System;
using Lagrange.Core.Internal.Packets.Login.NTLogin;
using Lagrange.Core.Internal.Packets.Login.WtLogin.Entity;
using Lagrange.Core.Internal.Service;
using Lagrange.Core.Utility.Crypto;
using Lagrange.Core.Utility.Network;
// ReSharper disable AsyncVoidLambda
namespace Lagrange.Core.Core.Context.Logic.Implementation;
namespace Lagrange.Core.Internal.Context.Logic.Implementation;
[EventSubscribe(typeof(TransEmpEvent))]
[EventSubscribe(typeof(LoginEvent))]

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Internal.Event.Protocol;
namespace Lagrange.Core.Core.Context.Logic;
namespace Lagrange.Core.Internal.Context.Logic;
internal abstract class LogicBase
{

View File

@ -1,10 +1,10 @@
using System.Collections.Concurrent;
using Lagrange.Core.Common;
using Lagrange.Core.Core.Packets;
using Lagrange.Core.Internal.Packets;
using Lagrange.Core.Utility.Binary;
#pragma warning disable CS4014
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
/// <summary>
/// <para>Translate the protocol event into SSOPacket and further ServiceMessage</para>

View File

@ -1,14 +1,14 @@
using System.Collections.Concurrent;
using System.Reflection;
using Lagrange.Core.Common;
using Lagrange.Core.Core.Event.Protocol;
using Lagrange.Core.Core.Packets;
using Lagrange.Core.Core.Service;
using Lagrange.Core.Core.Service.Abstraction;
using Lagrange.Core.Internal.Event.Protocol;
using Lagrange.Core.Internal.Packets;
using Lagrange.Core.Internal.Service;
using Lagrange.Core.Internal.Service.Abstraction;
using Lagrange.Core.Utility.Binary;
using Lagrange.Core.Utility.Extension;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
/// <summary>
/// <para>Manage the service and packet translation of the Bot</para>

View File

@ -1,13 +1,12 @@
using System.Buffers.Binary;
using System.Net;
using System.Net.Sockets;
using Lagrange.Core.Common;
using Lagrange.Core.Core.Event.Protocol.System;
using Lagrange.Core.Core.Network;
using Lagrange.Core.Internal.Event.Protocol.System;
using Lagrange.Core.Internal.Network;
using Lagrange.Core.Utility.Binary;
using Lagrange.Core.Utility.Network;
namespace Lagrange.Core.Core.Context;
namespace Lagrange.Core.Internal.Context;
/// <summary>
/// <para>Provide Low-Allocation Tcp Client which connects to the Tencent's SSO Server</para>

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class BotCaptchaEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public enum LogLevel
{

View File

@ -0,0 +1,6 @@
namespace Lagrange.Core.Internal.Event.EventArg;
public class BotOfflineEvent : EventBase
{
}

View File

@ -0,0 +1,6 @@
namespace Lagrange.Core.Internal.Event.EventArg;
public class BotOnlineEvent : EventBase
{
}

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Message;
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class FriendMessageEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class GroupAdminChangedEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class GroupInvitationEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class GroupMemberDecreaseEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class GroupMemberIncreaseEvent : EventBase
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Message;
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class GroupMessageEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.EventArg;
namespace Lagrange.Core.Internal.Event.EventArg;
public class TempMessageEvent : EventBase
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event;
namespace Lagrange.Core.Internal.Event;
/// <summary>
/// Event that exposed to user

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Internal.Event.EventArg;
namespace Lagrange.Core.Core.Event;
namespace Lagrange.Core.Internal.Event;
public partial class EventInvoker
{

View File

@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
using Lagrange.Core.Core.Event.EventArg;
using Lagrange.Core.Internal.Event.EventArg;
namespace Lagrange.Core.Core.Event;
namespace Lagrange.Core.Internal.Event;
public partial class EventInvoker : IDisposable
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class AcceptGroupRequestEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class GroupKickMemberEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class GroupMuteGlobalEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class GroupMuteMemberEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class GroupSetAdminEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
#pragma warning disable CS8618

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class RequestFriendEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class RequestFriendSearchEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Action;
namespace Lagrange.Core.Internal.Event.Protocol.Action;
internal class RequestFriendSettingEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class EasyLoginEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Login.Ecdh;
namespace Lagrange.Core.Internal.Event.Protocol.Login.Ecdh;
internal class KeyExchangeEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class LoginCommon
{

View File

@ -1,6 +1,6 @@
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class LoginEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class PasswordLoginEvent : ProtocolEvent
{

View File

@ -1,7 +1,6 @@
using Lagrange.Core.Core.Packets.Login.WtLogin.Entity;
using Lagrange.Core.Internal.Packets.Login.WtLogin.Entity;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class TransEmpEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Login;
namespace Lagrange.Core.Internal.Event.Protocol.Login;
internal class UnusualEasyLoginEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class FileDownloadEvent : ProtocolEvent
{

View File

@ -1,8 +1,7 @@
using Lagrange.Core.Utility.Extension;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class ImageGroupUploadEvent : ProtocolEvent
{

View File

@ -1,8 +1,7 @@
using Lagrange.Core.Utility.Extension;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class ImageUploadEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Message;
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class MultiMsgDownloadEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Message;
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class MultiMsgUploadEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Message;
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class PushMessageEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class RecallGroupMessageEvent : ProtocolEvent
{

View File

@ -1,8 +1,7 @@
using Lagrange.Core.Message;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.Message;
namespace Lagrange.Core.Internal.Event.Protocol.Message;
internal class SendMessageEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Notify;
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
internal class GroupSysAdminEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Notify;
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
internal class GroupSysDecreaseEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Notify;
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
internal class GroupSysIncreaseEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.Notify;
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
internal class GroupSysInviteEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol;
namespace Lagrange.Core.Internal.Event.Protocol;
internal class ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class AliveEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class CorrectTimeEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class FetchClientKeyEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class FetchCookieEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Common.Entity;
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class FetchFriendsEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Common.Entity;
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class FetchMembersEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
#pragma warning disable CS8618

View File

@ -1,6 +1,6 @@
using Lagrange.Core.Common.Entity;
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
#pragma warning disable CS8618
internal class InfoPushGroupEvent : ProtocolEvent

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class InfoSyncEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
// ReSharper disable once InconsistentNaming

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class SsoAliveEvent : ProtocolEvent
{

View File

@ -1,6 +1,6 @@
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Event.Protocol.System;
namespace Lagrange.Core.Internal.Event.Protocol.System;
internal class StatusRegisterEvent : ProtocolEvent
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Network;
namespace Lagrange.Core.Internal.Network;
internal sealed class CallbackClientListener : ClientListener
{

View File

@ -1,6 +1,6 @@
using System.Net.Sockets;
namespace Lagrange.Core.Core.Network;
namespace Lagrange.Core.Internal.Network;
internal abstract partial class ClientListener
{

View File

@ -2,7 +2,7 @@ using System.Net.Sockets;
using System.Runtime.CompilerServices;
using Lagrange.Core.Utility.Extension;
namespace Lagrange.Core.Core.Network;
namespace Lagrange.Core.Internal.Network;
internal abstract partial class ClientListener : IClientListener
{

View File

@ -1,4 +1,4 @@
namespace Lagrange.Core.Core.Network;
namespace Lagrange.Core.Internal.Network;
internal interface IClientListener
{

View File

@ -2,7 +2,7 @@ using ProtoBuf;
// ReSharper disable InconsistentNaming
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class FirstViewReq

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class GetGroupMsgReq

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class GetGroupMsgResp

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
[ProtoContract]
internal class HttpConn

View File

@ -3,7 +3,7 @@ using ProtoBuf;
// ReSharper disable InconsistentNaming
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
[ProtoContract]
internal class HttpConn0x6ff_501

View File

@ -3,7 +3,7 @@ using ProtoBuf;
// ReSharper disable InconsistentNaming
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
[ProtoContract]
internal class HttpConn0x6ff_501Response

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
#pragma warning disable CS8618

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
[ProtoContract]
public class ServerAddr

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
#pragma warning disable CS8618

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbGetOneDayRoamMsgReq

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbGetOneDayRoamMsgResp

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbMultiMsgItem

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbMultiMsgNew

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbMultiMsgTransmit

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action.Pb;
namespace Lagrange.Core.Internal.Packets.Action.Pb;
[ProtoContract]
internal class PbPushMsg

View File

@ -1,10 +1,8 @@
using Lagrange.Core.Core.Packets.Message;
using Lagrange.Core.Core.Packets.Message.Routing;
using Lagrange.Core.Internal.Packets.Message;
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class SendMessageRequest

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class SendMessageResponse

View File

@ -1,6 +1,6 @@
using ProtoBuf;
namespace Lagrange.Core.Core.Packets.Action;
namespace Lagrange.Core.Internal.Packets.Action;
[ProtoContract]
internal class SyncCookie

View File

@ -1,8 +1,7 @@
using ProtoBuf;
#pragma warning disable CS8618
namespace Lagrange.Core.Core.Packets.Login.Ecdh.Plain;
namespace Lagrange.Core.Internal.Packets.Login.Ecdh.Plain;
[ProtoContract]
internal class SsoKeyExchangeDecrypted

Some files were not shown because too many files have changed in this diff Show More