pschelpdesk/HetznerServer/Models/Server.cs
2024-11-04 11:28:08 +01:00

34 lines
897 B
C#

using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace PSCHelpdesk.Plugins.HetznerServer.Models;
public class Server: INotifyPropertyChanged
{
public long Id { get; set; }
public string Name { get; set; }
public string Status { get; set; }
public string Type { get; set; }
public string Ipv4 { get; set; }
public string Ipv6 { get; set; }
public Server(long id, string name, string type, string status, string ipv4, string ipv6)
{
Id = id;
Name = name;
Type = type;
Status = status;
Ipv4 = ipv4;
Ipv6 = ipv6;
}
public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}