diff options
Diffstat (limited to 'warmachine/connections/base.py')
| -rw-r--r-- | warmachine/connections/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/warmachine/connections/base.py b/warmachine/connections/base.py index e68e9b9..4df5996 100644 --- a/warmachine/connections/base.py +++ b/warmachine/connections/base.py | |||
| @@ -26,6 +26,13 @@ class Connection(object): | |||
| 26 | raise NotImplementedError('{} must implement `read` method'.format( | 26 | raise NotImplementedError('{} must implement `read` method'.format( |
| 27 | self.__class__.__name__)) | 27 | self.__class__.__name__)) |
| 28 | 28 | ||
| 29 | def get_users_by_channel(self, channel): | ||
| 30 | """ | ||
| 31 | Return a list of users who are in the provided channel | ||
| 32 | """ | ||
| 33 | raise NotImplementedError('{} must implement `get_users_by_channel` ' | ||
| 34 | 'method'.format(self.__class__.__name__)) | ||
| 35 | |||
| 29 | def id(self): | 36 | def id(self): |
| 30 | """ | 37 | """ |
| 31 | Unique ID for this connection. Since there can be more than one | 38 | Unique ID for this connection. Since there can be more than one |