Iceshrimp.NET/Iceshrimp.Shared/Schemas/SignalR/StreamingHub.cs
2024-07-04 17:53:11 +02:00

23 lines
No EOL
555 B
C#

using Iceshrimp.Shared.Schemas.Web;
namespace Iceshrimp.Shared.Schemas.SignalR;
public interface IStreamingHubServer
{
public Task Subscribe(StreamingTimeline timeline);
public Task Unsubscribe(StreamingTimeline timeline);
}
public interface IStreamingHubClient
{
public Task Notification(NotificationResponse notification);
public Task NotePublished(List<StreamingTimeline> timelines, NoteResponse note);
public Task NoteUpdated(List<StreamingTimeline> timelines, NoteResponse note);
}
public enum StreamingTimeline
{
Home,
Local,
Federated
}