qstbak/QuestionableCompanion/QuestionableCompanion.Models/StopPoint.cs
2025-12-04 04:39:08 +10:00

30 lines
519 B
C#

using System;
using System.Text.Json.Serialization;
namespace QuestionableCompanion.Models;
[Serializable]
public class StopPoint
{
public uint QuestId { get; set; }
[JsonInclude]
[JsonPropertyName("Sequence")]
public byte? Sequence { get; set; }
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.Now;
public string DisplayName
{
get
{
if (Sequence.HasValue)
{
return $"Quest {QuestId} (Seq {Sequence.Value})";
}
return $"Quest {QuestId}";
}
}
}