Files
live_recorder/src/LiveRecorder.Domain/Entities/AppSetting.cs
T
2026-04-16 15:19:48 +08:00

31 lines
650 B
C#

namespace LiveRecorder.Domain.Entities;
public class AppSetting
{
private AppSetting()
{
}
public AppSetting(string key, string value, DateTimeOffset updatedAt)
{
Id = Guid.NewGuid();
Key = key;
Value = value;
UpdatedAt = updatedAt;
}
public Guid Id { get; private set; }
public string Key { get; private set; } = string.Empty;
public string Value { get; private set; } = string.Empty;
public DateTimeOffset UpdatedAt { get; private set; }
public void Update(string value, DateTimeOffset updatedAt)
{
Value = value;
UpdatedAt = updatedAt;
}
}