24 lines
589 B
C#
24 lines
589 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Watcher.Models;
|
|
|
|
public class Container
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
public int ServerId { get; set; }
|
|
|
|
public String? ContainerId { get; set; }
|
|
|
|
[JsonPropertyName("image")]
|
|
public String? Image { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public String? Name { get; set; }
|
|
|
|
// keine Variable, die vom Agent übergeben wird. Ein container ist immer Running, die Variable dient nur für die Übersicht
|
|
// auf dem Dashboard.
|
|
public Boolean IsRunning { get; set; } = true;
|
|
}
|