1
0
mirror of https://github.com/oliverbooth/VPLink synced 2024-11-10 09:35:42 +00:00
VPLink/VPLink.Common/Services/IDiscordMessageService.cs

33 lines
1.2 KiB
C#
Raw Normal View History

using VPLink.Common.Data;
2023-08-22 14:57:18 +01:00
using VpSharp.Entities;
namespace VPLink.Common.Services;
2023-08-22 14:57:18 +01:00
/// <summary>
/// Represents a service that listens for messages from the Discord bridge channel.
2023-08-22 14:57:18 +01:00
/// </summary>
public interface IDiscordMessageService : IRelayTarget
2023-08-22 14:57:18 +01:00
{
/// <summary>
/// Gets an observable that is triggered when a valid message is received from the Discord bridge channel.
2023-08-22 14:57:18 +01: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 14:57:18 +01:00
2023-08-26 13:03:42 +01: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);
}