Revert "Remove obsolete properties"

This reverts commit 5423596f1f.

I want to include this one for a while longer considering faster stable.
This commit is contained in:
JustArchi
2018-11-08 05:03:44 +01:00
parent 5072c1af41
commit 89973519bd

View File

@@ -224,6 +224,16 @@ namespace ArchiSteamFarm {
}
}
[JsonProperty]
private string SteamParentalPIN {
set {
if (string.IsNullOrEmpty(value) || (value != "0")) {
ASF.ArchiLogger.LogGenericWarning(string.Format(Strings.WarningDeprecated, nameof(SteamParentalPIN), nameof(SteamParentalCode)));
SteamParentalCode = string.IsNullOrEmpty(value) ? "0" : value;
}
}
}
internal (bool Valid, string ErrorMessage) CheckValidation() {
if (BotBehaviour > EBotBehaviour.All) {
return (false, string.Format(Strings.ErrorConfigPropertyInvalid, nameof(BotBehaviour), BotBehaviour));