-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
15 changed files
with
180 additions
and
47 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
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
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
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,13 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Web.Hoyolab.Passport; | ||
|
||
internal sealed class QrLogin | ||
{ | ||
[JsonPropertyName("url")] | ||
public string Url { get; set; } = default!; | ||
|
||
[JsonPropertyName("ticket")] | ||
public string Ticket { get; set; } = default!; | ||
} |
40 changes: 40 additions & 0 deletions
40
src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Passport/QrLoginResult.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,40 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Web.Hoyolab.Passport; | ||
|
||
internal sealed class QrLoginResult | ||
{ | ||
[JsonPropertyName("status")] | ||
public string Status { get; set; } = default!; | ||
|
||
[JsonPropertyName("app_id")] | ||
public string AppId { get; set; } = default!; | ||
|
||
[JsonPropertyName("client_type")] | ||
public int ClientType { get; set; } | ||
|
||
[JsonPropertyName("created_at")] | ||
public string CreatedAt { get; set; } = default!; | ||
|
||
[JsonPropertyName("scanned_at")] | ||
public string ScannedAt { get; set; } = default!; | ||
|
||
[JsonPropertyName("tokens")] | ||
public List<TokenWrapper> Tokens { get; set; } = default!; | ||
|
||
[JsonPropertyName("user_info")] | ||
public UserInformation UserInfo { get; set; } = default!; | ||
|
||
[JsonPropertyName("realname_info")] | ||
public RealnameInfo RealnameInfo { get; set; } = default!; | ||
|
||
[JsonPropertyName("need_realperson")] | ||
public bool NeedRealperson { get; set; } | ||
|
||
[JsonPropertyName("ext")] | ||
public string Ext { get; set; } = default!; | ||
|
||
[JsonPropertyName("scan_game_biz")] | ||
public string ScanGameBiz { get; set; } = default!; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Passport/QrTicketWrapper.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,10 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Web.Hoyolab.Passport; | ||
|
||
internal sealed class QrTicketWrapper | ||
{ | ||
[JsonPropertyName("ticket")] | ||
public string Ticket { get; set; } = default!; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Passport/RealnameInfo.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,16 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Web.Hoyolab.Passport; | ||
|
||
internal sealed class RealnameInfo | ||
{ | ||
[JsonPropertyName("required")] | ||
public bool Required { get; set; } | ||
|
||
[JsonPropertyName("action_type")] | ||
public string ActionType { get; set; } = default!; | ||
|
||
[JsonPropertyName("action_ticket")] | ||
public string ActionTicket { get; set; } = default!; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Snap.Hutao/Snap.Hutao/Web/Request/Builder/EmptyContent.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,6 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Web.Request.Builder; | ||
|
||
internal readonly struct EmptyContent; |
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