Ejemplo n.º 1
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="title">The title or name of the object.</param>
 /// <param name="language">ISO-639-3 3-character language codes.</param>
 /// <param name="_season0"></param>
 public static SeasonMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
 {
     return(new SeasonMetadata(title, language, dateadded, datemodified, _season0));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
 /// <param name="dateadded">The date the object was added.</param>
 /// <param name="_season0"></param>
 public static Episode Create(Guid urlid, DateTime dateadded, Season _season0)
 {
     return(new Episode(urlid, dateadded, _season0));
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Public constructor with required data.
        /// </summary>
        /// <param name="title">The title or name of the object.</param>
        /// <param name="language">ISO-639-3 3-character language codes.</param>
        /// <param name="_season0"></param>
        public SeasonMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
        {
            if (string.IsNullOrEmpty(title))
            {
                throw new ArgumentNullException(nameof(title));
            }

            this.Title = title;

            if (string.IsNullOrEmpty(language))
            {
                throw new ArgumentNullException(nameof(language));
            }

            this.Language = language;

            if (_season0 == null)
            {
                throw new ArgumentNullException(nameof(_season0));
            }

            _season0.SeasonMetadata.Add(this);

            Init();
        }