MCPcopy Create free account
hub / github.com/Rushifakami/csfloat_api / User

Class User

models/me.py:91–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91class User:
92 __slots__ = (
93 "_steam_id",
94 "_username",
95 "_flags",
96 "_avatar",
97 "_background_url",
98 "_email",
99 "_balance",
100 "_pending_balance",
101 "_stall_public",
102 "_away",
103 "_trade_token",
104 "_payment_accounts",
105 "_api_key",
106 "_statistics",
107 "_preferences",
108 "_know_your_customer",
109 "_extension_setup_at",
110 "_firebase_messaging",
111 "_stripe_connect",
112 "_has_valid_steam_api_key",
113 "_obfuscated_id",
114 "_online",
115 "_fee",
116 "_withdraw_fee",
117 "_subscriptions",
118 "_has_2fa"
119 )
120
121 def __init__(self, *, data: Dict[str, Any]):
122 self._steam_id = data.get("steam_id")
123 self._username = data.get("username")
124 self._flags = data.get("flags")
125 self._avatar = data.get("avatar")
126 self._background_url = data.get("background_url")
127 self._email = data.get("email")
128 self._balance = data.get("balance")
129 self._pending_balance = data.get("pending_balance")
130 self._stall_public = data.get("stall_public")
131 self._away = data.get("away")
132 self._trade_token = data.get("trade_token")
133 self._payment_accounts = data.get("payment_accounts")
134 self._api_key = data.get("api_key", "")
135 self._statistics = data.get("statistics")
136 self._preferences = data.get("preferences")
137 self._know_your_customer = data.get("know_your_customer")
138 self._extension_setup_at = data.get("extension_setup_at")
139 self._firebase_messaging = data.get("firebase_messaging")
140 self._stripe_connect = data.get("stripe_connect")
141 self._has_valid_steam_api_key = data.get("has_valid_steam_api_key")
142 self._obfuscated_id = data.get("obfuscated_id")
143 self._online = data.get("online")
144 self._fee = data.get("fee")
145 self._withdraw_fee = data.get("withdraw_fee")
146 self._subscriptions = data.get("subscriptions")
147 self._has_2fa = data.get("has_2fa")
148

Callers 1

userMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected