Squirrowse/Squirrowse.Service/Hubs/IStreamHub.cs

17 lines
550 B
C#
Raw Normal View History

2019-11-04 09:29:37 +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-05 17:00:36 +01:00
Task AddUser(string username);
2019-10-31 12:53:57 +01:00
Task UploadByteStream(IAsyncEnumerable<byte[]> stream);
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-10-31 12:53:57 +01:00
}
}