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

namespace BankTVUpdater.Model.Service
{
    class SingleNews : AbstractModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public string ImageHost { get; set; }
        public string ImageDirectory { get; set; }
        public string ImageName { get; set; }
        public int ScreenId { get; set; }

        public string GetFilePath()
        {
            if ((String.IsNullOrEmpty(this.ImageHost))
                || (String.IsNullOrEmpty(this.ImageDirectory))
                || (String.IsNullOrEmpty(this.ImageName)))
            {
                return String.Empty;
            }   //if
            return this.ImageHost + this.ImageDirectory + this.ImageName;
        }

    }
}
