Esempio 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="dateadded">The date the object was added.</param>
 /// <param name="datemodified">The date the object was last modified.</param>
 /// <param name="_episode0"></param>
 public static EpisodeMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
 {
     return(new EpisodeMetadata(title, language, dateadded, datemodified, _episode0));
 }
Esempio n. 2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="name"></param>
 /// <param name="_movie0"></param>
 /// <param name="_episode1"></param>
 /// <param name="_track2"></param>
 /// <param name="_customitem3"></param>
 /// <param name="_book4"></param>
 /// <param name="_photo5"></param>
 public static Release Create(string name, Movie _movie0, Episode _episode1, Track _track2, CustomItem _customitem3, Book _book4, Photo _photo5)
 {
     return(new Release(name, _movie0, _episode1, _track2, _customitem3, _book4, _photo5));
 }
Esempio 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="dateadded">The date the object was added.</param>
        /// <param name="datemodified">The date the object was last modified.</param>
        /// <param name="_episode0"></param>
        public EpisodeMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
        {
            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 (_episode0 == null)
            {
                throw new ArgumentNullException(nameof(_episode0));
            }

            _episode0.EpisodeMetadata.Add(this);

            Init();
        }