28 lines
No EOL
890 B
C#
28 lines
No EOL
890 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace blazingconsole.Types
|
|
{
|
|
public class ComputerMetadata(int id, string name, Guid address, ComputerType type, List<string> upgrades, Location location, Guid ownerUniqueId)
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; } = id;
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = name;
|
|
|
|
[JsonPropertyName("address")]
|
|
public Guid Address { get; set; } = address;
|
|
|
|
[JsonPropertyName("type")]
|
|
public ComputerType Type { get; set; } = type;
|
|
|
|
[JsonPropertyName("upgrades")]
|
|
public List<string> Upgrades { get; set; } = upgrades;
|
|
|
|
[JsonPropertyName("location")]
|
|
public Location Location { get; set; } = location;
|
|
|
|
[JsonPropertyName("owner")]
|
|
public Guid OwnerUniqueId { get; set; } = ownerUniqueId;
|
|
}
|
|
} |