using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HRM.BO { public class LessonContent : BasicBaseObject { #region Constructor public LessonContent() { _contentTitle = ""; _description = ""; _contentUrl = ""; _isMendatory = true; _accessLevel = EnumAccessLevel.@public; _accessCount = 0; } #endregion #region Properties #region LessonID private int _lessonID; public int LessonID { get { return _lessonID; } set { _lessonID = value; } } #endregion #region ContentTitle private string _contentTitle; public string ContentTitle { get { return _contentTitle; } set { _contentTitle = value; } } #endregion #region ContentType private EnumContentType _contentType; public EnumContentType ContentType { get { return _contentType; } set { _contentType = value; } } #endregion #region Description private string _description; public string Description { get { return _description; } set { _description = value; } } #endregion #region ContentUrl private string _contentUrl; public string ContentUrl { get { return _contentUrl; } set { _contentUrl = value; } } #endregion #region Duration private string _duration; public string Duration { get { return _duration; } set { _duration = value; } } #endregion #region IsMendatory private bool? _isMendatory; public bool? IsMendatory { get { return _isMendatory; } set { _isMendatory = value; } } #endregion #region AccessLevel private EnumAccessLevel _accessLevel; public EnumAccessLevel AccessLevel { get { return _accessLevel; } set { _accessLevel = value; } } #endregion #region ContentSource private EnumContentSource _contentSource; public EnumContentSource ContentSource { get { return _contentSource; } set { _contentSource = value; } } #endregion #region AccessCount private int? _accessCount; public int? AccessCount { get { return _accessCount; } set { _accessCount = value; } } #endregion public bool IsLessonComplete = false; #endregion } #region ILessonContent public interface ILessonContentService { int Save(LessonContent oLessons); void Delete(int ID); void UpdateStatus(LessonContent oLessons); void UpdateAccessCount(int ID); LessonContent Get(int ID); List Get(EnumStatus status); List Get(EnumStatus status, int lessonID); List GetAll(); List GetByLessonID(int lessonID); } #endregion }