-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,924 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterAvatar.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterAvatar | ||
{ | ||
|
||
[JsonPropertyName("avatar_id")] | ||
public int AvatarId { get; set; } | ||
|
||
/// <summary> | ||
/// 1 自己角色,2 试用角色,3 助演角色 | ||
/// </summary> | ||
[JsonPropertyName("avatar_type")] | ||
public int AvatarType { get; set; } | ||
|
||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
|
||
[JsonPropertyName("element")] | ||
public string Element { get; set; } | ||
|
||
|
||
[JsonPropertyName("image")] | ||
public string Image { get; set; } | ||
|
||
|
||
[JsonPropertyName("level")] | ||
public int Level { get; set; } | ||
|
||
|
||
[JsonPropertyName("rarity")] | ||
public int Rarity { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
34 changes: 34 additions & 0 deletions
34
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterBuff.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterBuff | ||
{ | ||
|
||
[JsonPropertyName("icon")] | ||
public string Icon { get; set; } | ||
|
||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
|
||
[JsonPropertyName("desc")] | ||
public string Desc { get; set; } | ||
|
||
/// <summary> | ||
/// 已强化 | ||
/// </summary> | ||
[JsonPropertyName("is_enhanced")] | ||
public bool IsEnhanced { get; set; } | ||
|
||
|
||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
36 changes: 36 additions & 0 deletions
36
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterDetail.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterDetail | ||
{ | ||
|
||
[JsonPropertyName("rounds_data")] | ||
public List<ImaginariumTheaterRoundsData> RoundsData { get; set; } | ||
|
||
/// <summary> | ||
/// 数据不全,完整数据参考 <see cref="ImaginariumTheaterInfo.Stat"/> | ||
/// </summary> | ||
[JsonPropertyName("detail_stat")] | ||
public ImaginariumTheaterStat DetailStat { get; set; } | ||
|
||
|
||
[JsonPropertyName("lineup_link")] | ||
public string LineupLink { get; set; } | ||
|
||
/// <summary> | ||
/// 待命角色 | ||
/// </summary> | ||
[JsonPropertyName("backup_avatars")] | ||
public List<ImaginariumTheaterAvatar> BackupAvatars { get; set; } | ||
|
||
|
||
[JsonPropertyName("fight_statisic")] | ||
public ImaginariumTheaterFightStatisic FightStatisic { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
24 changes: 24 additions & 0 deletions
24
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterEnemy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterEnemy | ||
{ | ||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
|
||
[JsonPropertyName("icon")] | ||
public string Icon { get; set; } | ||
|
||
|
||
[JsonPropertyName("level")] | ||
public int Level { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
53 changes: 53 additions & 0 deletions
53
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterFightStatisic.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterFightStatisic | ||
{ | ||
|
||
/// <summary> | ||
/// 击败最多敌人 | ||
/// </summary> | ||
[JsonPropertyName("max_defeat_avatar")] | ||
public ImaginariumTheaterFightStatisicAvatar MaxDefeatAvatar { get; set; } | ||
|
||
/// <summary> | ||
/// 最高伤害输出 | ||
/// </summary> | ||
[JsonPropertyName("max_damage_avatar")] | ||
public ImaginariumTheaterFightStatisicAvatar MaxDamageAvatar { get; set; } | ||
|
||
/// <summary> | ||
/// 最高承受伤害 | ||
/// </summary> | ||
[JsonPropertyName("max_take_damage_avatar")] | ||
public ImaginariumTheaterFightStatisicAvatar MaxTakeDamageAvatar { get; set; } | ||
|
||
/// <summary> | ||
/// 本次消耗幻剧之花 | ||
/// </summary> | ||
[JsonPropertyName("total_coin_consumed")] | ||
public ImaginariumTheaterFightStatisicAvatar TotalCoinConsumed { get; set; } | ||
|
||
/// <summary> | ||
/// 最快完成演出的队伍 | ||
/// </summary> | ||
[JsonPropertyName("shortest_avatar_list")] | ||
public List<ImaginariumTheaterFightStatisicAvatar> ShortestAvatarList { get; set; } | ||
|
||
/// <summary> | ||
/// 演出总时长(秒) | ||
/// </summary> | ||
[JsonPropertyName("total_use_time")] | ||
public int TotalUseTime { get; set; } | ||
|
||
|
||
[JsonPropertyName("is_show_battle_stats")] | ||
public bool IsShowBattleStats { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
28 changes: 28 additions & 0 deletions
28
...rward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterFightStatisicAvatar.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterFightStatisicAvatar | ||
{ | ||
|
||
[JsonPropertyName("avatar_id")] | ||
public int AvatarId { get; set; } | ||
|
||
|
||
[JsonPropertyName("avatar_icon")] | ||
public string AvatarIcon { get; set; } | ||
|
||
|
||
[JsonPropertyName("value")] | ||
public string Value { get; set; } | ||
|
||
|
||
[JsonPropertyName("rarity")] | ||
public int Rarity { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
74 changes: 74 additions & 0 deletions
74
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
using Starward.Core.Gacha; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterInfo | ||
{ | ||
|
||
[JsonPropertyName("uid")] | ||
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)] | ||
public long Uid { get; set; } | ||
|
||
|
||
[JsonPropertyName("schedule_id")] | ||
public int ScheduleId { get; set; } | ||
|
||
|
||
[JsonPropertyName("start_time")] | ||
[JsonConverter(typeof(DateTimeJsonConverter))] | ||
public DateTime StartTime { get; set; } | ||
|
||
[JsonPropertyName("end_time")] | ||
[JsonConverter(typeof(DateTimeJsonConverter))] | ||
public DateTime EndTime { get; set; } | ||
|
||
/// <summary> | ||
/// 难度 | ||
/// </summary> | ||
[JsonPropertyName("difficulty_id")] | ||
public int DifficultyId { get; set; } | ||
|
||
/// <summary> | ||
/// 抵达最大轮数 | ||
/// </summary> | ||
[JsonPropertyName("max_round_id")] | ||
public int MaxRoundId { get; set; } | ||
|
||
/// <summary> | ||
/// 纹章类型 | ||
/// </summary> | ||
[JsonPropertyName("heraldry")] | ||
public int Heraldry { get; set; } | ||
|
||
/// <summary> | ||
/// 明星挑战星章数量 | ||
/// </summary> | ||
[JsonPropertyName("medal_num")] | ||
public int MedalNum { get; set; } | ||
|
||
|
||
[JsonPropertyName("detail")] | ||
public ImaginariumTheaterDetail Detail { get; set; } | ||
|
||
|
||
[JsonPropertyName("stat")] | ||
public ImaginariumTheaterStat Stat { get; set; } | ||
|
||
|
||
[JsonPropertyName("schedule")] | ||
public ImaginariumTheaterSchedule Schedule { get; set; } | ||
|
||
|
||
[JsonPropertyName("has_data")] | ||
public bool HasData { get; set; } | ||
|
||
|
||
[JsonPropertyName("has_detail_data")] | ||
public bool HasDetailData { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/Starward.Core/GameRecord/Genshin/ImaginariumTheater/ImaginariumTheaterLinks.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.Genshin.ImaginariumTheater; | ||
|
||
public class ImaginariumTheaterLinks | ||
{ | ||
[JsonPropertyName("lineup_link")] | ||
public string LineupLink { get; set; } | ||
|
||
[JsonPropertyName("lineup_link_pc")] | ||
public string LineupLinkPc { get; set; } | ||
|
||
[JsonPropertyName("strategy_link")] | ||
public string StrategyLink { get; set; } | ||
|
||
[JsonPropertyName("lineup_publish_link")] | ||
public string LineupPublishLink { get; set; } | ||
|
||
[JsonPropertyName("lineup_publish_link_pc")] | ||
public string LineupPublishLinkPc { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
} | ||
|
Oops, something went wrong.