Table of Contents

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.

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)

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.

public UpdateInfo(string Version, string Url, string? PackageUrl, string? PackageName, string? ChecksumUrl, bool IsPreRelease = false)

Parameters

Version string
Url string
PackageUrl string
PackageName string
ChecksumUrl string
IsPreRelease bool

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

string

IsPreRelease

public bool IsPreRelease { get; init; }

Property Value

bool

PackageName

public string? PackageName { get; init; }

Property Value

string

PackageUrl

public string? PackageUrl { get; init; }

Property Value

string

Url

public string Url { get; init; }

Property Value

string

Version

public string Version { get; init; }

Property Value

string