Table of Contents

Class TunnelSuggestion

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

One thing the screen can offer to put right. TunnelId and ServerId name what it concerns, when it concerns one; Subject is the name to show (the tunnel's or the server's); Other is a second name where one is needed (the other server sharing a port); Udp and Port say which local port it is about — a shared Bedrock port is fixed differently from a shared Java one, and "create a tunnel" is only actionable on playit.gg with the port in hand.

public sealed record TunnelSuggestion : IEquatable<TunnelSuggestion>
Inheritance
TunnelSuggestion
Implements
Inherited Members

Constructors

TunnelSuggestion(TunnelSuggestionKind, string?, string?, string, string?, bool, int)

One thing the screen can offer to put right. TunnelId and ServerId name what it concerns, when it concerns one; Subject is the name to show (the tunnel's or the server's); Other is a second name where one is needed (the other server sharing a port); Udp and Port say which local port it is about — a shared Bedrock port is fixed differently from a shared Java one, and "create a tunnel" is only actionable on playit.gg with the port in hand.

public TunnelSuggestion(TunnelSuggestionKind Kind, string? TunnelId, string? ServerId, string Subject, string? Other = null, bool Udp = false, int Port = 0)

Parameters

Kind TunnelSuggestionKind
TunnelId string
ServerId string
Subject string
Other string
Udp bool
Port int

Properties

IsProblem

Every suggestion left is something wrong; the tidy-up of names went (it was noise).

public bool IsProblem { get; }

Property Value

bool

Kind

public TunnelSuggestionKind Kind { get; init; }

Property Value

TunnelSuggestionKind

Other

public string? Other { get; init; }

Property Value

string

Port

public int Port { get; init; }

Property Value

int

ServerId

public string? ServerId { get; init; }

Property Value

string

Subject

public string Subject { get; init; }

Property Value

string

TunnelId

public string? TunnelId { get; init; }

Property Value

string

Udp

public bool Udp { get; init; }

Property Value

bool