Exemplo n.º 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;
        }
Exemplo n.º 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;
 }