Ejemplo n.º 1
0
        public Configuration()
        {
            //20 minutes
            AutomaticUpdateInterval = 20 * 60;

            //5 seconds
            ReconnectDelay = 5 * 1000;

            //Default to SQLite instead of Mono
            DatabaseProvider = "System.Data.SQLite";

            Database = "RiotControl.sqlite";

            Index = "Index.html.template";

            RankedSeason = 2;

            MinimiseToTray = true;

            Web = new WebConfiguration();
            Authentication = new AuthenticationProfile();

            Proxy = new ProxyProfile();

            //Not really necessary
            Privileges = new List<PrivilegeClass>();

            //Not really necessary
            RegionProfiles = new List<EngineRegionProfile>();
        }
Ejemplo n.º 2
0
 public Configuration()
 {
     Database = new DatabaseConfiguration();
     Authentication = new AuthenticationProfile();
     Proxy = new ProxyProfile();
     RegionProfiles = new List<EngineRegionProfile>();
 }
Ejemplo n.º 3
0
 public Configuration()
 {
     Authentication = new AuthenticationProfile();
     Proxy = new ProxyProfile();
     ServerProfiles = new List<ServerProfile>();
     ChampionNames = new SerialisableDictionary<int, string>();
 }
Ejemplo n.º 4
0
        public RiotConnect(Configuration configure, string username, string password)
        {
            proxy = new ProxyProfile();
            //TODO: Make autowatch change based on input
            AutoWatch = false;
            config = configure;
            connectionData = new ConnectionProfile(config.Authentication, config.Region.RegionData, proxy, username, password);
            logPath = username + ".log";

            Connect();
        }