decePubClient/Services/MessagesService.cs

74 lines
1.5 KiB
C#
Raw Normal View History

2022-12-15 20:03:40 +01:00
using decePubClient.Models;
2022-02-14 01:51:52 +01:00
using decePubClient.Models.Types;
namespace decePubClient.Services
2022-02-14 01:51:37 +01:00
{
public class MessagesService
{
2022-02-14 01:51:52 +01:00
readonly IStorage storage;
readonly HttpClient http;
2022-12-15 20:03:40 +01:00
public MessagesService(IHttpClientFactory clientFactory, IStorage storage)
2022-02-14 01:51:52 +01:00
{
this.storage = storage;
http = clientFactory.CreateClient("default");
}
//Covers also direct message
public async Task<Message> SubmitMessage(MessageForm messageForm)
{
//TODO
await Task.Run(() => {});
return new();
}
//Covers also direct message
public async Task<Message> ReplyMessage(Message messageToReply, MessageType messageType = MessageType.Public)
{
//TODO
await Task.Run(() => {});
return messageToReply;
}
public async Task<Message> BoostUnboostMessage(Message messageToReply)
{
//TODO
await Task.Run(() => {});
return messageToReply;
}
public async Task<Message> FavouriteUnfavouriteMessage(Message messageToReply)
{
//TODO
await Task.Run(() => {});
return messageToReply;
}
public async Task<Message> DeleteMessage(Message messageToReply)
{
//TODO
await Task.Run(() => {});
return messageToReply;
}
public async Task<MessageUser> BlockUserFromMessage(MessageUser messageUser)
{
//TODO
await Task.Run(() => {});
return messageUser;
}
public async Task<MessageUser> SilenceUserFromMessage(MessageUser messageUser)
2022-02-14 01:51:37 +01:00
{
2022-02-14 01:51:52 +01:00
//TODO
2022-02-14 01:51:37 +01:00
2022-02-14 01:51:52 +01:00
await Task.Run(() => {});
return messageUser;
2022-02-14 01:51:37 +01:00
}
}
2022-02-14 01:51:52 +01:00
}