|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|