cs-codex-dist-tests/Framework/OverwatchTranscript/Model.cs

47 lines
1.3 KiB
C#
Raw Normal View History

namespace OverwatchTranscript
{
[Serializable]
2024-07-25 13:12:25 +00:00
public class OverwatchTranscript
{
2024-07-25 13:12:25 +00:00
public OverwatchHeader Header { get; set; } = new();
2024-07-26 08:56:22 +00:00
public OverwatchMoment[] Moments { get; set; } = Array.Empty<OverwatchMoment>();
}
[Serializable]
2024-07-25 13:12:25 +00:00
public class OverwatchHeader
{
2024-07-29 06:08:17 +00:00
public OverwatchCommonHeader Common { get; set; } = new();
2024-07-25 13:12:25 +00:00
public OverwatchHeaderEntry[] Entries { get; set; } = Array.Empty<OverwatchHeaderEntry>();
}
2024-07-29 06:08:17 +00:00
[Serializable]
public class OverwatchCommonHeader
{
2024-07-31 09:02:09 +00:00
public long NumberOfMoments { get; set; }
2024-07-29 06:08:17 +00:00
public long NumberOfEvents { get; set; }
public DateTime EarliestUct { get; set; }
public DateTime LatestUtc { get; set; }
}
[Serializable]
2024-07-25 13:12:25 +00:00
public class OverwatchHeaderEntry
{
2024-07-25 13:12:25 +00:00
public string Key { get; set; } = string.Empty;
public string Value { get; set; } = string.Empty;
}
[Serializable]
2024-07-26 08:56:22 +00:00
public class OverwatchMoment
{
2024-07-25 13:12:25 +00:00
public DateTime Utc { get; set; }
2024-07-26 08:56:22 +00:00
public OverwatchEvent[] Events { get; set; } = Array.Empty<OverwatchEvent>();
}
[Serializable]
public class OverwatchEvent
{
2024-07-25 13:12:25 +00:00
public string Type { get; set; } = string.Empty;
public string Payload { get; set; } = string.Empty;
}
2024-07-25 13:12:25 +00:00
}