From 30ae9e929fad80f624ab632c53081db3d2dc9aec Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期四, 25 五月 2023 17:28:57 +0800
Subject: [PATCH] 合并主线

---
 src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java |   68 ++++++++++++++++++++++++++++++++++
 1 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
new file mode 100644
index 0000000..ca90095
--- /dev/null
+++ b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
@@ -0,0 +1,68 @@
+package com.genersoft.iot.vmp.service;
+
+import com.genersoft.iot.vmp.common.InviteInfo;
+import com.genersoft.iot.vmp.common.InviteSessionType;
+import com.genersoft.iot.vmp.service.bean.InviteErrorCallback;
+
+/**
+ * 璁板綍鍥芥爣鐐规挱鐨勭姸鎬侊紝鍖呮嫭瀹炴椂棰勮锛屼笅杞斤紝褰曞儚鍥炴斁
+ */
+public interface IInviteStreamService {
+
+    /**
+     * 鏇存柊鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    void updateInviteInfo(InviteInfo inviteInfo);
+
+    /**
+     * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    InviteInfo getInviteInfo(InviteSessionType type,
+                             String deviceId,
+                             String channelId,
+                             String stream);
+
+    /**
+     * 绉婚櫎鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    void removeInviteInfo(InviteSessionType type,
+                             String deviceId,
+                             String channelId,
+                             String stream);
+    /**
+     * 绉婚櫎鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    void removeInviteInfo(InviteInfo inviteInfo);
+    /**
+     * 绉婚櫎鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId);
+
+    /**
+     * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
+                             String deviceId,
+                             String channelId);
+
+    /**
+     * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+     */
+    InviteInfo getInviteInfoByStream(InviteSessionType type, String stream);
+
+
+    /**
+     * 娣诲姞涓�涓猧nvite鍥炶皟
+     */
+    void once(InviteSessionType type, String deviceId, String channelId, String stream,  InviteErrorCallback<Object> callback);
+
+    /**
+     * 璋冪敤涓�涓猧nvite鍥炶皟
+     */
+    void call(InviteSessionType type, String deviceId, String channelId, String stream,  int code, String msg, Object data);
+
+    /**
+     * 娓呯┖涓�涓澶囩殑鎵�鏈塱nvite淇℃伅
+     */
+    void clearInviteInfo(String deviceId);
+}

--
Gitblit v1.8.0