Skip to content

Commit

Permalink
added new method to user list
Browse files Browse the repository at this point in the history
  • Loading branch information
crash7 committed Dec 26, 2014
1 parent 67ff50f commit ab27c83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hangups/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def get_user(self, user_id):
.format(user_id))
return User(user_id, DEFAULT_NAME, None, None, [], False)

def get_all(self):
"""Returns all the users known"""
return self._user_dict.values()

def add_user_from_conv_part(self, conv_part):
"""Add new User from ClientConversationParticipantData"""
user_ = User.from_conv_part_data(conv_part, self._self_user.id_)
Expand Down

0 comments on commit ab27c83

Please sign in to comment.