Browse Source

put update type in ctor

pull/14/head
Ionite 1 year ago
parent
commit
3e71f9b10b
No known key found for this signature in database
  1. 11
      StabilityMatrix/Updater/UpdateInfo.cs

11
StabilityMatrix/Updater/UpdateInfo.cs

@ -17,10 +17,7 @@ public class UpdateInfo
[JsonRequired]
[JsonPropertyName("channel")]
public UpdateChannel Channel { get; set; }
[JsonPropertyName("type")]
public UpdateType? Type { get; set; }
[JsonRequired]
[JsonPropertyName("url")]
public string DownloadUrl { get; set; }
@ -31,8 +28,11 @@ public class UpdateInfo
[JsonPropertyName("signature")]
public string? Signature { get; set; }
[JsonPropertyName("type")]
public UpdateType? Type { get; set; }
public UpdateInfo(Version version, DateTimeOffset releaseDate, UpdateChannel channel, string downloadUrl, string changelogUrl, string? signature = null)
public UpdateInfo(Version version, DateTimeOffset releaseDate, UpdateChannel channel, string downloadUrl, string changelogUrl, string? signature = null, UpdateType? updateType = null)
{
Version = version;
ReleaseDate = releaseDate;
@ -40,5 +40,6 @@ public class UpdateInfo
DownloadUrl = downloadUrl;
ChangelogUrl = changelogUrl;
Signature = signature;
Type = updateType;
}
}

Loading…
Cancel
Save