using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SumaTube.Domain.Entities.Videos
{
    public enum VideoSiteEnum 
    {
        Youtube 
    }
    public class VideoData
    {
        public string SessionId { get; private set; }
        public string Title { get; private set; }
        public string Image { get; private set; }
        public string Url { get; private set; }
        public VideoSiteEnum Site { get; private set; }
        public VideoResult VideoResult { get; private set; }

        public VideoData(string sessionId, string url)
        {
            SessionId = sessionId;
            Url = url;
        }

        public void SetVideoResult(VideoResult videoResult) 
        {
            VideoResult = videoResult;
        }

        public void UpdateData(string title, string iamge)
        {
            Title = title;
            Image = iamge;
        }
        public void ChangeStatus(VideoStatusEnum videoStatus)
        {
            this.VideoResult.ChangeStatus(videoStatus);
        }
    }
}
