示例#1
0
 /// <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));
 }
示例#2
0
 /// <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));
 }