mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:36:31 +00:00
add repository with mysql and entities
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user