-
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
5 changed files
with
205 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.HoYoPlay; | ||
|
||
|
||
public class GamePatchBuild | ||
{ | ||
|
||
[JsonPropertyName("build_id")] | ||
public string BuildId { get; set; } | ||
|
||
|
||
[JsonPropertyName("patch_id")] | ||
public string PatchId { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// 游戏版本 | ||
/// </summary> | ||
[JsonPropertyName("tag")] | ||
public string Tag { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// 文件清单 | ||
/// </summary> | ||
[JsonPropertyName("manifests")] | ||
public List<GamePatchManifest> Manifests { get; set; } | ||
|
||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// Chunk 下载模式补丁文件清单 | ||
/// </summary> | ||
public class GamePatchManifest | ||
{ | ||
/// <summary> | ||
/// 资源ID | ||
/// </summary> | ||
[JsonPropertyName("category_id")] | ||
public string CategoryId { get; set; } | ||
|
||
/// <summary> | ||
/// 资源名称 | ||
/// </summary> | ||
[JsonPropertyName("category_name")] | ||
public string CategoryName { get; set; } | ||
|
||
/// <summary> | ||
/// 资源类型,game or 语音类型(zh-cn, en-us, ja-jp, ko-kr) | ||
/// </summary> | ||
[JsonPropertyName("matching_field")] | ||
public string MatchingField { get; set; } | ||
|
||
/// <summary> | ||
/// 清单文件信息 | ||
/// </summary> | ||
[JsonPropertyName("manifest")] | ||
public GameChunkManifestFile Manifest { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// 分块文件下载链接前缀 | ||
/// </summary> | ||
[JsonPropertyName("diff_download")] | ||
public GameChunkManifestUrl DiffDownload { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// 清单文件下载链接前缀 | ||
/// </summary> | ||
[JsonPropertyName("manifest_download")] | ||
public GameChunkManifestUrl ManifestDownload { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// 文件统计信息 | ||
/// </summary> | ||
[JsonPropertyName("stats")] | ||
public Dictionary<string, GameChunkManifestStats> Stats { get; set; } | ||
|
||
|
||
} |
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