예제 #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;
            ArchiveFileTypeInfoID = archiveFileTypeInfo.ArchiveFileTypeInfoID;
            ShowID           = show.ShowID;
            ArchiveAlbumID   = archiveAlbum.ArchiveAlbumID;
            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;
 }