瀏覽代碼

Add conferenence option to middleware

JoostSijm 4 年之前
父節點
當前提交
0c5e71b0ad
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      src/rival_regions_wrapper/middleware.py

+ 14 - 0
src/rival_regions_wrapper/middleware.py

@@ -18,6 +18,13 @@ class MiddlewareBase(ABC):
     def post(self, path, data=None):
         """Send post request"""
 
+    @abstractmethod
+    def send_conference_message(self, conference_id, message):
+        """Send conference message"""
+
+    @abstractmethod
+    def send_conference_notification(self, conference_id, message, sound):
+        """Send conference notification"""
 
 class LocalAuthentication(MiddlewareBase):
     """Local authentication"""
@@ -39,6 +46,13 @@ class LocalAuthentication(MiddlewareBase):
         """Send post request"""
         return self.client.post(path, data=data)
 
+    def send_conference_message(self, conference_id, message):
+        """Send conference message"""
+        return self.client.send_conference_message(conference_id, message)
+
+    def send_conference_notification(self, conference_id, message, sound):
+        """Send conference notification"""
+        return self.client.send_conference_notification(conference_id, message, sound):
 
 class RemoteAuthentication(MiddlewareBase):
     """Remote authentication"""