aboutsummaryrefslogtreecommitdiff
path: root/src/Services/DevHive.Services/Interfaces
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-02-19 22:15:01 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-02-19 22:15:01 +0200
commitc700c79ce22c47f4dcc49d38d7d2192c0c6cb799 (patch)
tree5286d5f1f40cc1073904252596f265607910c5a5 /src/Services/DevHive.Services/Interfaces
parent02cf7a097c781cd0ef9e844078e873fcda5a3fcd (diff)
downloadDevHive-c700c79ce22c47f4dcc49d38d7d2192c0c6cb799.tar
DevHive-c700c79ce22c47f4dcc49d38d7d2192c0c6cb799.tar.gz
DevHive-c700c79ce22c47f4dcc49d38d7d2192c0c6cb799.zip
Stashing changes from chat_system
Diffstat (limited to 'src/Services/DevHive.Services/Interfaces')
-rw-r--r--src/Services/DevHive.Services/Interfaces/IMessageService.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Services/DevHive.Services/Interfaces/IMessageService.cs b/src/Services/DevHive.Services/Interfaces/IMessageService.cs
new file mode 100644
index 0000000..5f210e6
--- /dev/null
+++ b/src/Services/DevHive.Services/Interfaces/IMessageService.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Threading.Tasks;
+using DevHive.Services.Models.Message;
+
+namespace DevHive.Services.Interfaces
+{
+ public interface IMessageService
+ {
+ Task<Guid> CreateMessage(CreateMessageServiceModel createMessageServiceModel);
+
+ Task<ReadMessageServiceModel> GetMessageById(Guid id);
+
+ Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
+
+ Task<bool> ValidateJwtForMessage(Guid messageId, string rawTokenData);
+ }
+}