Table of Contents

Class ModUpdateInfo

Namespace
McServerLauncher.Models
Assembly
McServerLauncher.dll

Everything needed to update an installed mod to its latest Modrinth version.

public record ModUpdateInfo : IEquatable<ModUpdateInfo>
Inheritance
ModUpdateInfo
Implements
Inherited Members

Remarks

ProjectId is the store project the update belongs to, so every other copy of that project can go with the old version. Optional so a caller that does not know it still compiles and still updates.

Constructors

ModUpdateInfo(string, string, string, string?, string?, string?)

Everything needed to update an installed mod to its latest Modrinth version.

public ModUpdateInfo(string VersionNumber, string Url, string FileName, string? Sha512, string? Sha1, string? ProjectId = null)

Parameters

VersionNumber string
Url string
FileName string
Sha512 string
Sha1 string
ProjectId string

Remarks

ProjectId is the store project the update belongs to, so every other copy of that project can go with the old version. Optional so a caller that does not know it still compiles and still updates.

Properties

FileName

public string FileName { get; init; }

Property Value

string

ProjectId

public string? ProjectId { get; init; }

Property Value

string

Sha1

public string? Sha1 { get; init; }

Property Value

string

Sha512

public string? Sha512 { get; init; }

Property Value

string

Url

public string Url { get; init; }

Property Value

string

VersionNumber

public string VersionNumber { get; init; }

Property Value

string