Files
messengerapi/code/MessengerApi.Contracts/Client/IMessengerClient.cs
masiton 4393977389
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m3s
Build and Push Docker Image / docker (push) Successful in 43s
Initial commit carried over from private repo. This is V2.
2025-07-04 21:24:12 +02:00

30 lines
935 B
C#

namespace MessengerApi.Contracts
{
/// <summary>
/// Exists for mocking reason. This is implemented by <see cref="MessengerClient"/>.
/// </summary>
public interface IMessengerClient
{
/// <summary>
/// Receives pending messages from the messenger API.
/// </summary>
/// <param name="credentials">Credentials to the API.</param>
IEnumerable<InboxMessage> GetMessages();
/// <summary>
/// Acknowledges message reception to the server.
/// </summary>
void AckMessage(InboxMessage message);
/// <summary>
/// Sends a message.
/// </summary>
/// <param name="credentials">Credentials to the API.</param>
void SendMessage(OutboxMessage outboxMessage);
/// <summary>
/// Returns user ids for allowed message recipients.
/// </summary>
Contact[] GetYellowPages();
}
}