Add Config Options `startMinimized` and `minimizeToTray` Added `AssemblyVersion` String To Resources
27 lines
792 B
C#
27 lines
792 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace qtc_net_client_2.ClientModel
|
|
{
|
|
public class Config
|
|
{
|
|
[JsonPropertyName("startMinimized")]
|
|
[JsonRequired]
|
|
public bool StartMinimized { get; set; } = false;
|
|
[JsonPropertyName("minimizeToTray")]
|
|
[JsonRequired]
|
|
public bool MinimizeToTray { get; set; } = true;
|
|
|
|
[JsonPropertyName("apiEndpoint")]
|
|
[JsonRequired]
|
|
public string ApiEndpoint { get; set; } = "https://qtc.alanmoon.net/api";
|
|
[JsonPropertyName("gatewayEndpoint")]
|
|
[JsonRequired]
|
|
public string GatewayEndpoint { get; set; } = "https://qtc.alanmoon.net/chat";
|
|
}
|
|
}
|