phase 1
This commit is contained in:
33
ModVersionChecker/model/Config.cs
Normal file
33
ModVersionChecker/model/Config.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user