Example #1
0
 /// <summary>
 /// Initializes an instance of <see cref="Video"/>.
 /// </summary>
 public Video(string id, string author, DateTimeOffset uploadDate, string title, string description,
              ThumbnailSet thumbnails, TimeSpan duration, IReadOnlyList <string> keywords, Statistics statistics, double loudness = 0)
 {
     Id          = id.GuardNotNull(nameof(id));
     Author      = author.GuardNotNull(nameof(author));
     UploadDate  = uploadDate;
     Title       = title.GuardNotNull(nameof(title));
     Description = description.GuardNotNull(nameof(description));
     Thumbnails  = thumbnails.GuardNotNull(nameof(thumbnails));
     Duration    = duration.GuardNotNegative(nameof(duration));
     Keywords    = keywords.GuardNotNull(nameof(keywords));
     Statistics  = statistics.GuardNotNull(nameof(statistics));
     Loudness    = loudness;
 }