feature/dotnet #3

Merged
jackhadrill merged 5 commits from feature/dotnet into master 2020-09-21 23:43:41 +01:00
2 changed files with 38 additions and 8 deletions
Showing only changes of commit cc639c04b5 - Show all commits

View File

@ -1,8 +1,15 @@
using System; using VCinemaApi.Models;
namespace VCinemaApi.Hubs namespace VCinemaApi.Hubs
{ {
public interface IVCinemaHub 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);
} }
} }

View File

@ -1,9 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;
using VCinemaApi.Models; using VCinemaApi.Models;
using VCinemaApi.Repositories; using VCinemaApi.Repositories;
@ -32,14 +30,39 @@ namespace VCinemaApi.Hubs
await base.OnDisconnectedAsync(exception); 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();
} }
} }
} }