20 lines
700 B
C#
20 lines
700 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Squirrowse.Core.Models;
|
|
|
|
namespace Squirrowse.Service.Hubs
|
|
{
|
|
public interface IStreamHub
|
|
{
|
|
Task AddUser(string username,ConnectionType type);
|
|
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 = "");
|
|
Task<IEnumerable<User>> GetListOfTypeUser(ConnectionType t);
|
|
Task<IEnumerable<User>> GetAllUsers();
|
|
}
|
|
} |