forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
222 additions
and
30 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
52 changes: 52 additions & 0 deletions
52
...ervices.CloudService/Models/GAPAuthenticators/GAPAuthenticatorDTO.LightweightExportDTO.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,52 @@ | ||
using WinAuth; | ||
using static System.Application.Models.GAPAuthenticatorValueDTO; | ||
using MPKey = MessagePack.KeyAttribute; | ||
using MPObj = MessagePack.MessagePackObjectAttribute; | ||
|
||
namespace System.Application.Models | ||
{ | ||
partial class GAPAuthenticatorDTO | ||
{ | ||
/// <summary> | ||
/// 轻量化导出模型 | ||
/// </summary> | ||
[MPObj] | ||
public sealed class LightweightExportDTO | ||
{ | ||
[MPKey(0)] | ||
public GamePlatform Platform { get; set; } | ||
|
||
[MPKey(1)] | ||
public string? Issuer { get; set; } | ||
|
||
[MPKey(2)] | ||
public HMACTypes HMACType { get; set; } | ||
|
||
[MPKey(3)] | ||
public string? Serial { get; set; } | ||
|
||
[MPKey(4)] | ||
public string? DeviceId { get; set; } | ||
|
||
[MPKey(5)] | ||
public string? SteamData { get; set; } | ||
|
||
[MPKey(6)] | ||
public long Counter { get; set; } | ||
|
||
[MPKey(7)] | ||
public int Period { get; set; } | ||
|
||
[MPKey(8)] | ||
public byte[]? SecretKey { get; set; } | ||
|
||
[MPKey(9)] | ||
public int CodeDigits { get; set; } | ||
|
||
[MPKey(10)] | ||
public string Name { get; set; } = string.Empty; | ||
|
||
public override string ToString() => this.ToUrl(); | ||
} | ||
} | ||
} |
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