using System.Configuration;
using System.Collections.Generic;
using System.Collections.Specialized;

namespace StubCore.Configuration
{
    public static class Configuration
    {

        public static string SystemTitle { get { return (((NameValueCollection)ConfigurationManager.GetSection("systemSettings"))["title"]).ToString(); } }

        public static string SystemVersion { get { return (((NameValueCollection)ConfigurationManager.GetSection("systemSettings"))["version"]).ToString(); } }

        public static string SystemDescription { get { return (((NameValueCollection)ConfigurationManager.GetSection("systemSettings"))["description"]).ToString(); } }

        public static Dictionary<string, string> DatabaseFolders
        {
            get
            {
                return new Dictionary<string, string> {
                    { "Profiles", "profiles" },
                    { "Files", "files" },
                    { "Nodes", "nodes" },
                    { "NodeValues", "node-values" },
                    { "NameSpaces", "namespace-values" }
                };
            }
        }

        public static Dictionary<string, string> Options
        {
            get
            {
                return new Dictionary<string, string> {
                    { "OutputTransport", "output-transport" },
                    { "InputTransport", "input-transport" },
                    { "RequestType", "request-type" },
                    { "ContentEncoding", "content-encoding" }
                };
            }
        }

        public static string DataType { get { return (((NameValueCollection)ConfigurationManager.GetSection("systemSettings"))["datatype"]).ToString(); } }

    }
}