mirror of
https://github.com/oliverbooth/VPLink
synced 2024-11-10 03:35:42 +00:00
26 lines
905 B
C#
26 lines
905 B
C#
using Discord;
|
|
using VpSharp.Entities;
|
|
|
|
namespace VpBridge.Services;
|
|
|
|
/// <summary>
|
|
/// Represents a service that sends messages to the Virtual Paradise world server.
|
|
/// </summary>
|
|
public interface IVirtualParadiseService
|
|
{
|
|
/// <summary>
|
|
/// Gets an observable that is triggered when a message is received from the Virtual Paradise world server.
|
|
/// </summary>
|
|
/// <value>
|
|
/// An observable that is triggered when a message is received from the Virtual Paradise world server.
|
|
/// </value>
|
|
IObservable<VirtualParadiseMessage> OnMessageReceived { get; }
|
|
|
|
/// <summary>
|
|
/// Sends a message to the Virtual Paradise world server.
|
|
/// </summary>
|
|
/// <param name="message">The Discord message to send.</param>
|
|
/// <returns>A <see cref="Task" /> representing the asynchronous operation.</returns>
|
|
Task SendMessageAsync(IUserMessage message);
|
|
}
|