34 lines
937 B
C#
34 lines
937 B
C#
using LiteDB;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ModVersionChecker.model
|
|
{
|
|
public class Config
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("intervalMinutes")]
|
|
public int IntervalMinutes { get; set; } = 60;
|
|
|
|
[JsonPropertyName("checkOnStartup")]
|
|
public bool CheckOnStartup { get; set; } = true;
|
|
|
|
[JsonPropertyName("runOnStartup")]
|
|
public bool RunOnStartup { get; set; } = false;
|
|
|
|
[JsonPropertyName("types")]
|
|
public List<TypeConfig> Types { get; set; } = new List<TypeConfig>();
|
|
|
|
[JsonPropertyName("accessToekn")]
|
|
public string AccessToken { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("refreshToken")]
|
|
public string RefreshToken { get; set; } = string.Empty;
|
|
}
|
|
}
|