You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
922 B
34 lines
922 B
1 year ago
|
using System.Text.Json.Serialization;
|
||
1 year ago
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Models.Update;
|
||
1 year ago
|
|
||
1 year ago
|
public record UpdateInfo(
|
||
|
[property: JsonPropertyName("version")]
|
||
|
Version Version,
|
||
1 year ago
|
|
||
1 year ago
|
[property: JsonPropertyName("releaseDate")]
|
||
|
DateTimeOffset ReleaseDate,
|
||
1 year ago
|
|
||
1 year ago
|
[property: JsonPropertyName("channel")]
|
||
|
UpdateChannel Channel,
|
||
|
|
||
1 year ago
|
[property: JsonPropertyName("type")]
|
||
|
UpdateType Type,
|
||
|
|
||
1 year ago
|
[property: JsonPropertyName("url")]
|
||
|
string DownloadUrl,
|
||
1 year ago
|
|
||
1 year ago
|
[property: JsonPropertyName("changelog")]
|
||
|
string ChangelogUrl,
|
||
1 year ago
|
|
||
1 year ago
|
// Blake3 hash of the file
|
||
1 year ago
|
[property: JsonPropertyName("hashBlake3")]
|
||
1 year ago
|
string HashBlake3,
|
||
1 year ago
|
|
||
1 year ago
|
// ED25519 signature of the semicolon seperated string:
|
||
|
// "version + releaseDate + channel + type + url + changelog + hash_blake3"
|
||
|
// verifiable using our stored public key
|
||
|
[property: JsonPropertyName("signature")]
|
||
|
string Signature
|
||
1 year ago
|
);
|