﻿/*
    The MIT License

    Copyright (c) 2013 Dennis Alexander Petrasch

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
*/
namespace Popcorn.Core.DataProvider.Results
{
    using System;

    /// <summary>
    /// Describes the Data for an Search Result Entry
    /// </summary>
    internal sealed class TheDbEntry
    {
        /// <summary>
        /// Internal Id of the Series
        /// </summary>
        internal int SeriesId { get; set; }

        /// <summary>
        /// The Title of the Series
        /// </summary>
        internal string SeriesName { get; set; }
        
        /// <summary>
        /// A briefly description
        /// </summary>
        internal string Description { get; set; }

        /// <summary>
        /// The Date of the the release
        /// </summary>
        internal DateTime FirstAired { get; set; }

        /// <summary>
        /// The corresponding Imdb-Id
        /// </summary>
        internal string ImdbId { get; set; }

        /// <summary>
        /// The Name of the assigned Banner/Graphic
        /// </summary>
        internal string Banner { get; set; }

        /// <summary>
        /// Constructor for fast assigning of the Properties
        /// </summary>
        /// <param name="id">Internal Id of the Series</param>
        /// <param name="name">The Title of the Series</param>
        /// <param name="desc">A briefly description</param>
        /// <param name="release">The Date of the the release</param>
        /// <param name="imdb">The corresponding Imdb-Id</param>
        /// <param name="banner">The Name of the assigned Banner/Graphic</param>
        internal TheDbEntry(int id, string name, string desc, DateTime release, string imdb, string banner)
        {
            this.SeriesId = id;
            this.SeriesName = name;
            this.Description = desc;
            this.FirstAired = release;
            this.ImdbId = imdb;
            this.Banner = banner;
        }
    }
}