2024-06-11 21:43:12 -05:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
using System;
|
2024-05-09 20:44:40 -05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace LANCommander.Client.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Settings
|
|
|
|
|
|
{
|
2024-05-20 19:42:31 -05:00
|
|
|
|
public DatabaseSettings Database { get; set; } = new DatabaseSettings();
|
2024-05-09 20:44:40 -05:00
|
|
|
|
public AuthenticationSettings Authentication { get; set; } = new AuthenticationSettings();
|
|
|
|
|
|
public GameSettings Games { get; set; } = new GameSettings();
|
2024-05-28 00:24:29 -05:00
|
|
|
|
public MediaSettings Media { get; set; } = new MediaSettings();
|
2024-05-29 19:25:41 -05:00
|
|
|
|
public ProfileSettings Profile { get; set; } = new ProfileSettings();
|
2024-06-11 21:43:12 -05:00
|
|
|
|
public DebugSettings Debug { get; set; } = new DebugSettings();
|
2024-05-09 20:44:40 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-20 19:42:31 -05:00
|
|
|
|
public class DatabaseSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ConnectionString { get; set; } = "Data Source=LANCommander.db;Cache=Shared";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-09 20:44:40 -05:00
|
|
|
|
public class AuthenticationSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ServerAddress { get; set; } = "";
|
|
|
|
|
|
public string AccessToken { get; set; } = "";
|
|
|
|
|
|
public string RefreshToken { get; set; } = "";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GameSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string DefaultInstallDirectory { get; set; } = "C:\\Games";
|
|
|
|
|
|
}
|
2024-05-28 00:24:29 -05:00
|
|
|
|
|
|
|
|
|
|
public class MediaSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string StoragePath { get; set; } = "Media";
|
|
|
|
|
|
}
|
2024-05-29 19:25:41 -05:00
|
|
|
|
|
|
|
|
|
|
public class ProfileSettings
|
|
|
|
|
|
{
|
2024-06-03 19:08:50 -05:00
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
|
public string Avatar { get; set; }
|
2024-05-29 19:25:41 -05:00
|
|
|
|
}
|
2024-06-11 21:43:12 -05:00
|
|
|
|
|
|
|
|
|
|
public class DebugSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public bool EnableScriptDebugging { get; set; } = false;
|
|
|
|
|
|
public LogLevel LoggingLevel { get; set; } = LogLevel.Warning;
|
|
|
|
|
|
public string LoggingPath { get; set; } = "Logs";
|
|
|
|
|
|
}
|
2024-05-09 20:44:40 -05:00
|
|
|
|
}
|