Class TunnelRowViewModel
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
One line of the tunnels table.
public class TunnelRowViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
TunnelRowViewModel
- Implements
- Inherited Members
Remarks
Holds nothing but how to show a TunnelRow and the editing state of its name; every action goes back to TunnelsViewModel, which is the only place that talks to the account.
Constructors
TunnelRowViewModel(TunnelsViewModel, TunnelRow, bool)
public TunnelRowViewModel(TunnelsViewModel owner, TunnelRow row, bool canEdit = true)
Parameters
ownerTunnelsViewModelrowTunnelRowcanEditbool
Properties
Address
Where players connect. Bedrock has no SRV record, so its port is part of what they type.
public string Address { get; }
Property Value
BeginRenameCommand
Gets an IRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.BeginRename().
[ExcludeFromCodeCoverage]
public IRelayCommand BeginRenameCommand { get; }
Property Value
CanEdit
Whether the key this tunnel was read with may change it. The key of an agent the user installed can only read, so its tunnels are renamed and deleted on playit.gg, and the buttons say so.
public bool CanEdit { get; }
Property Value
CancelRenameCommand
Gets an IRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.CancelRename().
[ExcludeFromCodeCoverage]
public IRelayCommand CancelRenameCommand { get; }
Property Value
ConfirmRenameCommand
Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.ConfirmRename().
[ExcludeFromCodeCoverage]
public IAsyncRelayCommand ConfirmRenameCommand { get; }
Property Value
CopyCommand
Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.Copy().
[ExcludeFromCodeCoverage]
public IAsyncRelayCommand CopyCommand { get; }
Property Value
DeleteCommand
Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.Delete().
[ExcludeFromCodeCoverage]
public IAsyncRelayCommand DeleteCommand { get; }
Property Value
DeleteTip
public string DeleteTip { get; }
Property Value
DotBrush
public IBrush DotBrush { get; }
Property Value
- IBrush
EditName
[ExcludeFromCodeCoverage]
public string EditName { get; set; }
Property Value
HasAddress
public bool HasAddress { get; }
Property Value
HasHint
public bool HasHint { get; }
Property Value
HintText
public string? HintText { get; }
Property Value
Id
public string Id { get; }
Property Value
IsEditing
[ExcludeFromCodeCoverage]
public bool IsEditing { get; set; }
Property Value
IsNotEditing
public bool IsNotEditing { get; }
Property Value
IsProblem
public bool IsProblem { get; }
Property Value
LocalPort
public int LocalPort { get; }
Property Value
Name
public string Name { get; }
Property Value
ProtoText
public string ProtoText { get; }
Property Value
RenameTip
public string RenameTip { get; }
Property Value
RowBackground
public IBrush RowBackground { get; }
Property Value
- IBrush
ServerText
public string ServerText { get; }
Property Value
ShowSuggestion
public bool ShowSuggestion { get; }
Property Value
SuggestedName
The name it would carry if named after its server, when that is not what it has.
public string? SuggestedName { get; }
Property Value
SuggestionText
public string SuggestionText { get; }
Property Value
UseSuggestedCommand
Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.TunnelRowViewModel.UseSuggested().
[ExcludeFromCodeCoverage]
public IAsyncRelayCommand UseSuggestedCommand { get; }