ServerPanelModel.cs 754 B

123456789101112131415161718192021222324252627282930313233343536
  1. using ReactiveUI;
  2. using ReactiveUI.Validation.Helpers;
  3. namespace VeloeMinecraftLauncher.Models;
  4. public class ServerPanelModel : ReactiveValidationObject
  5. {
  6. private string _name;
  7. private string _status;
  8. private string _tip;
  9. private string _players;
  10. public string Name
  11. {
  12. get => _name;
  13. set => this.RaiseAndSetIfChanged(ref _name, value);
  14. }
  15. public string Status
  16. {
  17. get => _status;
  18. set => this.RaiseAndSetIfChanged(ref _status, value);
  19. }
  20. public string Tip
  21. {
  22. get => _tip;
  23. set => this.RaiseAndSetIfChanged(ref _tip, value);
  24. }
  25. public string Players
  26. {
  27. get => _players;
  28. set => this.RaiseAndSetIfChanged(ref _players, value);
  29. }
  30. }