Files
zulip/zerver/data_import/hipchat_subscriber.py
Anders Kaseorg 56a675d5ec export: Remove unused imports.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-02 17:25:27 -08:00

16 lines
431 B
Python

from typing import Dict, Set
class SubscriberHandler:
def __init__(self) -> None:
self.stream_info = dict() # type: Dict[int, Set[int]]
def set_info(self,
stream_id: int,
users: Set[int]) -> None:
self.stream_info[stream_id] = users
def get_users(self,
stream_id: int) -> Set[int]:
users = self.stream_info[stream_id]
return users