// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixToolset.Core.Bind { using System.Collections.Generic; using WixToolset.Data.Tuples; public class FileFacade { public FileFacade(FileTuple file, AssemblyTuple assembly) { this.File = file; this.Assembly = assembly; } public FileFacade(bool fromModule, FileTuple file) { this.FromModule = fromModule; this.File = file; } public bool FromModule { get; } public FileTuple File { get; } public AssemblyTuple Assembly { get; } public int DiskId => this.File.DiskId ?? 0; public bool Uncompressed => (this.File.Attributes & FileTupleAttributes.Uncompressed) == FileTupleAttributes.Uncompressed; /// /// Gets the set of MsiAssemblyName rows created for this file. /// /// RowCollection of MsiAssemblyName table. public List AssemblyNames { get; set; } /// /// Gets or sets the MsiFileHash row for this file. /// public MsiFileHashTuple Hash { get; set; } } }