Skip to content

Commit

Permalink
[OneBot] Adjust namespace for Lagrange.OneBot.Message
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Feb 12, 2024
1 parent 7787498 commit 27b7454
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 30 deletions.
1 change: 0 additions & 1 deletion Lagrange.OneBot/Core/Entity/Message/OneBotGroupMsg.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Text.Json.Serialization;
using Lagrange.Core.Common.Entity;
using Lagrange.OneBot.Core.Message;

namespace Lagrange.OneBot.Core.Entity.Message;

Expand Down
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Core/Entity/Message/OneBotNode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
using Lagrange.Core.Message;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Message;

namespace Lagrange.OneBot.Core.Entity.Message;

Expand Down
1 change: 0 additions & 1 deletion Lagrange.OneBot/Core/Entity/Message/OneBotPrivateMsg.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.Json.Serialization;
using Lagrange.OneBot.Core.Message;

namespace Lagrange.OneBot.Core.Entity.Message;

Expand Down
4 changes: 2 additions & 2 deletions Lagrange.OneBot/Core/Entity/Message/OneBotSegment.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Core.Message.Entity;
using Lagrange.OneBot.Message;
using Lagrange.OneBot.Message.Entity;

namespace Lagrange.OneBot.Core.Entity.Message;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Lagrange.OneBot.Core.Entity.Action;
using Lagrange.OneBot.Core.Entity.Action.Response;
using Lagrange.OneBot.Core.Entity.Message;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Message;

namespace Lagrange.OneBot.Core.Operation.Message;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using Lagrange.Core.Message;
using Lagrange.OneBot.Core.Entity.Action;
using Lagrange.OneBot.Core.Entity.Action.Response;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Database;
using Lagrange.OneBot.Message;
using LiteDB;

namespace Lagrange.OneBot.Core.Operation.Message;
Expand Down
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Core/Operation/Message/MessageCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Lagrange.Core.Utility.Extension;
using Lagrange.OneBot.Core.Entity.Action;
using Lagrange.OneBot.Core.Entity.Message;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Message;
using LiteDB;
using JsonSerializer = System.Text.Json.JsonSerializer;

Expand Down
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Core/Operation/OperationService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Reflection;
using Lagrange.Core;
using Lagrange.OneBot.Core.Entity.Action;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Core.Network;
using Lagrange.OneBot.Core.Operation.Message;
using Lagrange.OneBot.Message;
using LiteDB;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down
2 changes: 1 addition & 1 deletion Lagrange.OneBot/LagrangeApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using Lagrange.Core.Common.Interface.Api;
using Lagrange.Core.Utility.Extension;
using Lagrange.Core.Utility.Sign;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Core.Network;
using Lagrange.OneBot.Core.Notify;
using Lagrange.OneBot.Core.Operation;
using Lagrange.OneBot.Message;
using Lagrange.OneBot.Utility;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down
2 changes: 1 addition & 1 deletion Lagrange.OneBot/LagrangeAppBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Lagrange.Core.Common;
using Lagrange.Core.Common.Interface;
using Lagrange.Core.Utility.Sign;
using Lagrange.OneBot.Core.Message;
using Lagrange.OneBot.Core.Network;
using Lagrange.OneBot.Core.Network.Service;
using Lagrange.OneBot.Core.Notify;
using Lagrange.OneBot.Core.Operation;
using Lagrange.OneBot.Message;
using Lagrange.OneBot.Utility;
using LiteDB;
using Microsoft.Extensions.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Lagrange.OneBot.Core.Message;
namespace Lagrange.OneBot.Message;

[AttributeUsage(AttributeTargets.Property)]
public class CQPropertyAttribute : Attribute;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class AtSegment(uint at)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

public static class CommonResolver
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class DiceSegment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class FaceSegment(int id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class ForwardSegment(string name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class ImageSegment(string url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Lagrange.Core.Message.Entity;
using Lagrange.OneBot.Core.Entity.Common;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class LocationSegment(float latitude, float longitude)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class PokeSegment(uint type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class RecordSegment(string url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Lagrange.Core.Message.Entity;
using Lagrange.OneBot.Database;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class ReplySegment(uint messageId)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class RpsSegment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class TextSegment(string text)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Lagrange.Core.Message;
using Lagrange.Core.Message.Entity;

namespace Lagrange.OneBot.Core.Message.Entity;
namespace Lagrange.OneBot.Message.Entity;

[Serializable]
public partial class VideoSegment(string url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
using JsonSerializer = System.Text.Json.JsonSerializer;
using Lagrange.Core;
using Lagrange.Core.Event.EventArg;
using Lagrange.Core.Message;
using Lagrange.Core.Utility.Extension;
using Lagrange.OneBot.Core.Entity.Message;
using Lagrange.OneBot.Core.Message.Entity;
using Lagrange.OneBot.Core.Network;
using Lagrange.OneBot.Database;
using Lagrange.OneBot.Message.Entity;
using LiteDB;
using Microsoft.Extensions.Configuration;
using JsonSerializer = System.Text.Json.JsonSerializer;

namespace Lagrange.OneBot.Core.Message;
namespace Lagrange.OneBot.Message;

/// <summary>
/// The class that converts the OneBot message to/from MessageEntity of Lagrange.Core
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Lagrange.Core.Message;
using LiteDB;

namespace Lagrange.OneBot.Core.Message;
namespace Lagrange.OneBot.Message;

public abstract class SegmentBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Lagrange.OneBot.Core.Message;
namespace Lagrange.OneBot.Message;

[AttributeUsage(AttributeTargets.Class)]
public class SegmentSubscriberAttribute(Type entity, string type, string? sendType = null) : Attribute
Expand Down

0 comments on commit 27b7454

Please sign in to comment.