2
0
mirror of synced 2025-01-18 20:41:25 +00:00

47 lines
1.3 KiB
C#
Raw Normal View History

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