From 77d8dc7a42ba095e73364683973945ecd5142d19 Mon Sep 17 00:00:00 2001 From: Sergey Nazarov Date: Thu, 21 Mar 2024 21:55:20 +0400 Subject: [PATCH] Remove dep from contracts to core --- .../Events/MediaUpdateReceived.cs | 8 -------- .../Events/TextUpdateReceived.cs | 4 +--- .../IEvent.cs | 2 +- .../Nocr.TelegramListener.Async.Api.Contracts.csproj | 4 ---- 4 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 src/Nocr.TelegramListener.Async.Api.Contracts/Events/MediaUpdateReceived.cs rename src/{Nocr.TelegramListener.Core/Events => Nocr.TelegramListener.Async.Api.Contracts}/IEvent.cs (51%) diff --git a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/MediaUpdateReceived.cs b/src/Nocr.TelegramListener.Async.Api.Contracts/Events/MediaUpdateReceived.cs deleted file mode 100644 index e6c6a87..0000000 --- a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/MediaUpdateReceived.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Nocr.TelegramListener.Core.Events; - -namespace Nocr.TelegramListener.Async.Api.Contracts.Events; - -public sealed class MediaUpdateReceived : IEvent -{ - public Guid Id { get; } = Guid.NewGuid(); -} \ No newline at end of file diff --git a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs b/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs index f6eb77e..a5e31bd 100644 --- a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs +++ b/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs @@ -1,6 +1,4 @@ -using Nocr.TelegramListener.Core.Events; - -namespace Nocr.TelegramListener.Async.Api.Contracts.Events; +namespace Nocr.TelegramListener.Async.Api.Contracts.Events; public sealed class MessageReceived : IEvent { diff --git a/src/Nocr.TelegramListener.Core/Events/IEvent.cs b/src/Nocr.TelegramListener.Async.Api.Contracts/IEvent.cs similarity index 51% rename from src/Nocr.TelegramListener.Core/Events/IEvent.cs rename to src/Nocr.TelegramListener.Async.Api.Contracts/IEvent.cs index 4630139..ca0358c 100644 --- a/src/Nocr.TelegramListener.Core/Events/IEvent.cs +++ b/src/Nocr.TelegramListener.Async.Api.Contracts/IEvent.cs @@ -1,4 +1,4 @@ -namespace Nocr.TelegramListener.Core.Events; +namespace Nocr.TelegramListener.Async.Api.Contracts; public interface IEvent { diff --git a/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj b/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj index 13da837..3a63532 100644 --- a/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj +++ b/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj @@ -6,8 +6,4 @@ enable - - - -