(self, instance_id=None)
| 30 | } |
| 31 | |
| 32 | def __init__(self, instance_id=None): |
| 33 | super().__init__(instance_id) |
| 34 | self.alice = PrivateChat(channel=self, name="Alice", uid="alice") |
| 35 | self.bob = PrivateChat(channel=self, name="Bob", alias="Little bobby", uid="bob") |
| 36 | |
| 37 | self.wonderland = GroupChat(channel=self, name="Wonderland", uid="wonderland001") |
| 38 | self.wonderland.add_member(name="bob", alias="Bob James", uid="bob") |
| 39 | self.carol = self.wonderland.add_member(name="Carol", uid="carol") |
| 40 | self.dave = self.wonderland.add_member(name="デブ", uid="dave") # Nah, that's a joke |
| 41 | |
| 42 | self.chats: List[Chat] = [self.alice, self.bob, self.wonderland] |
| 43 | |
| 44 | def poll(self): |
| 45 | self.polling.wait() |
nothing calls this directly
no test coverage detected