def __init__(self):
     sleep(0)
     self.username = None
     self.password = None
     self.client = SteamClient(SteamClientHandler(self))
     self.gc = SteamGC(self.client, 730)
     self.csgo = CSGO(self.gc)
class User(object):
    def __init__(self):
        sleep(0)
        self.username = None
        self.password = None
        self.client = SteamClient(SteamClientHandler(self))
        self.gc = SteamGC(self.client, 730)
        self.csgo = CSGO(self.gc)

    def login(self, username=None, password=None, authcode=None, two_factor_code=None):
        if username:
            self.username = username
        if password:
            self.password = password
        if authcode:
            self.client.callback.auth_code = authcode
        if two_factor_code:
            self.client.callback.two_factor_code = two_factor_code
        return self.client.initialize()

    def setState(self, state):
        message = msg_base.ProtobufMessage(steammessages_clientserver_pb2.CMsgClientChangeStatus, EMsg.ClientChangeStatus)
        message.body.persona_state = state
        self.client.connection.send_message(message)

    def disconnect(self):
        self.csgo.exit()
        self.client.disconnect()
class User(object):
    def __init__(self):
        sleep(0)
        self.username = None
        self.password = None
        self.client = SteamClient(SteamClientHandler(self))
        self.gc = SteamGC(self.client, 730)
        self.csgo = CSGO(self.gc)

    def login(self,
              username=None,
              password=None,
              authcode=None,
              two_factor_code=None):
        if username:
            self.username = username
        if password:
            self.password = password
        if authcode:
            self.client.callback.auth_code = authcode
        if two_factor_code:
            self.client.callback.two_factor_code = two_factor_code
        return self.client.initialize()

    def setState(self, state):
        message = msg_base.ProtobufMessage(
            steammessages_clientserver_pb2.CMsgClientChangeStatus,
            EMsg.ClientChangeStatus)
        message.body.persona_state = state
        self.client.connection.send_message(message)

    def disconnect(self):
        self.csgo.exit()
        self.client.disconnect()
 def __init__(self):
     sleep(0)
     self.username = None
     self.password = None
     self.client = SteamClient(SteamClientHandler(self))
     self.gc = SteamGC(self.client, 730)
     self.csgo = CSGO(self.gc)