| 1 | // 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. |
| 2 | |
| 3 | namespace WixToolset.Data.WindowsInstaller.Rows |
| 4 | { |
| 5 | /// <summary> |
| 6 | /// Specialization of a row for the Media table. |
| 7 | /// </summary> |
| 8 | public sealed class MediaRow : Row |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Creates a Media row that belongs to a table. |
| 12 | /// </summary> |
| 13 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> |
| 14 | /// <param name="table">Table this Media row belongs to and should get its column definitions from.</param> |
| 15 | public MediaRow(SourceLineNumber sourceLineNumbers, Table table) |
| 16 | : base(sourceLineNumbers, table) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | public MediaRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinition) : |
| 21 | base(sourceLineNumbers, tableDefinition) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | /// <summary> |
| 26 | /// Gets or sets the disk id for this media row. |
| 27 | /// </summary> |
| 28 | /// <value>Disk id.</value> |
| 29 | public int DiskId |
| 30 | { |
| 31 | get { return (int)this.Fields[0].Data; } |
| 32 | set { this.Fields[0].Data = value; } |
| 33 | } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// Gets or sets the last sequence number for this media row. |
| 37 | /// </summary> |
| 38 | /// <value>Last sequence number.</value> |
| 39 | public int LastSequence |
| 40 | { |
| 41 | get { return (int)this.Fields[1].Data; } |
| 42 | set { this.Fields[1].Data = value; } |
| 43 | } |
| 44 | |
| 45 | /// <summary> |
| 46 | /// Gets or sets the disk prompt for this media row. |
| 47 | /// </summary> |
| 48 | /// <value>Disk prompt.</value> |
| 49 | public string DiskPrompt |
| 50 | { |
| 51 | get { return (string)this.Fields[2].Data; } |
| 52 | set { this.Fields[2].Data = value; } |
| 53 | } |
| 54 | |
| 55 | /// <summary> |
| 56 | /// Gets or sets the cabinet name for this media row. |
| 57 | /// </summary> |
| 58 | /// <value>Cabinet name.</value> |
| 59 | public string Cabinet |
| 60 | { |
| 61 | get { return (string)this.Fields[3].Data; } |
| 62 | set { this.Fields[3].Data = value; } |
| 63 | } |
| 64 | |
| 65 | /// <summary> |
| 66 | /// Gets or sets the volume label for this media row. |
| 67 | /// </summary> |
| 68 | /// <value>Volume label.</value> |
| 69 | public string VolumeLabel |
| 70 | { |
| 71 | get { return (string)this.Fields[4].Data; } |
| 72 | set { this.Fields[4].Data = value; } |
| 73 | } |
| 74 | |
| 75 | /// <summary> |
| 76 | /// Gets or sets the source for this media row. |
| 77 | /// </summary> |
| 78 | /// <value>Source.</value> |
| 79 | public string Source |
| 80 | { |
| 81 | get { return (string)this.Fields[5].Data; } |
| 82 | set { this.Fields[5].Data = value; } |
| 83 | } |
| 84 | } |
| 85 | } |