VPLink/VPLink.Common/Services/IDiscordMessageService.cs

33 lines
1.2 KiB
C#
Raw Permalink Normal View History

using VPLink.Common.Data;
2023-08-22 13:57:18 +00:00
using VpSharp.Entities;
namespace VPLink.Common.Services;
2023-08-22 13:57:18 +00:00
/// <summary>
/// Represents a service that listens for messages from the Discord bridge channel.
2023-08-22 13:57:18 +00:00
/// </summary>
public interface IDiscordMessageService : IRelayTarget
2023-08-22 13:57:18 +00:00
{
/// <summary>
/// Gets an observable that is triggered when a valid message is received from the Discord bridge channel.
2023-08-22 13:57:18 +00:00
/// </summary>
/// <value>
/// An observable that is triggered when a valid message is received from the Discord bridge channel.
/// </value>
IObservable<RelayedMessage> OnMessageReceived { get; }
2023-08-22 13:57:18 +00:00
2023-08-26 12:03:42 +00:00
/// <summary>
/// Announces the arrival of an avatar.
/// </summary>
/// <param name="avatar">The avatar.</param>
/// <returns>A <see cref="Task" /> representing the asynchronous operation.</returns>
Task AnnounceArrival(VirtualParadiseAvatar avatar);
/// <summary>
/// Announces the arrival of an avatar.
/// </summary>
/// <param name="avatar">The avatar.</param>
/// <returns>A <see cref="Task" /> representing the asynchronous operation.</returns>
Task AnnounceDeparture(VirtualParadiseAvatar avatar);
}