Пример #1
0
 /// <summary />
 public Video(string id, string author, string title, string description, ThumbnailSet thumbnails,
              TimeSpan duration, IReadOnlyList <string> keywords, Statistics statistics)
 {
     Id          = id.GuardNotNull(nameof(id));
     Author      = author.GuardNotNull(nameof(author));
     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));
 }
Пример #2
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)
 {
     Id          = id;
     Author      = author;
     UploadDate  = uploadDate;
     Title       = title;
     Description = description;
     Thumbnails  = thumbnails;
     Duration    = duration;
     Keywords    = keywords;
     Statistics  = statistics;
 }
Пример #3
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;
 }