2019-11-07 11:52:27 +01:00
|
|
|
|
using System.Collections.Generic;
|
2019-10-31 12:53:57 +01:00
|
|
|
|
using System.Threading.Tasks;
|
2019-11-04 09:29:37 +01:00
|
|
|
|
using Squirrowse.Core.Models;
|
2019-10-31 12:53:57 +01:00
|
|
|
|
|
|
|
|
|
namespace Squirrowse.Service.Hubs
|
|
|
|
|
{
|
|
|
|
|
public interface IStreamHub
|
|
|
|
|
{
|
2019-11-07 11:52:27 +01:00
|
|
|
|
Task AddUser(string username, ConnectionType type);
|
2019-10-31 12:53:57 +01:00
|
|
|
|
Task UploadByteStream(IAsyncEnumerable<byte[]> stream);
|
2019-11-02 20:36:31 +01:00
|
|
|
|
Task Startstream(string userId);
|
|
|
|
|
Task StopStream(string userId);
|
2019-11-04 09:29:37 +01:00
|
|
|
|
Task ExecCommandOnAll(string command, object[] act); //gni
|
|
|
|
|
Task AddToGroup(Groups group, string user = "");
|
|
|
|
|
Task RemoveFromGroup(Groups group, string user = "");
|
2019-11-06 19:17:06 +01:00
|
|
|
|
Task<IEnumerable<User>> GetListOfTypeUser(ConnectionType t);
|
|
|
|
|
Task<IEnumerable<User>> GetAllUsers();
|
2019-10-31 12:53:57 +01:00
|
|
|
|
}
|
|
|
|
|
}
|