Class UpdateService.UpdateInfo
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Update data. PackageUrl/PackageName are the package for the platform this app is running on — the Windows installer, the Linux AppImage or the macOS .dmg for this architecture — and are null when the release ships nothing usable here. ChecksumUrl is the asset that carries its SHA-256, used to verify the download before it is installed; null on releases published before that existed. SignatureUrl is the asset with the publisher's signature of the package (see UpdateSignature); null when the release has not been signed (yet).
public record UpdateService.UpdateInfo : IEquatable<UpdateService.UpdateInfo>
- Inheritance
-
UpdateService.UpdateInfo
- Implements
- Inherited Members
Remarks
IsPreRelease exists so nobody can be moved onto a beta without being told: it is what
the banner and the notification use to say so, before the button is pressed rather than
after.
Constructors
UpdateInfo(string, string, string?, string?, string?, bool, string?)
Update data. PackageUrl/PackageName are the package for the platform this app is running on — the Windows installer, the Linux AppImage or the macOS .dmg for this architecture — and are null when the release ships nothing usable here. ChecksumUrl is the asset that carries its SHA-256, used to verify the download before it is installed; null on releases published before that existed. SignatureUrl is the asset with the publisher's signature of the package (see UpdateSignature); null when the release has not been signed (yet).
public UpdateInfo(string Version, string Url, string? PackageUrl, string? PackageName, string? ChecksumUrl, bool IsPreRelease = false, string? SignatureUrl = null)
Parameters
VersionstringUrlstringPackageUrlstringPackageNamestringChecksumUrlstringIsPreReleaseboolSignatureUrlstring
Remarks
IsPreRelease exists so nobody can be moved onto a beta without being told: it is what
the banner and the notification use to say so, before the button is pressed rather than
after.
Properties
ChecksumUrl
public string? ChecksumUrl { get; init; }
Property Value
IsPreRelease
public bool IsPreRelease { get; init; }
Property Value
PackageName
public string? PackageName { get; init; }
Property Value
PackageUrl
public string? PackageUrl { get; init; }
Property Value
SignatureUrl
public string? SignatureUrl { get; init; }
Property Value
Url
public string Url { get; init; }
Property Value
Version
public string Version { get; init; }