This commit is contained in:
JustArchi
2018-02-11 09:57:10 +01:00
parent c9b3b66959
commit d19a25df5f
2 changed files with 3 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ namespace ArchiSteamFarm {
[JsonProperty(PropertyName = GlobalConfig.UlongStringPrefix + nameof(SteamMasterClanID), Required = Required.DisallowNull)] [JsonProperty(PropertyName = GlobalConfig.UlongStringPrefix + nameof(SteamMasterClanID), Required = Required.DisallowNull)]
internal string SSteamMasterClanID { internal string SSteamMasterClanID {
get => SteamMasterClanID.ToString(); get => SteamMasterClanID.ToString();
set { private set {
if (string.IsNullOrEmpty(value) || !ulong.TryParse(value, out ulong result)) { if (string.IsNullOrEmpty(value) || !ulong.TryParse(value, out ulong result)) {
ASF.ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, nameof(SSteamMasterClanID))); ASF.ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, nameof(SSteamMasterClanID)));
return; return;

View File

@@ -105,7 +105,8 @@ namespace ArchiSteamFarm {
[JsonProperty(PropertyName = UlongStringPrefix + nameof(SteamOwnerID), Required = Required.DisallowNull)] [JsonProperty(PropertyName = UlongStringPrefix + nameof(SteamOwnerID), Required = Required.DisallowNull)]
internal string SSteamOwnerID { internal string SSteamOwnerID {
set { get => SteamOwnerID.ToString();
private set {
if (string.IsNullOrEmpty(value) || !ulong.TryParse(value, out ulong result)) { if (string.IsNullOrEmpty(value) || !ulong.TryParse(value, out ulong result)) {
ASF.ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, nameof(SSteamOwnerID))); ASF.ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, nameof(SSteamOwnerID)));
return; return;