add new buff & time info for spiral abyss

This commit is contained in:
DismissedLight
2023-08-27 23:26:47 +08:00
parent 92afa4b23c
commit 7756e348a8
5 changed files with 59 additions and 2 deletions

View File

@@ -26,4 +26,7 @@ internal sealed class Battle
/// </summary>
[JsonPropertyName("avatars")]
public List<Avatar> Avatars { get; set; } = default!;
[JsonPropertyName("settle_date_time")]
public SettleDateTime SettleDateTime { get; set; } = default!;
}

View File

@@ -31,6 +31,7 @@ internal sealed class Floor
/// 结束时间
/// </summary>
[JsonPropertyName("settle_time")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long SettleTime { get; set; } = default!;
/// <summary>
@@ -50,4 +51,10 @@ internal sealed class Floor
/// </summary>
[JsonPropertyName("levels")]
public List<Level> Levels { get; set; } = default!;
}
[JsonPropertyName("settle_date_time")]
public SettleDateTime? SettleDateTime { get; set; }
[JsonPropertyName("ley_line_disorder")]
public List<string> LeyLineDisorder { get; set; } = default!;
}

View File

@@ -32,4 +32,10 @@ internal sealed class Level
/// </summary>
[JsonPropertyName("battles")]
public List<Battle> Battles { get; set; } = default!;
}
[JsonPropertyName("top_half_floor_monster")]
public List<Monster> TopHalfFloorMonster { get; set; } = default!;
[JsonPropertyName("bottom_half_floor_monster")]
public List<Monster> BottomHalfFloorMonster { get; set; } = default!;
}

View File

@@ -0,0 +1,16 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
namespace Snap.Hutao.Web.Hoyolab.Takumi.GameRecord.SpiralAbyss;
internal sealed class Monster
{
[JsonPropertyName("name")]
public string Name { get; set; } = default!;
[JsonPropertyName("icon")]
public string Icon { get; set; } = default!;
[JsonPropertyName("level")]
public int Level { get; set; }
}

View File

@@ -0,0 +1,25 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
namespace Snap.Hutao.Web.Hoyolab.Takumi.GameRecord.SpiralAbyss;
internal sealed class SettleDateTime
{
[JsonPropertyName("year")]
public int Year { get; set; }
[JsonPropertyName("month")]
public int Month { get; set; }
[JsonPropertyName("day")]
public int Day { get; set; }
[JsonPropertyName("hour")]
public int Hour { get; set; }
[JsonPropertyName("minute")]
public int Minute { get; set; }
[JsonPropertyName("second")]
public int Second { get; set; }
}