mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Use shorter syntax for json properties
This commit is contained in:
@@ -279,7 +279,7 @@ public sealed class GlobalConfig {
|
||||
[Range(ushort.MinValue, ushort.MaxValue)]
|
||||
public ushort WebLimiterDelay { get; private set; } = DefaultWebLimiterDelay;
|
||||
|
||||
[JsonProperty(PropertyName = nameof(WebProxy))]
|
||||
[JsonProperty(nameof(WebProxy))]
|
||||
public string? WebProxyText { get; private set; } = DefaultWebProxyText;
|
||||
|
||||
[JsonProperty]
|
||||
@@ -315,7 +315,7 @@ public sealed class GlobalConfig {
|
||||
private WebProxy? BackingWebProxy;
|
||||
private string? BackingWebProxyPassword = DefaultWebProxyPassword;
|
||||
|
||||
[JsonProperty(PropertyName = $"{SharedInfo.UlongCompatibilityStringPrefix}{nameof(SteamOwnerID)}", Required = Required.DisallowNull)]
|
||||
[JsonProperty($"{SharedInfo.UlongCompatibilityStringPrefix}{nameof(SteamOwnerID)}", Required = Required.DisallowNull)]
|
||||
private string SSteamOwnerID {
|
||||
get => SteamOwnerID.ToString(CultureInfo.InvariantCulture);
|
||||
|
||||
|
||||
@@ -96,10 +96,10 @@ public sealed class GlobalDatabase : SerializableFile {
|
||||
}
|
||||
}
|
||||
|
||||
[JsonProperty(PropertyName = $"_{nameof(CellID)}", Required = Required.DisallowNull)]
|
||||
[JsonProperty($"_{nameof(CellID)}", Required = Required.DisallowNull)]
|
||||
private uint BackingCellID;
|
||||
|
||||
[JsonProperty(PropertyName = $"_{nameof(LastChangeNumber)}", Required = Required.DisallowNull)]
|
||||
[JsonProperty($"_{nameof(LastChangeNumber)}", Required = Required.DisallowNull)]
|
||||
private uint BackingLastChangeNumber;
|
||||
|
||||
private GlobalDatabase(string filePath) : this() {
|
||||
|
||||
Reference in New Issue
Block a user