#region COPYRIGHT (c) 2004 by Brian Weeres /* Copyright (c) 2004 by Brian Weeres * * Email: bweeres@protegra.com; bweeres@hotmail.com * * Permission to use, copy, modify, and distribute this software for any * purpose is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * If you modify it then please indicate so. * * The software is provided "AS IS" and there are no warranties or implied warranties. * In no event shall Brian Weeres and/or Protegra Technology Group be liable for any special, * direct, indirect, or consequential damages or any damages whatsoever resulting for any reason * out of the use or performance of this software * */ #endregion using System; namespace Freedb { /// /// Summary description for Track. /// public class Track : ICloneable { private string m_Title; private string m_ExtendedData; private int m_FrameOffset; #region Public Properties /// /// Property ExtendedData (string) /// public string ExtendedData { get { return this.m_ExtendedData; } set { this.m_ExtendedData = value; } } /// /// Property Title (string) /// public string Title { get { return this.m_Title; } set { this.m_Title = value; } } /// /// Property FrameOffset (int) /// public int FrameOffset { get { return this.m_FrameOffset; } set { this.m_FrameOffset = value; } } #endregion /// /// Create an instance of a Track /// /// public Track() { } /// /// Create an instance of a Track passing in a title /// /// public Track(string title) { m_Title = title; } /// /// Create an instance of a Track passing in a title and extended data /// /// public Track(string title, string extendedData) { m_Title = title; m_ExtendedData = extendedData; } /// /// Create an instance of a Track passing in a track /// /// public Track(Track src) { m_Title = src.m_Title; m_ExtendedData = src.m_ExtendedData; m_FrameOffset = src.m_FrameOffset; } public object Clone() { return new Track(this); } } }