aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Link/ConnectToModule.cs
blob: d6a8338ed62678375feec5edb5df4d49cf7583d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// 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.Link
{
    /// <summary>
    /// Object that connects things to modules.
    /// </summary>
    public sealed class ConnectToModule
    {
        private string childId;
        private string module;
        private string moduleLanguage;

        /// <summary>
        /// Creates a new connect to module.
        /// </summary>
        /// <param name="childId">Id of the child.</param>
        /// <param name="module">Id of the module.</param>
        /// <param name="moduleLanguage">Language of the module.</param>
        public ConnectToModule(string childId, string module, string moduleLanguage)
        {
            this.childId = childId;
            this.module = module;
            this.moduleLanguage = moduleLanguage;
        }

        /// <summary>
        /// Gets the id of the child.
        /// </summary>
        /// <value>Child identifier.</value>
        public string ChildId
        {
            get { return this.childId; }
        }

        /// <summary>
        /// Gets the id of the module.
        /// </summary>
        /// <value>The id of the module.</value>
        public string Module
        {
            get { return this.module; }
        }

        /// <summary>
        /// Gets the language of the module.
        /// </summary>
        /// <value>The language of the module.</value>
        public string ModuleLanguage
        {
            get { return this.moduleLanguage; }
        }
    }
}