From e785d7738251f621737e4ad12b6c5489500285e4 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 26 Dec 2015 20:12:00 +0000 Subject: [PATCH] updated common enums --- steam/enums/common.py | 232 +++++++++++++++++++++++++++++++----------- 1 file changed, 173 insertions(+), 59 deletions(-) diff --git a/steam/enums/common.py b/steam/enums/common.py index d1ac059..0f126eb 100644 --- a/steam/enums/common.py +++ b/steam/enums/common.py @@ -3,61 +3,106 @@ from steam.enums.base import SteamIntEnum class EResult(SteamIntEnum): Invalid = 0 - OK = 1 # success - Fail = 2 # generic failure - NoConnection = 3 # no/failed network connection - sultNoConnectionRetry = 4 # OBSOLETE - removed - InvalidPassword = 5 # password/ticket is invalid - LoggedInElsewhere = 6 # same user logged in elsewhere - InvalidProtocolVer = 7 # protocol version is incorrect - InvalidParam = 8 # a parameter is incorrect - FileNotFound = 9 # file was not found - Busy = 10 # called method busy - action not taken - InvalidState = 11 # called object was in an invalid state - InvalidName = 12 # name is invalid - InvalidEmail = 13 # email is invalid - DuplicateName = 14 # name is not unique - AccessDenied = 15 # access is denied - Timeout = 16 # operation timed out - Banned = 17 # VAC2 banned - AccountNotFound = 18 # account not found - InvalidSteamID = 19 # steamID is invalid - ServiceUnavailable = 20 # The requested service is currently unavailable - NotLoggedOn = 21 # The user is not logged on - Pending = 22 # Request is pending (may be in process, or waiting on third party) - EncryptionFailure = 23 # Encryption or Decryption failed - InsufficientPrivilege = 24 # Insufficient privilege - LimitExceeded = 25 # Too much of a good thing - Revoked = 26 # Access has been revoked (used for revoked guest passes) - Expired = 27 # License/Guest pass the user is trying to access is expired - AlreadyRedeemed = 28 # Guest pass has already been redeemed by account, cannot be acked again - DuplicateRequest = 29 # The request is a duplicate and the action has already occurred in the past, ignored this time - AlreadyOwned = 30 # All the games in this guest pass redemption request are already owned by the user - IPNotFound = 31 # IP address not found - PersistFailed = 32 # failed to write change to the data store - LockingFailed = 33 # failed to acquire access lock for this operation - LogonSessionReplaced = 34, - ConnectFailed = 35, - HandshakeFailed = 36, - IOFailure = 37, - RemoteDisconnect = 38, - ShoppingCartNotFound = 39 # failed to find the shopping cart requested - Blocked = 40 # a user didn't allow it - Ignored = 41 # target is ignoring sender - NoMatch = 42 # nothing matching the request found - AccountDisabled = 43, - ServiceReadOnly = 44 # this service is not accepting content changes right now - AccountNotFeatured = 45 # account doesn't have value, so this feature isn't available - AdministratorOK = 46 # allowed to take this action, but only because requester is admin - ContentVersion = 47 # A Version mismatch in content transmitted within the Steam protocol. - TryAnotherCM = 48 # The current CM can't service the user making a request, user should try another. - PasswordRequiredToKickSession = 49 # You are already logged in elsewhere, this cached credential login has failed. - AlreadyLoggedInElsewhere = 50 # You are already logged in elsewhere, you must wait - Suspended = 51, - Cancelled = 52, - DataCorruption = 53, - DiskFull = 54, - RemoteCallFailed = 55, + OK = 1 + Fail = 2 + NoConnection = 3 + InvalidPassword = 5 + LoggedInElsewhere = 6 + InvalidProtocolVer = 7 + InvalidParam = 8 + FileNotFound = 9 + Busy = 10 + InvalidState = 11 + InvalidName = 12 + InvalidEmail = 13 + DuplicateName = 14 + AccessDenied = 15 + Timeout = 16 + Banned = 17 + AccountNotFound = 18 + InvalidSteamID = 19 + ServiceUnavailable = 20 + NotLoggedOn = 21 + Pending = 22 + EncryptionFailure = 23 + InsufficientPrivilege = 24 + LimitExceeded = 25 + Revoked = 26 + Expired = 27 + AlreadyRedeemed = 28 + DuplicateRequest = 29 + AlreadyOwned = 30 + IPNotFound = 31 + PersistFailed = 32 + LockingFailed = 33 + LogonSessionReplaced = 34 + ConnectFailed = 35 + HandshakeFailed = 36 + IOFailure = 37 + RemoteDisconnect = 38 + ShoppingCartNotFound = 39 + Blocked = 40 + Ignored = 41 + NoMatch = 42 + AccountDisabled = 43 + ServiceReadOnly = 44 + AccountNotFeatured = 45 + AdministratorOK = 46 + ContentVersion = 47 + TryAnotherCM = 48 + PasswordRequiredToKickSession = 49 + AlreadyLoggedInElsewhere = 50 + Suspended = 51 + Cancelled = 52 + DataCorruption = 53 + DiskFull = 54 + RemoteCallFailed = 55 + PasswordUnset = 56 + ExternalAccountUnlinked = 57 + PSNTicketInvalid = 58 + ExternalAccountAlreadyLinked = 59 + RemoteFileConflict = 60 + IllegalPassword = 61 + SameAsPreviousValue = 62 + AccountLogonDenied = 63 + CannotUseOldPassword = 64 + InvalidLoginAuthCode = 65 + AccountLogonDeniedNoMail = 66 + HardwareNotCapableOfIPT = 67 + IPTInitError = 68 + ParentalControlRestricted = 69 + FacebookQueryError = 70 + ExpiredLoginAuthCode = 71 + IPLoginRestrictionFailed = 72 + AccountLockedDown = 73 + AccountLogonDeniedVerifiedEmailRequired = 74 + NoMatchingURL = 75 + BadResponse = 76 + RequirePasswordReEntry = 77 + ValueOutOfRange = 78 + UnexpectedError = 79 + Disabled = 80 + InvalidCEGSubmission = 81 + RestrictedDevice = 82 + RegionLocked = 83 + RateLimitExceeded = 84 + AccountLoginDeniedNeedTwoFactor = 85 + ItemDeleted = 86 + AccountLoginDeniedThrottle = 87 + TwoFactorCodeMismatch = 88 + TwoFactorActivationCodeMismatch = 89 + AccountAssociatedToMultiplePartners = 90 + NotModified = 91 + NoMobileDevice = 92 + TimeNotSynced = 93 + SMSCodeFailed = 94 + AccountLimitExceeded = 95 + AccountActivityLimitExceeded = 96 + PhoneActivityLimitExceeded = 97 + RefundToWallet = 98 + EmailSendFailure = 99 + NotSettled = 100 + NeedCaptcha = 101 class EUniverse(SteamIntEnum): @@ -86,7 +131,7 @@ class EType(SteamIntEnum): class EServerType(SteamIntEnum): Invalid = -1 - Shell = 0 + First = 0 GM = 1 BUM = 2 AM = 3 @@ -95,12 +140,12 @@ class EServerType(SteamIntEnum): ATS = 6 CM = 7 FBS = 8 - FG = 9 + BoxMonitor = 9 SS = 10 DRMS = 11 HubOBSOLETE = 12 Console = 13 - ASBOBSOLETE = 14 + PICS = 14 Client = 15 BootstrapOBSOLETE = 16 DP = 17 @@ -109,6 +154,7 @@ class EServerType(SteamIntEnum): UFS = 21 Util = 23 DSS = 24 + Community = 24 P2PRelayOBSOLETE = 25 AppInformation = 26 Spare = 27 @@ -134,4 +180,72 @@ class EServerType(SteamIntEnum): FS = 47 Econ = 48 Backpack = 49 - Max = 50 + UGS = 50 + Store = 51 + MoneyStats = 52 + CRE = 53 + UMQ = 54 + Workshop = 55 + BRP = 56 + GCH = 57 + MPAS = 58 + Trade = 59 + Secrets = 60 + Logsink = 61 + Market = 62 + Quest = 63 + WDS = 64 + ACS = 65 + PNP = 66 + Max = 67 + + +class EOSType(SteamIntEnum): + Unknown = -1 + UMQ = -400 + + PS3 = -300 + + MacOSUnknown = -102 + MacOS104 = -101 + MacOS105 = -100 + MacOS1058 = -99 + MacOS106 = -95 + MacOS1063 = -94 + MacOS1064_slgu = -93 + MacOS1067 = -92 + MacOS107 = -90 + MacOS108 = -89 + MacOS109 = -88 + MacOS1010 = -87 + + LinuxUnknown = -203 + Linux22 = -202 + Linux24 = -201 + Linux26 = -200 + Linux32 = -199 + Linux35 = -198 + Linux36 = -197 + Linux310 = -196 + + WinUnknown = 0 + Win311 = 1 + Win95 = 2 + Win98 = 3 + WinME = 4 + WinNT = 5 + Win200 = 6 + WinXP = 7 + Win2003 = 8 + WinVista = 9 + Win7 = 10 + Win2008 = 11 + Win2012 = 12 + Win8 = 13 + Win81 = 14 + Win2012R2 = 15 + Win10 = 16 + + WinMAX = 15 + + Max = 26