diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/ChannelAdmin.java b/sdk/src/main/java/cn/wildfirechat/sdk/ChannelAdmin.java deleted file mode 100644 index 151cfbb0..00000000 --- a/sdk/src/main/java/cn/wildfirechat/sdk/ChannelAdmin.java +++ /dev/null @@ -1,27 +0,0 @@ -package cn.wildfirechat.sdk; - -import cn.wildfirechat.common.APIPath; -import cn.wildfirechat.pojos.*; -import cn.wildfirechat.sdk.model.IMResult; -import cn.wildfirechat.sdk.utilities.AdminHttpUtils; - -public class ChannelAdmin { - public static IMResult createChannel(InputCreateChatroom input) throws Exception { - String path = APIPath.Create_Chatroom; - return AdminHttpUtils.httpJsonPost(path, input, OutputCreateChatroom.class); - } - - public static IMResult destroyChannel(String chatroomId) throws Exception { - String path = APIPath.Chatroom_Destroy; - InputDestoryChatroom input = new InputDestoryChatroom(); - input.setChatroomId(chatroomId); - return AdminHttpUtils.httpJsonPost(path, input, Void.class); - } - - public static IMResult getChannelInfo(String chatroomId) throws Exception { - String path = APIPath.Chatroom_Info; - InputGetChatroomInfo input = new InputGetChatroomInfo(chatroomId); - return AdminHttpUtils.httpJsonPost(path, input, OutputGetChatroomInfo.class); - } - -}