6fed61be4a
prepare Interface for future hub development
19 lines
544 B
C#
19 lines
544 B
C#
using Squirrowse.Core.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Squirrowse.Service.Hubs
|
|
{
|
|
public interface IStreamHub
|
|
{
|
|
Task AddClient();
|
|
Task UploadByteStream(IAsyncEnumerable<byte[]> stream);
|
|
Task Startstream(string userId);
|
|
Task StopStream(string userId);
|
|
Task ExecCommandOnAll(string command,object[] act);//gni
|
|
Task AddToGroup(Groups group,string user="");
|
|
Task RemoveFromGroup(Groups group,string user="");
|
|
|
|
}
|
|
} |