#region Disclaimer / License // Copyright (C) 2009, Kenneth Skovhede // http://www.hexad.dk, opensource@hexad.dk // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // #endregion using System; using System.Collections.Generic; using System.Text; namespace Maestro.Packaging { /// /// Represents a resource data item from a package /// public class ResourceDataItem { private string m_resourceName; private string m_contentType; private string m_filename; private string m_dataType; private EntryTypeEnum m_entryType; /// /// Initializes a new instance of the class. /// /// Name of the resource. /// Type of the content. /// The filename. /// Type of the data. public ResourceDataItem(string resourceName, string contentType, string filename, string dataType) { m_resourceName = resourceName; m_contentType = contentType; m_filename = filename; m_dataType = dataType; m_entryType = EntryTypeEnum.Regular; } /// /// Initializes a new instance of the class. /// /// The rdi. public ResourceDataItem(ResourceDataItem rdi) { m_resourceName = rdi.m_resourceName; m_contentType = rdi.m_contentType; m_filename = rdi.m_filename; m_dataType = rdi.m_dataType; m_entryType = rdi.m_entryType; } /// /// Gets or sets the name of the resource. /// /// The name of the resource. public string ResourceName { get { return m_resourceName; } set { m_resourceName = value; } } /// /// Gets or sets the type of the content. /// /// The type of the content. public string ContentType { get { return m_contentType; } set { m_contentType = value; } } /// /// Gets or sets the filename. /// /// The filename. public string Filename { get { return m_filename; } set { m_filename = value; } } /// /// Gets or sets the type of the entry. /// /// The type of the entry. public EntryTypeEnum EntryType { get { return m_entryType; } set { m_entryType = value; } } /// /// Gets or sets the type of the data. /// /// The type of the data. public string DataType { get { return m_dataType; } set { m_dataType = value; } } } }