Table of Contents

Class StoreLinkViewModel

Namespace
McServerLauncher.ViewModels
Assembly
McServerLauncher.dll

A dependency or a related project: a card that opens its own details page.

public class StoreLinkViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
StoreLinkViewModel
Implements
Inherited Members

Constructors

StoreLinkViewModel(ServerModsViewModel, StoreItem, string, bool)

public StoreLinkViewModel(ServerModsViewModel parent, StoreItem item, string badge = "", bool withTagline = false)

Parameters

parent ServerModsViewModel
item StoreItem
badge string
withTagline bool

Properties

Badge

Optional label above the summary, e.g. whether a dependency is required.

public string Badge { get; }

Property Value

string

HasBadge

public bool HasBadge { get; }

Property Value

bool

HasIcon

public bool HasIcon { get; }

Property Value

bool

HasTagline

public bool HasTagline { get; }

Property Value

bool

Icon

[ExcludeFromCodeCoverage]
public Bitmap? Icon { get; set; }

Property Value

Bitmap

OpenCommand

Gets an IRelayCommand instance wrapping McServerLauncher.ViewModels.StoreLinkViewModel.Open().

[ExcludeFromCodeCoverage]
public IRelayCommand OpenCommand { get; }

Property Value

IRelayCommand

Summary

What the project does, in the user's language.

public string Summary { get; }

Property Value

string

Tagline

The author's own line, when it adds something. Empty otherwise.

public string Tagline { get; }

Property Value

string

Title

The project's own name. Never translated: it is how the user will find it on Modrinth, and it is the name of the .jar that ends up in the server's folder.

public string Title { get; }

Property Value

string