mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
minor change
This commit is contained in:
@@ -3,14 +3,11 @@
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect.ChannelSDK;
|
||||
|
||||
internal sealed class ChannelSDK
|
||||
internal sealed class ChannelSDK : GameSpecified
|
||||
{
|
||||
[JsonPropertyName("channel_sdk_pkg")]
|
||||
public PackageSegment ChannelSdkPackage { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public GameIdentifier Game { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("pkg_version_file_name")]
|
||||
public string PackageVersionFileName { get; set; } = default!;
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect.DeprecatedFile;
|
||||
|
||||
internal sealed class DeprecatedFileConfig
|
||||
internal sealed class DeprecatedFileConfig : GameSpecified
|
||||
{
|
||||
[JsonPropertyName("deprecated_files")]
|
||||
public List<DeprecatedFile> DeprecatedFiles { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public GameIdentifier Game { get; set; } = default!;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect;
|
||||
|
||||
internal sealed class GameIdentifier
|
||||
internal sealed class Game
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; } = default!;
|
||||
@@ -0,0 +1,10 @@
|
||||
// Copyright (c) DGP Studio. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect;
|
||||
|
||||
internal class GameSpecified
|
||||
{
|
||||
[JsonPropertyName("game")]
|
||||
public Game Game { get; set; } = default!;
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect.Package;
|
||||
|
||||
internal sealed class Game
|
||||
internal sealed class GameBranch
|
||||
{
|
||||
[JsonPropertyName("major")]
|
||||
public Package? Major { get; set; }
|
||||
@@ -3,14 +3,11 @@
|
||||
|
||||
namespace Snap.Hutao.Web.Hoyolab.HoyoPlay.Connect.Package;
|
||||
|
||||
internal sealed class GamePackage
|
||||
internal sealed class GamePackage : GameSpecified
|
||||
{
|
||||
[JsonPropertyName("game")]
|
||||
public GameIdentifier Game { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("main")]
|
||||
public Game Main { get; set; } = default!;
|
||||
public GameBranch Main { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("pre_download")]
|
||||
public Game PreDownload { get; set; } = default!;
|
||||
public GameBranch PreDownload { get; set; } = default!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user