Ejemplo n.º 1
0
 def __init__(self, user_profile: UserProfile) -> None:
     # Only expose a subset of our UserProfile's functionality
     self.user_profile = user_profile
     self._rate_limit = RateLimit(20, 5)
     self.full_name = user_profile.full_name
     self.email = user_profile.email
     self.storage = StateHandler(user_profile)
Ejemplo n.º 2
0
 def __init__(self, user_profile):
     # type: (UserProfile) -> None
     # Only expose a subset of our UserProfile's functionality
     self.user_profile = user_profile
     self._rate_limit = RateLimit(20, 5)
     self.full_name = user_profile.full_name
     self.email = user_profile.email