示例#1
0
        public ArchiveFile(
            [NotNull] string fileName,
            [NotNull] ArchiveFileTypeInfo archiveFileTypeInfo,
            [NotNull] Show show,
            [NotNull] ArchiveAlbum archiveAlbum,
            [NotNull] string identifier,
            [NotNull] string filePathUrl,
            DateTime airDate,
            [NotNull] string title,
            DateTime?lastModifiedDate,
            double approximateBytes)
            : this()
        {
            fileName.IsNotNull(nameof(fileName));
            archiveFileTypeInfo.IsNotNull(nameof(archiveFileTypeInfo));
            show.IsNotNull(nameof(show));
            archiveAlbum.IsNotNull(nameof(archiveAlbum));
            identifier.IsNotNull(nameof(identifier));
            title.IsNotNull(nameof(title));

            FileName            = fileName;
            ArchiveFileTypeInfo = archiveFileTypeInfo;
            Show             = show;
            ArchiveAlbum     = archiveAlbum;
            Identifier       = identifier;
            FilePathUrl      = filePathUrl;
            AirDate          = airDate;
            Title            = title;
            LastModifiedDate = lastModifiedDate;
            ApproximateBytes = approximateBytes;
        }
示例#2
0
 public ArchiveFile(
     int archiveFileID,
     [NotNull] string fileName,
     [NotNull] ArchiveFileTypeInfo archiveFileTypeInfo,
     [NotNull] Show show,
     [NotNull] ArchiveAlbum archiveAlbum,
     [NotNull] string identifier,
     [NotNull] string filePathUrl,
     DateTime airDate,
     [NotNull] string title,
     DateTime lastModifiedDate,
     double approximateBytes)
     : this(
         fileName,
         archiveFileTypeInfo,
         show,
         archiveAlbum,
         identifier,
         filePathUrl,
         airDate,
         title,
         lastModifiedDate,
         approximateBytes)
 {
     ArchiveFileID = archiveFileID;
 }