EMarketNotAllowedReasonFlags.fromValue constructor
EMarketNotAllowedReasonFlags.fromValue(
- int value
Implementation
factory EMarketNotAllowedReasonFlags.fromValue(int value) {
switch (value) {
case 0:
return EMarketNotAllowedReasonFlags.none;
case 1:
return EMarketNotAllowedReasonFlags.temporaryFailure;
case 2:
return EMarketNotAllowedReasonFlags.accountDisabled;
case 4:
return EMarketNotAllowedReasonFlags.accountLockedDown;
case 8:
return EMarketNotAllowedReasonFlags.accountLimited;
case 16:
return EMarketNotAllowedReasonFlags.tradeBanned;
case 32:
return EMarketNotAllowedReasonFlags.accountNotTrusted;
case 64:
return EMarketNotAllowedReasonFlags.steamGuardNotEnabled;
case 128:
return EMarketNotAllowedReasonFlags.steamGuardOnlyRecentlyEnabled;
case 256:
return EMarketNotAllowedReasonFlags.recentPasswordReset;
case 512:
return EMarketNotAllowedReasonFlags.newPaymentMethod;
case 1024:
return EMarketNotAllowedReasonFlags.invalidCookie;
case 2048:
return EMarketNotAllowedReasonFlags.usingNewDevice;
case 4096:
return EMarketNotAllowedReasonFlags.recentSelfRefund;
case 8192:
return EMarketNotAllowedReasonFlags.newPaymentMethodCannotBeVerified;
case 16384:
return EMarketNotAllowedReasonFlags.noRecentPurchases;
case 32768:
return EMarketNotAllowedReasonFlags.acceptedWalletGift;
default:
throw UnknownEnumValueException(
"Unknown value for 'EMarketNotAllowedReasonFlags'. The value was: '$value'",
);
}
}