/// <summary /> public PlaylistVideo(string id, string title, string description, VideoThumbnails thumbnails, TimeSpan duration, IReadOnlyList <string> keywords, Statistics statistics) { Id = id.GuardNotNull(nameof(id)); 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)); }
/// <summary /> public Playlist(string id, string author, string title, string description, Statistics statistics, IReadOnlyList <Video> videos) { Id = id.GuardNotNull(nameof(id)); Type = GetPlaylistType(id); Author = author.GuardNotNull(nameof(author)); Title = title.GuardNotNull(nameof(title)); Description = description.GuardNotNull(nameof(description)); Statistics = statistics.GuardNotNull(nameof(statistics)); Videos = videos.GuardNotNull(nameof(videos)); }
/// <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.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)); }
/// <summary /> public Video(string id, Channel author, string title, string description, VideoThumbnails thumbnails, TimeSpan duration, IReadOnlyList <string> keywords, VideoStatus status, Statistics statistics, IReadOnlyList <MuxedStreamInfo> muxedStreamInfos, IReadOnlyList <AudioStreamInfo> audioStreamInfos, IReadOnlyList <VideoStreamInfo> videoStreamInfos, IReadOnlyList <ClosedCaptionTrackInfo> closedCaptionTrackInfos) { 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)); Status = status.GuardNotNull(nameof(status)); Statistics = statistics.GuardNotNull(nameof(statistics)); MuxedStreamInfos = muxedStreamInfos.GuardNotNull(nameof(muxedStreamInfos)); AudioStreamInfos = audioStreamInfos.GuardNotNull(nameof(audioStreamInfos)); VideoStreamInfos = videoStreamInfos.GuardNotNull(nameof(videoStreamInfos)); ClosedCaptionTrackInfos = closedCaptionTrackInfos.GuardNotNull(nameof(closedCaptionTrackInfos)); }