using System.Diagnostics;
using System.Globalization;

namespace Octokit
{
    /// <summary>
    /// Represents an oauth application.
    /// </summary>
    [DebuggerDisplay("{DebuggerDisplay,nq}")]
    public class Application
    {
        public Application() { }

        public Application(string name, string url)
        {
            Name = name;
            Url = url;
        }

        /// <summary>
        /// <see cref="Application"/> Name.
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// The Url of this <see cref="Application"/>.
        /// </summary>
        public string Url { get; private set; }

        internal string DebuggerDisplay
        {
            get { return string.Format(CultureInfo.InvariantCulture, "Name: {0}", Name); }
        }
    }
}
