Files
Nebula-Auth/SteamLibForked/Utility/MaFiles/LegacyMafile.cs
T
Давид Чернопятов 1e65cd4a06 1.5.3 progress. Added multi-confirmation and code refactorings
NebulaAuth:
- Added MAAC and PortableMaClient for multi-confirmations
- Code clean-ups, removed unused classes, refactoring of old files
- SteamLib updated
- Localization and UI updates
- Dependcies updated to the last version

LegacyConverter:
 - Added mode to decrypt mafiles
2024-10-16 16:31:53 +03:00

41 lines
1.3 KiB
C#

using Newtonsoft.Json;
using SteamLib.Web.Converters;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
//TODO: Fix pragma warning
namespace SteamLib.Utility.MaFiles;
internal class LegacyMafile //TODO: move
{
[JsonProperty("shared_secret")]
[JsonRequired]
public string SharedSecret { get; set; }
[JsonProperty("identity_secret")]
[JsonRequired]
public string IdentitySecret { get; set; }
[JsonProperty("device_id")]
[JsonRequired]
public string DeviceId { get; set; }
[JsonProperty("revocation_code")]
public string RevocationCode { get; set; }
[JsonProperty("account_name")]
public string AccountName { get; set; }
[JsonProperty("Session")]
public object? SessionData { get; set; }
[JsonProperty("server_time")] public long ServerTime { get; set; } //Unused
[JsonProperty("serial_number")]
[JsonConverter(typeof(StringToLongIfNeededConverter))]
public string SerialNumber { get; set; } //Unused
[JsonProperty("uri")] public string Uri { get; set; } //Unused
[JsonProperty("token_gid")] public string TokenGid { get; set; } //Unused
[JsonProperty("secret_1")] public string Secret1 { get; set; } //Unused
}