mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Add family join confirmation type (#3166)
This commit is contained in:
@@ -35,6 +35,11 @@ public sealed class Confirmation {
|
||||
[JsonRequired]
|
||||
public EConfirmationType ConfirmationType { get; private init; }
|
||||
|
||||
[JsonInclude]
|
||||
[JsonPropertyName("type_text")]
|
||||
[JsonRequired]
|
||||
public string ConfirmationTypeText { get; private init; } = null!;
|
||||
|
||||
[JsonInclude]
|
||||
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
||||
[JsonPropertyName("creator_id")]
|
||||
@@ -67,6 +72,7 @@ public sealed class Confirmation {
|
||||
Market,
|
||||
PhoneNumberChange = 5,
|
||||
AccountRecovery = 6,
|
||||
ApiKeyRegistration = 9
|
||||
ApiKeyRegistration = 9,
|
||||
FamilyJoin = 11
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ public sealed class MobileAuthenticator : IDisposable {
|
||||
}
|
||||
|
||||
foreach (Confirmation? confirmation in response.Confirmations.Where(static confirmation => (confirmation.ConfirmationType == Confirmation.EConfirmationType.Unknown) || !Enum.IsDefined(confirmation.ConfirmationType))) {
|
||||
Bot.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningUnknownValuePleaseReport, nameof(confirmation.ConfirmationType), confirmation.ConfirmationType));
|
||||
Bot.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningUnknownValuePleaseReport, nameof(confirmation.ConfirmationType), $"{confirmation.ConfirmationType} ({confirmation.ConfirmationTypeText})"));
|
||||
}
|
||||
|
||||
return response.Confirmations;
|
||||
|
||||
Reference in New Issue
Block a user