feature/dotnet #3
|
@ -1,8 +1,15 @@
|
|||
using System;
|
||||
using VCinemaApi.Models;
|
||||
|
||||
namespace VCinemaApi.Hubs
|
||||
{
|
||||
public interface IVCinemaHub
|
||||
{
|
||||
|
||||
public Screen CreateScreen(string name);
|
||||
public void DeleteScreen(int screenId);
|
||||
public Screen WatchScreen(int screenId);
|
||||
public void LeaveScreen();
|
||||
public void SetWatcherName(string name);
|
||||
public void SetPlayState(bool playing);
|
||||
public void SetPlayState(bool playing, int playOffset);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using VCinemaApi.Models;
|
||||
using VCinemaApi.Repositories;
|
||||
|
||||
|
@ -32,14 +30,39 @@ namespace VCinemaApi.Hubs
|
|||
await base.OnDisconnectedAsync(exception);
|
||||
}
|
||||
|
||||
public IEnumerable<Screen> GetScreens()
|
||||
public Screen CreateScreen(string name)
|
||||
{
|
||||
return _screenRepository.GetScreens();
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Screen GetScreenById(int screenId)
|
||||
public void DeleteScreen(int screenId)
|
||||
{
|
||||
return _screenRepository.GetScreenById(screenId);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Screen WatchScreen(int screenId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void LeaveScreen()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void SetWatcherName(string name)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void SetPlayState(bool playing)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void SetPlayState(bool playing, int playOffset)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue