23 lines
No EOL
546 B
C#
23 lines
No EOL
546 B
C#
using Iceshrimp.Shared.Schemas;
|
|
|
|
namespace Iceshrimp.Shared.HubSchemas;
|
|
|
|
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
|
|
} |