Files
annotations/Web/Azaion.Web/Azaion.Video/VideoManager.cs
T
2024-07-16 14:18:55 +03:00

36 lines
783 B
C#

using Azaion.Repository;
using Azaion.Repository.DTO;
namespace Azaion.Video;
public class VideoManager(IDbFactory dbFactory) : IVideoManager
{
public List<VideoDto> GetVideos()
{
return dbFactory.Run(db => db.Medias
.Where(x => x.AnnotatorId != null)
.Select(x => new VideoDto
{
Id = x.Id,
Path = x.Path,
CreatedDate = x.CreatedDate,
MediaStatus = x.Status
})
.ToList());
}
public void OpenVideo(Guid mediaId)
{
throw new NotImplementedException();
}
public void OpenTestVideo()
{
}
public void FinishAnnotation(Guid mediaId)
{
throw new NotImplementedException();
}
}