diff --git a/docs/api/steam.client.builtins.rst b/docs/api/steam.client.builtins.rst index f7d7d61..7f52493 100644 --- a/docs/api/steam.client.builtins.rst +++ b/docs/api/steam.client.builtins.rst @@ -11,14 +11,6 @@ Apps :undoc-members: :show-inheritance: -Account -------- - -.. automodule:: steam.client.builtins.account - :members: - :undoc-members: - :show-inheritance: - User ---- diff --git a/steam/client/builtins/__init__.py b/steam/client/builtins/__init__.py index 22d682b..593ad0c 100644 --- a/steam/client/builtins/__init__.py +++ b/steam/client/builtins/__init__.py @@ -1,7 +1,6 @@ """ All high level features of :class:`steam.client.SteamClient` are implemented here in separate submodules. """ -from steam.client.builtins.account import Account from steam.client.builtins.user import User from steam.client.builtins.web import Web from steam.client.builtins.unified_messages import UnifiedMessages @@ -10,7 +9,7 @@ from steam.client.builtins.gameservers import GameServers from steam.client.builtins.friends import Friends from steam.client.builtins.apps import Apps -class BuiltinBase(GameServers, UnifiedMessages, Account, User, Web, Leaderboards, Friends, Apps): +class BuiltinBase(GameServers, UnifiedMessages, User, Web, Leaderboards, Friends, Apps): """ This object is used as base to implement all high level functionality. The features are separated into submodules. diff --git a/steam/client/builtins/account.py b/steam/client/builtins/account.py deleted file mode 100644 index 7793896..0000000 --- a/steam/client/builtins/account.py +++ /dev/null @@ -1,70 +0,0 @@ -from steam.steamid import SteamID -from steam.enums import EResult -from steam.enums.emsg import EMsg -from steam.core.msg import Msg, MsgProto - - -class Account(object): - def __init__(self, *args, **kwargs): - super(Account, self).__init__(*args, **kwargs) - - def request_validation_mail(self): - """Request validation email - - :return: result - :rtype: :class:`.EResult` - """ - message = Msg(EMsg.ClientRequestValidationMail, extended=True) - - resp = self.send_job_and_wait(message, timeout=10) - - if resp is None: - return EResult.Timeout - else: - return EResult(resp.eresult) - - def request_password_change_mail(self, password): - """Request password change mail - - :param password: current account password - :type password: :class:`str` - :return: result - :rtype: :class:`.EResult` - """ - message = Msg(EMsg.ClientRequestChangeMail, extended=True) - message.body.password = password - - resp = self.send_job_and_wait(message, timeout=10) - - if resp is None: - return EResult.Timeout - else: - return EResult(resp.eresult) - - def change_password(self, password, new_password, email_code): - """Change account's password - - :param password: current account password - :type password: :class:`str` - :param new_password: new account password - :type new_password: :class:`str` - :param email_code: confirmation code from email - :type email_code: :class:`str` - :return: result - :rtype: :class:`.EResult` - - .. note:: - First request change mail via :meth:`request_password_change_mail()` - to get the email code - """ - message = Msg(EMsg.ClientPasswordChange3, extended=True) - message.body.password = password - message.body.new_password = new_password - message.body.code = email_code - - resp = self.send_job_and_wait(message, timeout=10) - - if resp is None: - return EResult.Timeout - else: - return EResult(resp.eresult)