mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:46:30 +00:00
36 lines
783 B
C#
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();
|
|
}
|
|
} |