mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Use Version in ASFResponse
This is non-breaking, version is already serialized as string by default
This commit is contained in:
@@ -59,7 +59,7 @@ namespace ArchiSteamFarm.IPC.Responses {
|
||||
/// </summary>
|
||||
[JsonProperty(Required = Required.Always)]
|
||||
[Required]
|
||||
public readonly string Version;
|
||||
public readonly Version Version;
|
||||
|
||||
internal ASFResponse([NotNull] string buildVariant, [NotNull] GlobalConfig globalConfig, uint memoryUsage, DateTime processStartTime, [NotNull] Version version) {
|
||||
if (string.IsNullOrEmpty(buildVariant) || (globalConfig == null) || (memoryUsage == 0) || (processStartTime == DateTime.MinValue) || (version == null)) {
|
||||
@@ -70,7 +70,7 @@ namespace ArchiSteamFarm.IPC.Responses {
|
||||
GlobalConfig = globalConfig;
|
||||
MemoryUsage = memoryUsage;
|
||||
ProcessStartTime = processStartTime;
|
||||
Version = version.ToString();
|
||||
Version = version;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user