30 lines
519 B
C#
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}";
|
|
}
|
|
}
|
|
}
|