[Breaking Change] Change Lagrange.Core.Core namespace to Lagrange.Core.Internal
This commit is contained in:
parent
6b5e50d8eb
commit
3ce6ee32aa
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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());
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Lagrange.Core.Core.Event.EventArg;
|
||||
using Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
namespace Lagrange.Core.Test.Utility;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
|
||||
public class BotOfflineEvent : EventBase
|
||||
{
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
|
||||
public class BotOnlineEvent : EventBase
|
||||
{
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Context.Attributes;
|
||||
namespace Lagrange.Core.Internal.Context.Attributes;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
internal class BusinessLogicAttribute : Attribute
|
|
@ -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
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Lagrange.Core.Common;
|
||||
|
||||
namespace Lagrange.Core.Core.Context;
|
||||
namespace Lagrange.Core.Internal.Context;
|
||||
|
||||
internal abstract class ContextBase
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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>
|
|
@ -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
|
||||
{
|
|
@ -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")]
|
|
@ -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))]
|
|
@ -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
|
|
@ -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))]
|
|
@ -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
|
||||
{
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class BotCaptchaEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public enum LogLevel
|
||||
{
|
6
Lagrange.Core/Internal/Event/EventArg/BotOfflineEvent.cs
Normal file
6
Lagrange.Core/Internal/Event/EventArg/BotOfflineEvent.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class BotOfflineEvent : EventBase
|
||||
{
|
||||
|
||||
}
|
6
Lagrange.Core/Internal/Event/EventArg/BotOnlineEvent.cs
Normal file
6
Lagrange.Core/Internal/Event/EventArg/BotOnlineEvent.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class BotOnlineEvent : EventBase
|
||||
{
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
using Lagrange.Core.Message;
|
||||
|
||||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class FriendMessageEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class GroupAdminChangedEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class GroupInvitationEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class GroupMemberDecreaseEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class GroupMemberIncreaseEvent : EventBase
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Lagrange.Core.Message;
|
||||
|
||||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class GroupMessageEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.EventArg;
|
||||
namespace Lagrange.Core.Internal.Event.EventArg;
|
||||
|
||||
public class TempMessageEvent : EventBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event;
|
||||
namespace Lagrange.Core.Internal.Event;
|
||||
|
||||
/// <summary>
|
||||
/// Event that exposed to user
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class AcceptGroupRequestEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class GroupKickMemberEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class GroupMuteGlobalEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class GroupMuteMemberEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class GroupSetAdminEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
#pragma warning disable CS8618
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class RequestFriendEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class RequestFriendSearchEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Action;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Action;
|
||||
|
||||
internal class RequestFriendSettingEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Login;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Login;
|
||||
|
||||
internal class EasyLoginEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Login.Ecdh;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Login.Ecdh;
|
||||
|
||||
internal class KeyExchangeEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Login;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Login;
|
||||
|
||||
internal class LoginCommon
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Login;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Login;
|
||||
|
||||
internal class PasswordLoginEvent : ProtocolEvent
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Login;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Login;
|
||||
|
||||
internal class UnusualEasyLoginEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Message;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Message;
|
||||
|
||||
internal class FileDownloadEvent : ProtocolEvent
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Message;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Message;
|
||||
|
||||
internal class RecallGroupMessageEvent : ProtocolEvent
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Notify;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
|
||||
|
||||
internal class GroupSysAdminEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Notify;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
|
||||
|
||||
internal class GroupSysDecreaseEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Notify;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
|
||||
|
||||
internal class GroupSysIncreaseEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.Notify;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.Notify;
|
||||
|
||||
internal class GroupSysInviteEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol;
|
||||
|
||||
internal class ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
internal class AliveEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
internal class CorrectTimeEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
internal class FetchClientKeyEvent : ProtocolEvent
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
#pragma warning disable CS8618
|
||||
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
internal class InfoSyncEvent : ProtocolEvent
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Event.Protocol.System;
|
||||
namespace Lagrange.Core.Internal.Event.Protocol.System;
|
||||
|
||||
internal class SsoAliveEvent : ProtocolEvent
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Network;
|
||||
namespace Lagrange.Core.Internal.Network;
|
||||
|
||||
internal sealed class CallbackClientListener : ClientListener
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Net.Sockets;
|
||||
|
||||
namespace Lagrange.Core.Core.Network;
|
||||
namespace Lagrange.Core.Internal.Network;
|
||||
|
||||
internal abstract partial class ClientListener
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Lagrange.Core.Core.Network;
|
||||
namespace Lagrange.Core.Internal.Network;
|
||||
|
||||
internal interface IClientListener
|
||||
{
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
|
||||
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
|
||||
|
||||
#pragma warning disable CS8618
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
|
||||
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
|
||||
|
||||
[ProtoContract]
|
||||
public class ServerAddr
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action.HttpConn;
|
||||
namespace Lagrange.Core.Internal.Packets.Action.HttpConn;
|
||||
|
||||
#pragma warning disable CS8618
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action.Pb;
|
||||
namespace Lagrange.Core.Internal.Packets.Action.Pb;
|
||||
|
||||
[ProtoContract]
|
||||
internal class PbGetOneDayRoamMsgReq
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action;
|
||||
namespace Lagrange.Core.Internal.Packets.Action;
|
||||
|
||||
[ProtoContract]
|
||||
internal class SendMessageResponse
|
|
@ -1,6 +1,6 @@
|
|||
using ProtoBuf;
|
||||
|
||||
namespace Lagrange.Core.Core.Packets.Action;
|
||||
namespace Lagrange.Core.Internal.Packets.Action;
|
||||
|
||||
[ProtoContract]
|
||||
internal class SyncCookie
|
|
@ -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
Loading…
Reference in a new issue