parent
f3261d2ce4
commit
b71cd22dce
File diff suppressed because it is too large
Load Diff
@ -1,15 +0,0 @@ |
||||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// open_im_sdk/open_im_sdk
|
||||
// open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __OpenIMCore_FRAMEWORK_H__ |
||||
#define __OpenIMCore_FRAMEWORK_H__ |
||||
|
||||
#include "Open_im_sdk.objc.h" |
||||
#include "Open_im_sdk_callback.objc.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#endif |
@ -1,206 +0,0 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_H__ |
||||
#define __Open_im_sdk_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#include "Open_im_sdk_callback.objc.h" |
||||
|
||||
@interface Open_im_sdk : NSObject |
||||
// skipped variable UserRouterMap with unsupported type: map[string]*open_im_sdk/internal/login.LoginMgr
|
||||
|
||||
// skipped variable UserSDKRwLock with unsupported type: sync.RWMutex
|
||||
|
||||
@end |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable blackUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDReqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCheckFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkCheckToken(NSString* _Nullable userID, NSString* _Nullable token, NSError* _Nullable* _Nullable error); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearC2CHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearGroupHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCardMessage(NSString* _Nullable operationID, NSString* _Nullable cardInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCustomMessage(NSString* _Nullable operationID, NSString* _Nullable data, NSString* _Nullable extension, NSString* _Nullable description); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessage(NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageByURL(NSString* _Nullable operationID, NSString* _Nullable fileBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable fileFullPath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateForwardMessage(NSString* _Nullable operationID, NSString* _Nullable m); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCreateGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupBaseInfo, NSString* _Nullable memberList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessage(NSString* _Nullable operationID, NSString* _Nullable imagePath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageByURL(NSString* _Nullable operationID, NSString* _Nullable sourcePicture, NSString* _Nullable bigPicture, NSString* _Nullable snapshotPicture); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable imageFullPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateLocationMessage(NSString* _Nullable operationID, NSString* _Nullable description, double longitude, double latitude); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateMergerMessage(NSString* _Nullable operationID, NSString* _Nullable messageList, NSString* _Nullable title, NSString* _Nullable summaryList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateQuoteMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessage(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageByURL(NSString* _Nullable operationID, NSString* _Nullable soundBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextAtMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable atUserList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextMessage(NSString* _Nullable operationID, NSString* _Nullable text); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessage(NSString* _Nullable operationID, NSString* _Nullable videoPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageByURL(NSString* _Nullable operationID, NSString* _Nullable videoBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable videoFullPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotFullPath); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable friendUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteMessageFromLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetAllConversationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetBlackList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetConversationIDBySessionType(NSString* _Nullable sourceID, long sessionType); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationListSplit(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long offset, long count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetDesignatedFriendsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetFriendList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMemberList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, int32_t filter, int32_t offset, int32_t count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMembersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetHistoryMessageList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable getMessageOptions); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetJoinedGroupList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT int32_t Open_im_sdkGetLoginStatus(void); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetLoginUser(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetMultipleConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetOneConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long sessionType, NSString* _Nullable sourceID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSelfUserInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetTotalUnreadMsgCount(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
// skipped function GetUserWorker with unsupported parameter or return types
|
||||
|
||||
|
||||
/**
|
||||
* /////////////////////user/////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkGetUsersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
// skipped function InitOnce with unsupported parameter or return types
|
||||
|
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkInitSDK(id<Open_im_sdk_callbackOnConnListener> _Nullable listener, NSString* _Nullable operationID, NSString* _Nullable config); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInsertSingleMessageToLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable sendID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInviteUserToGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkJoinGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkKickGroupMember(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogin(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable token); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogout(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkC2CMessageAsRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable msgIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkGroupMessageHasRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkPinConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, BOOL isPinned); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkQuitGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRemoveBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable removeUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRevokeMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkSdkVersion(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessage(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessageNotOss(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetAdvancedMsgListener(id<Open_im_sdk_callbackOnAdvancedMsgListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationDraft(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, NSString* _Nullable draftText); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationListener(id<Open_im_sdk_callbackOnConversationListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList, long opt); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendListener(id<Open_im_sdk_callbackOnFriendshipListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendRemark(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDRemark); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable groupInfo); |
||||
|
||||
/**
|
||||
* ////////////////////////group//////////////////////////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupListener(id<Open_im_sdk_callbackOnGroupListener> _Nullable callback); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetSelfInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetUserListener(id<Open_im_sdk_callbackOnUserListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTransferGroupOwner(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable newOwnerUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTypingStatusUpdate(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable recvID, NSString* _Nullable msgTip); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkUploadImage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable token, NSString* _Nullable obj); |
||||
|
||||
#endif |
@ -1,29 +0,0 @@ |
||||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__ |
||||
#define __Universe_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
|
||||
@protocol Universeerror; |
||||
@class Universeerror; |
||||
|
||||
@protocol Universeerror <NSObject> |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
@class Universeerror; |
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
#endif |
@ -1,35 +0,0 @@ |
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__ |
||||
#define __GO_REF_HDR__ |
||||
|
||||
#include <Foundation/Foundation.h> |
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject { |
||||
} |
||||
@property(readonly) int32_t refnum; |
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; |
||||
|
||||
- (int32_t)incNum; |
||||
|
||||
@end |
||||
|
||||
@protocol goSeqRefInterface |
||||
-(GoSeqRef*) _ref; |
||||
@end |
||||
|
||||
#endif |
@ -1,9 +0,0 @@ |
||||
framework module "OpenIMCore" { |
||||
header "ref.h" |
||||
header "Open_im_sdk.objc.h" |
||||
header "Open_im_sdk_callback.objc.h" |
||||
header "Universe.objc.h" |
||||
header "OpenIMCore.h" |
||||
|
||||
export * |
||||
} |
Binary file not shown.
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
</dict> |
||||
</plist> |
@ -0,0 +1 @@ |
||||
Versions/Current/Headers |
@ -1,15 +0,0 @@ |
||||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// open_im_sdk/open_im_sdk
|
||||
// open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __OpenIMCore_FRAMEWORK_H__ |
||||
#define __OpenIMCore_FRAMEWORK_H__ |
||||
|
||||
#include "Open_im_sdk.objc.h" |
||||
#include "Open_im_sdk_callback.objc.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#endif |
@ -1,206 +0,0 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_H__ |
||||
#define __Open_im_sdk_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#include "Open_im_sdk_callback.objc.h" |
||||
|
||||
@interface Open_im_sdk : NSObject |
||||
// skipped variable UserRouterMap with unsupported type: map[string]*open_im_sdk/internal/login.LoginMgr
|
||||
|
||||
// skipped variable UserSDKRwLock with unsupported type: sync.RWMutex
|
||||
|
||||
@end |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable blackUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDReqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCheckFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkCheckToken(NSString* _Nullable userID, NSString* _Nullable token, NSError* _Nullable* _Nullable error); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearC2CHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearGroupHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCardMessage(NSString* _Nullable operationID, NSString* _Nullable cardInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCustomMessage(NSString* _Nullable operationID, NSString* _Nullable data, NSString* _Nullable extension, NSString* _Nullable description); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessage(NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageByURL(NSString* _Nullable operationID, NSString* _Nullable fileBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable fileFullPath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateForwardMessage(NSString* _Nullable operationID, NSString* _Nullable m); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCreateGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupBaseInfo, NSString* _Nullable memberList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessage(NSString* _Nullable operationID, NSString* _Nullable imagePath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageByURL(NSString* _Nullable operationID, NSString* _Nullable sourcePicture, NSString* _Nullable bigPicture, NSString* _Nullable snapshotPicture); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable imageFullPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateLocationMessage(NSString* _Nullable operationID, NSString* _Nullable description, double longitude, double latitude); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateMergerMessage(NSString* _Nullable operationID, NSString* _Nullable messageList, NSString* _Nullable title, NSString* _Nullable summaryList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateQuoteMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessage(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageByURL(NSString* _Nullable operationID, NSString* _Nullable soundBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextAtMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable atUserList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextMessage(NSString* _Nullable operationID, NSString* _Nullable text); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessage(NSString* _Nullable operationID, NSString* _Nullable videoPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageByURL(NSString* _Nullable operationID, NSString* _Nullable videoBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable videoFullPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotFullPath); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable friendUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteMessageFromLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetAllConversationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetBlackList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetConversationIDBySessionType(NSString* _Nullable sourceID, long sessionType); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationListSplit(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long offset, long count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetDesignatedFriendsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetFriendList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMemberList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, int32_t filter, int32_t offset, int32_t count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMembersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetHistoryMessageList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable getMessageOptions); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetJoinedGroupList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT int32_t Open_im_sdkGetLoginStatus(void); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetLoginUser(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetMultipleConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetOneConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long sessionType, NSString* _Nullable sourceID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSelfUserInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetTotalUnreadMsgCount(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
// skipped function GetUserWorker with unsupported parameter or return types
|
||||
|
||||
|
||||
/**
|
||||
* /////////////////////user/////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkGetUsersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
// skipped function InitOnce with unsupported parameter or return types
|
||||
|
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkInitSDK(id<Open_im_sdk_callbackOnConnListener> _Nullable listener, NSString* _Nullable operationID, NSString* _Nullable config); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInsertSingleMessageToLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable sendID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInviteUserToGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkJoinGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkKickGroupMember(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogin(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable token); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogout(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkC2CMessageAsRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable msgIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkGroupMessageHasRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkPinConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, BOOL isPinned); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkQuitGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRemoveBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable removeUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRevokeMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkSdkVersion(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessage(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessageNotOss(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetAdvancedMsgListener(id<Open_im_sdk_callbackOnAdvancedMsgListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationDraft(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, NSString* _Nullable draftText); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationListener(id<Open_im_sdk_callbackOnConversationListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList, long opt); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendListener(id<Open_im_sdk_callbackOnFriendshipListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendRemark(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDRemark); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable groupInfo); |
||||
|
||||
/**
|
||||
* ////////////////////////group//////////////////////////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupListener(id<Open_im_sdk_callbackOnGroupListener> _Nullable callback); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetSelfInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetUserListener(id<Open_im_sdk_callbackOnUserListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTransferGroupOwner(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable newOwnerUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTypingStatusUpdate(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable recvID, NSString* _Nullable msgTip); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkUploadImage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable token, NSString* _Nullable obj); |
||||
|
||||
#endif |
@ -1,29 +0,0 @@ |
||||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__ |
||||
#define __Universe_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
|
||||
@protocol Universeerror; |
||||
@class Universeerror; |
||||
|
||||
@protocol Universeerror <NSObject> |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
@class Universeerror; |
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
#endif |
@ -1,35 +0,0 @@ |
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__ |
||||
#define __GO_REF_HDR__ |
||||
|
||||
#include <Foundation/Foundation.h> |
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject { |
||||
} |
||||
@property(readonly) int32_t refnum; |
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; |
||||
|
||||
- (int32_t)incNum; |
||||
|
||||
@end |
||||
|
||||
@protocol goSeqRefInterface |
||||
-(GoSeqRef*) _ref; |
||||
@end |
||||
|
||||
#endif |
@ -0,0 +1 @@ |
||||
Versions/Current/Modules |
@ -1,9 +0,0 @@ |
||||
framework module "OpenIMCore" { |
||||
header "ref.h" |
||||
header "Open_im_sdk.objc.h" |
||||
header "Open_im_sdk_callback.objc.h" |
||||
header "Universe.objc.h" |
||||
header "OpenIMCore.h" |
||||
|
||||
export * |
||||
} |
Binary file not shown.
@ -0,0 +1 @@ |
||||
Versions/Current/OpenIMCore |
@ -0,0 +1 @@ |
||||
Versions/Current/Resources |
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
</dict> |
||||
</plist> |
@ -0,0 +1,205 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk_callback Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_callback_H__ |
||||
#define __Open_im_sdk_callback_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
|
||||
@protocol Open_im_sdk_callbackBase; |
||||
@class Open_im_sdk_callbackBase; |
||||
@protocol Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
@class Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
@protocol Open_im_sdk_callbackOnConnListener; |
||||
@class Open_im_sdk_callbackOnConnListener; |
||||
@protocol Open_im_sdk_callbackOnConversationListener; |
||||
@class Open_im_sdk_callbackOnConversationListener; |
||||
@protocol Open_im_sdk_callbackOnFriendshipListener; |
||||
@class Open_im_sdk_callbackOnFriendshipListener; |
||||
@protocol Open_im_sdk_callbackOnGroupListener; |
||||
@class Open_im_sdk_callbackOnGroupListener; |
||||
@protocol Open_im_sdk_callbackOnUserListener; |
||||
@class Open_im_sdk_callbackOnUserListener; |
||||
@protocol Open_im_sdk_callbackSendMsgCallBack; |
||||
@class Open_im_sdk_callbackSendMsgCallBack; |
||||
|
||||
@protocol Open_im_sdk_callbackBase <NSObject> |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnAdvancedMsgListener <NSObject> |
||||
- (void)onRecvC2CReadReceipt:(NSString* _Nullable)msgReceiptList; |
||||
- (void)onRecvMessageRevoked:(NSString* _Nullable)msgId; |
||||
- (void)onRecvNewMessage:(NSString* _Nullable)message; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnConnListener <NSObject> |
||||
- (void)onConnectFailed:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onConnectSuccess; |
||||
- (void)onConnecting; |
||||
- (void)onKickedOffline; |
||||
- (void)onUserTokenExpired; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnConversationListener <NSObject> |
||||
- (void)onConversationChanged:(NSString* _Nullable)conversationList; |
||||
- (void)onNewConversation:(NSString* _Nullable)conversationList; |
||||
- (void)onSyncServerFailed; |
||||
- (void)onSyncServerFinish; |
||||
- (void)onSyncServerStart; |
||||
- (void)onTotalUnreadMessageCountChanged:(int32_t)totalUnreadCount; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnFriendshipListener <NSObject> |
||||
- (void)onBlackAdded:(NSString* _Nullable)blackInfo; |
||||
- (void)onBlackDeleted:(NSString* _Nullable)blackInfo; |
||||
- (void)onFriendAdded:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onFriendApplicationAdded:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationDeleted:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationRejected:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendDeleted:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendInfoChanged:(NSString* _Nullable)friendInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnGroupListener <NSObject> |
||||
- (void)onGroupApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationAdded:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationDeleted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationRejected:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupInfoChanged:(NSString* _Nullable)groupInfo; |
||||
- (void)onGroupMemberAdded:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberDeleted:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberInfoChanged:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onJoinedGroupAdded:(NSString* _Nullable)groupInfo; |
||||
- (void)onJoinedGroupDeleted:(NSString* _Nullable)groupInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnUserListener <NSObject> |
||||
- (void)onSelfInfoUpdated:(NSString* _Nullable)userInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackSendMsgCallBack <NSObject> |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onProgress:(long)progress; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@class Open_im_sdk_callbackBase; |
||||
|
||||
@class Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
|
||||
@class Open_im_sdk_callbackOnConnListener; |
||||
|
||||
@class Open_im_sdk_callbackOnConversationListener; |
||||
|
||||
@class Open_im_sdk_callbackOnFriendshipListener; |
||||
|
||||
@class Open_im_sdk_callbackOnGroupListener; |
||||
|
||||
@class Open_im_sdk_callbackOnUserListener; |
||||
|
||||
@class Open_im_sdk_callbackSendMsgCallBack; |
||||
|
||||
@interface Open_im_sdk_callbackBase : NSObject <goSeqRefInterface, Open_im_sdk_callbackBase> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnAdvancedMsgListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnAdvancedMsgListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onRecvC2CReadReceipt:(NSString* _Nullable)msgReceiptList; |
||||
- (void)onRecvMessageRevoked:(NSString* _Nullable)msgId; |
||||
- (void)onRecvNewMessage:(NSString* _Nullable)message; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnConnListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnConnListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onConnectFailed:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onConnectSuccess; |
||||
- (void)onConnecting; |
||||
- (void)onKickedOffline; |
||||
- (void)onUserTokenExpired; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnConversationListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnConversationListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onConversationChanged:(NSString* _Nullable)conversationList; |
||||
- (void)onNewConversation:(NSString* _Nullable)conversationList; |
||||
- (void)onSyncServerFailed; |
||||
- (void)onSyncServerFinish; |
||||
- (void)onSyncServerStart; |
||||
- (void)onTotalUnreadMessageCountChanged:(int32_t)totalUnreadCount; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnFriendshipListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnFriendshipListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onBlackAdded:(NSString* _Nullable)blackInfo; |
||||
- (void)onBlackDeleted:(NSString* _Nullable)blackInfo; |
||||
- (void)onFriendAdded:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onFriendApplicationAdded:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationDeleted:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationRejected:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendDeleted:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendInfoChanged:(NSString* _Nullable)friendInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnGroupListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnGroupListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onGroupApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationAdded:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationDeleted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationRejected:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupInfoChanged:(NSString* _Nullable)groupInfo; |
||||
- (void)onGroupMemberAdded:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberDeleted:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberInfoChanged:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onJoinedGroupAdded:(NSString* _Nullable)groupInfo; |
||||
- (void)onJoinedGroupDeleted:(NSString* _Nullable)groupInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnUserListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnUserListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onSelfInfoUpdated:(NSString* _Nullable)userInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackSendMsgCallBack : NSObject <goSeqRefInterface, Open_im_sdk_callbackSendMsgCallBack> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onProgress:(long)progress; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
#endif |
Binary file not shown.
@ -0,0 +1 @@ |
||||
A |
@ -1,15 +0,0 @@ |
||||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// open_im_sdk/open_im_sdk
|
||||
// open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __OpenIMCore_FRAMEWORK_H__ |
||||
#define __OpenIMCore_FRAMEWORK_H__ |
||||
|
||||
#include "Open_im_sdk.objc.h" |
||||
#include "Open_im_sdk_callback.objc.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#endif |
@ -1,206 +0,0 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_H__ |
||||
#define __Open_im_sdk_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#include "Open_im_sdk_callback.objc.h" |
||||
|
||||
@interface Open_im_sdk : NSObject |
||||
// skipped variable UserRouterMap with unsupported type: map[string]*open_im_sdk/internal/login.LoginMgr
|
||||
|
||||
// skipped variable UserSDKRwLock with unsupported type: sync.RWMutex
|
||||
|
||||
@end |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable blackUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDReqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCheckFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkCheckToken(NSString* _Nullable userID, NSString* _Nullable token, NSError* _Nullable* _Nullable error); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearC2CHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearGroupHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCardMessage(NSString* _Nullable operationID, NSString* _Nullable cardInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCustomMessage(NSString* _Nullable operationID, NSString* _Nullable data, NSString* _Nullable extension, NSString* _Nullable description); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessage(NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageByURL(NSString* _Nullable operationID, NSString* _Nullable fileBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable fileFullPath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateForwardMessage(NSString* _Nullable operationID, NSString* _Nullable m); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCreateGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupBaseInfo, NSString* _Nullable memberList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessage(NSString* _Nullable operationID, NSString* _Nullable imagePath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageByURL(NSString* _Nullable operationID, NSString* _Nullable sourcePicture, NSString* _Nullable bigPicture, NSString* _Nullable snapshotPicture); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable imageFullPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateLocationMessage(NSString* _Nullable operationID, NSString* _Nullable description, double longitude, double latitude); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateMergerMessage(NSString* _Nullable operationID, NSString* _Nullable messageList, NSString* _Nullable title, NSString* _Nullable summaryList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateQuoteMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessage(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageByURL(NSString* _Nullable operationID, NSString* _Nullable soundBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextAtMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable atUserList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextMessage(NSString* _Nullable operationID, NSString* _Nullable text); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessage(NSString* _Nullable operationID, NSString* _Nullable videoPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageByURL(NSString* _Nullable operationID, NSString* _Nullable videoBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable videoFullPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotFullPath); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable friendUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteMessageFromLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetAllConversationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetBlackList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetConversationIDBySessionType(NSString* _Nullable sourceID, long sessionType); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationListSplit(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long offset, long count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetDesignatedFriendsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetFriendList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMemberList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, int32_t filter, int32_t offset, int32_t count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMembersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetHistoryMessageList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable getMessageOptions); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetJoinedGroupList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT int32_t Open_im_sdkGetLoginStatus(void); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetLoginUser(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetMultipleConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetOneConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long sessionType, NSString* _Nullable sourceID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSelfUserInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetTotalUnreadMsgCount(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
// skipped function GetUserWorker with unsupported parameter or return types
|
||||
|
||||
|
||||
/**
|
||||
* /////////////////////user/////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkGetUsersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
// skipped function InitOnce with unsupported parameter or return types
|
||||
|
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkInitSDK(id<Open_im_sdk_callbackOnConnListener> _Nullable listener, NSString* _Nullable operationID, NSString* _Nullable config); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInsertSingleMessageToLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable sendID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInviteUserToGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkJoinGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkKickGroupMember(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogin(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable token); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogout(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkC2CMessageAsRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable msgIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkGroupMessageHasRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkPinConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, BOOL isPinned); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkQuitGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRemoveBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable removeUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRevokeMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkSdkVersion(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessage(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessageNotOss(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetAdvancedMsgListener(id<Open_im_sdk_callbackOnAdvancedMsgListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationDraft(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, NSString* _Nullable draftText); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationListener(id<Open_im_sdk_callbackOnConversationListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList, long opt); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendListener(id<Open_im_sdk_callbackOnFriendshipListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendRemark(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDRemark); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable groupInfo); |
||||
|
||||
/**
|
||||
* ////////////////////////group//////////////////////////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupListener(id<Open_im_sdk_callbackOnGroupListener> _Nullable callback); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetSelfInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetUserListener(id<Open_im_sdk_callbackOnUserListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTransferGroupOwner(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable newOwnerUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTypingStatusUpdate(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable recvID, NSString* _Nullable msgTip); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkUploadImage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable token, NSString* _Nullable obj); |
||||
|
||||
#endif |
@ -1,29 +0,0 @@ |
||||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__ |
||||
#define __Universe_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
|
||||
@protocol Universeerror; |
||||
@class Universeerror; |
||||
|
||||
@protocol Universeerror <NSObject> |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
@class Universeerror; |
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
#endif |
@ -1,35 +0,0 @@ |
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__ |
||||
#define __GO_REF_HDR__ |
||||
|
||||
#include <Foundation/Foundation.h> |
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject { |
||||
} |
||||
@property(readonly) int32_t refnum; |
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; |
||||
|
||||
- (int32_t)incNum; |
||||
|
||||
@end |
||||
|
||||
@protocol goSeqRefInterface |
||||
-(GoSeqRef*) _ref; |
||||
@end |
||||
|
||||
#endif |
@ -1,9 +0,0 @@ |
||||
framework module "OpenIMCore" { |
||||
header "ref.h" |
||||
header "Open_im_sdk.objc.h" |
||||
header "Open_im_sdk_callback.objc.h" |
||||
header "Universe.objc.h" |
||||
header "OpenIMCore.h" |
||||
|
||||
export * |
||||
} |
Binary file not shown.
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
</dict> |
||||
</plist> |
@ -0,0 +1 @@ |
||||
Versions/Current/Headers |
@ -1,15 +0,0 @@ |
||||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// open_im_sdk/open_im_sdk
|
||||
// open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __OpenIMCore_FRAMEWORK_H__ |
||||
#define __OpenIMCore_FRAMEWORK_H__ |
||||
|
||||
#include "Open_im_sdk.objc.h" |
||||
#include "Open_im_sdk_callback.objc.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#endif |
@ -1,206 +0,0 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_H__ |
||||
#define __Open_im_sdk_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#include "Open_im_sdk_callback.objc.h" |
||||
|
||||
@interface Open_im_sdk : NSObject |
||||
// skipped variable UserRouterMap with unsupported type: map[string]*open_im_sdk/internal/login.LoginMgr
|
||||
|
||||
// skipped variable UserSDKRwLock with unsupported type: sync.RWMutex
|
||||
|
||||
@end |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable blackUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDReqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCheckFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkCheckToken(NSString* _Nullable userID, NSString* _Nullable token, NSError* _Nullable* _Nullable error); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearC2CHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearGroupHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCardMessage(NSString* _Nullable operationID, NSString* _Nullable cardInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCustomMessage(NSString* _Nullable operationID, NSString* _Nullable data, NSString* _Nullable extension, NSString* _Nullable description); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessage(NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageByURL(NSString* _Nullable operationID, NSString* _Nullable fileBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable fileFullPath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateForwardMessage(NSString* _Nullable operationID, NSString* _Nullable m); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCreateGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupBaseInfo, NSString* _Nullable memberList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessage(NSString* _Nullable operationID, NSString* _Nullable imagePath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageByURL(NSString* _Nullable operationID, NSString* _Nullable sourcePicture, NSString* _Nullable bigPicture, NSString* _Nullable snapshotPicture); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable imageFullPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateLocationMessage(NSString* _Nullable operationID, NSString* _Nullable description, double longitude, double latitude); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateMergerMessage(NSString* _Nullable operationID, NSString* _Nullable messageList, NSString* _Nullable title, NSString* _Nullable summaryList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateQuoteMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessage(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageByURL(NSString* _Nullable operationID, NSString* _Nullable soundBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextAtMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable atUserList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextMessage(NSString* _Nullable operationID, NSString* _Nullable text); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessage(NSString* _Nullable operationID, NSString* _Nullable videoPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageByURL(NSString* _Nullable operationID, NSString* _Nullable videoBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable videoFullPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotFullPath); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable friendUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteMessageFromLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetAllConversationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetBlackList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetConversationIDBySessionType(NSString* _Nullable sourceID, long sessionType); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationListSplit(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long offset, long count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetDesignatedFriendsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetFriendList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMemberList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, int32_t filter, int32_t offset, int32_t count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMembersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetHistoryMessageList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable getMessageOptions); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetJoinedGroupList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT int32_t Open_im_sdkGetLoginStatus(void); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetLoginUser(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetMultipleConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetOneConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long sessionType, NSString* _Nullable sourceID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSelfUserInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetTotalUnreadMsgCount(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
// skipped function GetUserWorker with unsupported parameter or return types
|
||||
|
||||
|
||||
/**
|
||||
* /////////////////////user/////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkGetUsersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
// skipped function InitOnce with unsupported parameter or return types
|
||||
|
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkInitSDK(id<Open_im_sdk_callbackOnConnListener> _Nullable listener, NSString* _Nullable operationID, NSString* _Nullable config); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInsertSingleMessageToLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable sendID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInviteUserToGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkJoinGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkKickGroupMember(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogin(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable token); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogout(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkC2CMessageAsRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable msgIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkGroupMessageHasRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkPinConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, BOOL isPinned); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkQuitGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRemoveBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable removeUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRevokeMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkSdkVersion(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessage(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessageNotOss(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetAdvancedMsgListener(id<Open_im_sdk_callbackOnAdvancedMsgListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationDraft(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, NSString* _Nullable draftText); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationListener(id<Open_im_sdk_callbackOnConversationListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList, long opt); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendListener(id<Open_im_sdk_callbackOnFriendshipListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendRemark(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDRemark); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable groupInfo); |
||||
|
||||
/**
|
||||
* ////////////////////////group//////////////////////////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupListener(id<Open_im_sdk_callbackOnGroupListener> _Nullable callback); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetSelfInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetUserListener(id<Open_im_sdk_callbackOnUserListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTransferGroupOwner(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable newOwnerUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTypingStatusUpdate(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable recvID, NSString* _Nullable msgTip); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkUploadImage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable token, NSString* _Nullable obj); |
||||
|
||||
#endif |
@ -1,29 +0,0 @@ |
||||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__ |
||||
#define __Universe_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
|
||||
@protocol Universeerror; |
||||
@class Universeerror; |
||||
|
||||
@protocol Universeerror <NSObject> |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
@class Universeerror; |
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
#endif |
@ -1,35 +0,0 @@ |
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__ |
||||
#define __GO_REF_HDR__ |
||||
|
||||
#include <Foundation/Foundation.h> |
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject { |
||||
} |
||||
@property(readonly) int32_t refnum; |
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; |
||||
|
||||
- (int32_t)incNum; |
||||
|
||||
@end |
||||
|
||||
@protocol goSeqRefInterface |
||||
-(GoSeqRef*) _ref; |
||||
@end |
||||
|
||||
#endif |
@ -0,0 +1 @@ |
||||
Versions/Current/Modules |
@ -1,9 +0,0 @@ |
||||
framework module "OpenIMCore" { |
||||
header "ref.h" |
||||
header "Open_im_sdk.objc.h" |
||||
header "Open_im_sdk_callback.objc.h" |
||||
header "Universe.objc.h" |
||||
header "OpenIMCore.h" |
||||
|
||||
export * |
||||
} |
Binary file not shown.
@ -0,0 +1 @@ |
||||
Versions/Current/OpenIMCore |
@ -0,0 +1 @@ |
||||
Versions/Current/Resources |
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
</dict> |
||||
</plist> |
@ -0,0 +1,205 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk_callback Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_callback_H__ |
||||
#define __Open_im_sdk_callback_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
|
||||
@protocol Open_im_sdk_callbackBase; |
||||
@class Open_im_sdk_callbackBase; |
||||
@protocol Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
@class Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
@protocol Open_im_sdk_callbackOnConnListener; |
||||
@class Open_im_sdk_callbackOnConnListener; |
||||
@protocol Open_im_sdk_callbackOnConversationListener; |
||||
@class Open_im_sdk_callbackOnConversationListener; |
||||
@protocol Open_im_sdk_callbackOnFriendshipListener; |
||||
@class Open_im_sdk_callbackOnFriendshipListener; |
||||
@protocol Open_im_sdk_callbackOnGroupListener; |
||||
@class Open_im_sdk_callbackOnGroupListener; |
||||
@protocol Open_im_sdk_callbackOnUserListener; |
||||
@class Open_im_sdk_callbackOnUserListener; |
||||
@protocol Open_im_sdk_callbackSendMsgCallBack; |
||||
@class Open_im_sdk_callbackSendMsgCallBack; |
||||
|
||||
@protocol Open_im_sdk_callbackBase <NSObject> |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnAdvancedMsgListener <NSObject> |
||||
- (void)onRecvC2CReadReceipt:(NSString* _Nullable)msgReceiptList; |
||||
- (void)onRecvMessageRevoked:(NSString* _Nullable)msgId; |
||||
- (void)onRecvNewMessage:(NSString* _Nullable)message; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnConnListener <NSObject> |
||||
- (void)onConnectFailed:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onConnectSuccess; |
||||
- (void)onConnecting; |
||||
- (void)onKickedOffline; |
||||
- (void)onUserTokenExpired; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnConversationListener <NSObject> |
||||
- (void)onConversationChanged:(NSString* _Nullable)conversationList; |
||||
- (void)onNewConversation:(NSString* _Nullable)conversationList; |
||||
- (void)onSyncServerFailed; |
||||
- (void)onSyncServerFinish; |
||||
- (void)onSyncServerStart; |
||||
- (void)onTotalUnreadMessageCountChanged:(int32_t)totalUnreadCount; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnFriendshipListener <NSObject> |
||||
- (void)onBlackAdded:(NSString* _Nullable)blackInfo; |
||||
- (void)onBlackDeleted:(NSString* _Nullable)blackInfo; |
||||
- (void)onFriendAdded:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onFriendApplicationAdded:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationDeleted:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationRejected:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendDeleted:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendInfoChanged:(NSString* _Nullable)friendInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnGroupListener <NSObject> |
||||
- (void)onGroupApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationAdded:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationDeleted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationRejected:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupInfoChanged:(NSString* _Nullable)groupInfo; |
||||
- (void)onGroupMemberAdded:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberDeleted:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberInfoChanged:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onJoinedGroupAdded:(NSString* _Nullable)groupInfo; |
||||
- (void)onJoinedGroupDeleted:(NSString* _Nullable)groupInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackOnUserListener <NSObject> |
||||
- (void)onSelfInfoUpdated:(NSString* _Nullable)userInfo; |
||||
@end |
||||
|
||||
@protocol Open_im_sdk_callbackSendMsgCallBack <NSObject> |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onProgress:(long)progress; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@class Open_im_sdk_callbackBase; |
||||
|
||||
@class Open_im_sdk_callbackOnAdvancedMsgListener; |
||||
|
||||
@class Open_im_sdk_callbackOnConnListener; |
||||
|
||||
@class Open_im_sdk_callbackOnConversationListener; |
||||
|
||||
@class Open_im_sdk_callbackOnFriendshipListener; |
||||
|
||||
@class Open_im_sdk_callbackOnGroupListener; |
||||
|
||||
@class Open_im_sdk_callbackOnUserListener; |
||||
|
||||
@class Open_im_sdk_callbackSendMsgCallBack; |
||||
|
||||
@interface Open_im_sdk_callbackBase : NSObject <goSeqRefInterface, Open_im_sdk_callbackBase> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnAdvancedMsgListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnAdvancedMsgListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onRecvC2CReadReceipt:(NSString* _Nullable)msgReceiptList; |
||||
- (void)onRecvMessageRevoked:(NSString* _Nullable)msgId; |
||||
- (void)onRecvNewMessage:(NSString* _Nullable)message; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnConnListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnConnListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onConnectFailed:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onConnectSuccess; |
||||
- (void)onConnecting; |
||||
- (void)onKickedOffline; |
||||
- (void)onUserTokenExpired; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnConversationListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnConversationListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onConversationChanged:(NSString* _Nullable)conversationList; |
||||
- (void)onNewConversation:(NSString* _Nullable)conversationList; |
||||
- (void)onSyncServerFailed; |
||||
- (void)onSyncServerFinish; |
||||
- (void)onSyncServerStart; |
||||
- (void)onTotalUnreadMessageCountChanged:(int32_t)totalUnreadCount; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnFriendshipListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnFriendshipListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onBlackAdded:(NSString* _Nullable)blackInfo; |
||||
- (void)onBlackDeleted:(NSString* _Nullable)blackInfo; |
||||
- (void)onFriendAdded:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onFriendApplicationAdded:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationDeleted:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendApplicationRejected:(NSString* _Nullable)friendApplication; |
||||
- (void)onFriendDeleted:(NSString* _Nullable)friendInfo; |
||||
- (void)onFriendInfoChanged:(NSString* _Nullable)friendInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnGroupListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnGroupListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onGroupApplicationAccepted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationAdded:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationDeleted:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupApplicationRejected:(NSString* _Nullable)groupApplication; |
||||
- (void)onGroupInfoChanged:(NSString* _Nullable)groupInfo; |
||||
- (void)onGroupMemberAdded:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberDeleted:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onGroupMemberInfoChanged:(NSString* _Nullable)groupMemberInfo; |
||||
- (void)onJoinedGroupAdded:(NSString* _Nullable)groupInfo; |
||||
- (void)onJoinedGroupDeleted:(NSString* _Nullable)groupInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackOnUserListener : NSObject <goSeqRefInterface, Open_im_sdk_callbackOnUserListener> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onSelfInfoUpdated:(NSString* _Nullable)userInfo; |
||||
@end |
||||
|
||||
@interface Open_im_sdk_callbackSendMsgCallBack : NSObject <goSeqRefInterface, Open_im_sdk_callbackSendMsgCallBack> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (void)onError:(int32_t)errCode errMsg:(NSString* _Nullable)errMsg; |
||||
- (void)onProgress:(long)progress; |
||||
- (void)onSuccess:(NSString* _Nullable)data; |
||||
@end |
||||
|
||||
#endif |
Binary file not shown.
@ -0,0 +1 @@ |
||||
A |
@ -1,15 +0,0 @@ |
||||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// open_im_sdk/open_im_sdk
|
||||
// open_im_sdk/open_im_sdk_callback
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __OpenIMCore_FRAMEWORK_H__ |
||||
#define __OpenIMCore_FRAMEWORK_H__ |
||||
|
||||
#include "Open_im_sdk.objc.h" |
||||
#include "Open_im_sdk_callback.objc.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#endif |
@ -1,206 +0,0 @@ |
||||
// Objective-C API for talking to open_im_sdk/open_im_sdk Go package.
|
||||
// gobind -lang=objc open_im_sdk/open_im_sdk
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Open_im_sdk_H__ |
||||
#define __Open_im_sdk_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
#include "Universe.objc.h" |
||||
|
||||
#include "Open_im_sdk_callback.objc.h" |
||||
|
||||
@interface Open_im_sdk : NSObject |
||||
// skipped variable UserRouterMap with unsupported type: map[string]*open_im_sdk/internal/login.LoginMgr
|
||||
|
||||
// skipped variable UserSDKRwLock with unsupported type: sync.RWMutex
|
||||
|
||||
@end |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAcceptGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable blackUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkAddFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDReqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCheckFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkCheckToken(NSString* _Nullable userID, NSString* _Nullable token, NSError* _Nullable* _Nullable error); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearC2CHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkClearGroupHistoryMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCardMessage(NSString* _Nullable operationID, NSString* _Nullable cardInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateCustomMessage(NSString* _Nullable operationID, NSString* _Nullable data, NSString* _Nullable extension, NSString* _Nullable description); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessage(NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageByURL(NSString* _Nullable operationID, NSString* _Nullable fileBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateFileMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable fileFullPath, NSString* _Nullable fileName); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateForwardMessage(NSString* _Nullable operationID, NSString* _Nullable m); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkCreateGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupBaseInfo, NSString* _Nullable memberList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessage(NSString* _Nullable operationID, NSString* _Nullable imagePath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageByURL(NSString* _Nullable operationID, NSString* _Nullable sourcePicture, NSString* _Nullable bigPicture, NSString* _Nullable snapshotPicture); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateImageMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable imageFullPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateLocationMessage(NSString* _Nullable operationID, NSString* _Nullable description, double longitude, double latitude); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateMergerMessage(NSString* _Nullable operationID, NSString* _Nullable messageList, NSString* _Nullable title, NSString* _Nullable summaryList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateQuoteMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessage(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageByURL(NSString* _Nullable operationID, NSString* _Nullable soundBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateSoundMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable soundPath, int64_t duration); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextAtMessage(NSString* _Nullable operationID, NSString* _Nullable text, NSString* _Nullable atUserList); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateTextMessage(NSString* _Nullable operationID, NSString* _Nullable text); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessage(NSString* _Nullable operationID, NSString* _Nullable videoPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotPath); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageByURL(NSString* _Nullable operationID, NSString* _Nullable videoBaseInfo); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkCreateVideoMessageFromFullPath(NSString* _Nullable operationID, NSString* _Nullable videoFullPath, NSString* _Nullable videoType, int64_t duration, NSString* _Nullable snapshotFullPath); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteFriend(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable friendUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkDeleteMessageFromLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetAllConversationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetBlackList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetConversationIDBySessionType(NSString* _Nullable sourceID, long sessionType); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationListSplit(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long offset, long count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetDesignatedFriendsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetFriendList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMemberList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, int32_t filter, int32_t offset, int32_t count); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupMembersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetGroupsInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetHistoryMessageList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable getMessageOptions); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetJoinedGroupList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT int32_t Open_im_sdkGetLoginStatus(void); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkGetLoginUser(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetMultipleConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetOneConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, long sessionType, NSString* _Nullable sourceID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetRecvGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSelfUserInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendFriendApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetSendGroupApplicationList(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkGetTotalUnreadMsgCount(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
// skipped function GetUserWorker with unsupported parameter or return types
|
||||
|
||||
|
||||
/**
|
||||
* /////////////////////user/////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkGetUsersInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDList); |
||||
|
||||
// skipped function InitOnce with unsupported parameter or return types
|
||||
|
||||
|
||||
FOUNDATION_EXPORT BOOL Open_im_sdkInitSDK(id<Open_im_sdk_callbackOnConnListener> _Nullable listener, NSString* _Nullable operationID, NSString* _Nullable config); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInsertSingleMessageToLocalStorage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable sendID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkInviteUserToGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkJoinGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reqMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkKickGroupMember(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable reason, NSString* _Nullable userIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogin(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable token); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkLogout(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkC2CMessageAsRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userID, NSString* _Nullable msgIDList); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkMarkGroupMessageHasRead(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkPinConversation(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, BOOL isPinned); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkQuitGroup(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseFriendApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDHandleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRefuseGroupApplication(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable fromUserID, NSString* _Nullable handleMsg); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRemoveBlack(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable removeUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkRevokeMessage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkSdkVersion(void); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessage(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSendMessageNotOss(id<Open_im_sdk_callbackSendMsgCallBack> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable message, NSString* _Nullable recvID, NSString* _Nullable groupID, NSString* _Nullable offlinePushInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetAdvancedMsgListener(id<Open_im_sdk_callbackOnAdvancedMsgListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationDraft(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationID, NSString* _Nullable draftText); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationListener(id<Open_im_sdk_callbackOnConversationListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetConversationRecvMessageOpt(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable conversationIDList, long opt); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendListener(id<Open_im_sdk_callbackOnFriendshipListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetFriendRemark(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userIDRemark); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable groupInfo); |
||||
|
||||
/**
|
||||
* ////////////////////////group//////////////////////////////////////////
|
||||
*/ |
||||
FOUNDATION_EXPORT void Open_im_sdkSetGroupListener(id<Open_im_sdk_callbackOnGroupListener> _Nullable callback); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetSelfInfo(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable userInfo); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkSetUserListener(id<Open_im_sdk_callbackOnUserListener> _Nullable listener); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTransferGroupOwner(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable groupID, NSString* _Nullable newOwnerUserID); |
||||
|
||||
FOUNDATION_EXPORT void Open_im_sdkTypingStatusUpdate(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable recvID, NSString* _Nullable msgTip); |
||||
|
||||
FOUNDATION_EXPORT NSString* _Nonnull Open_im_sdkUploadImage(id<Open_im_sdk_callbackBase> _Nullable callback, NSString* _Nullable operationID, NSString* _Nullable filePath, NSString* _Nullable token, NSString* _Nullable obj); |
||||
|
||||
#endif |
@ -1,29 +0,0 @@ |
||||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__ |
||||
#define __Universe_H__ |
||||
|
||||
@import Foundation; |
||||
#include "ref.h" |
||||
|
||||
@protocol Universeerror; |
||||
@class Universeerror; |
||||
|
||||
@protocol Universeerror <NSObject> |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
@class Universeerror; |
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> { |
||||
} |
||||
@property(strong, readonly) _Nonnull id _ref; |
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
||||
- (NSString* _Nonnull)error; |
||||
@end |
||||
|
||||
#endif |
@ -1,35 +0,0 @@ |
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__ |
||||
#define __GO_REF_HDR__ |
||||
|
||||
#include <Foundation/Foundation.h> |
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject { |
||||
} |
||||
@property(readonly) int32_t refnum; |
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; |
||||
|
||||
- (int32_t)incNum; |
||||
|
||||
@end |
||||
|
||||
@protocol goSeqRefInterface |
||||
-(GoSeqRef*) _ref; |
||||
@end |
||||
|
||||
#endif |
@ -1,9 +0,0 @@ |
||||
framework module "OpenIMCore" { |
||||
header "ref.h" |
||||
header "Open_im_sdk.objc.h" |
||||
header "Open_im_sdk_callback.objc.h" |
||||
header "Universe.objc.h" |
||||
header "OpenIMCore.h" |
||||
|
||||
export * |
||||
} |
Binary file not shown.
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
</dict> |
||||
</plist> |
@ -1,4 +1,4 @@ |
||||
class ConversationType { |
||||
static const single_chat = 1; |
||||
static const group_chat = 2; |
||||
static const single = 1; |
||||
static const group = 2; |
||||
} |
||||
|
@ -1,5 +0,0 @@ |
||||
class GroupRole { |
||||
static const member = 0; |
||||
static const owner = 1; |
||||
static const admin = 2; |
||||
} |
@ -0,0 +1,7 @@ |
||||
/// 1 ordinary member, 2 group owners, 3 administrators |
||||
/// 1普通成员, 2群主,3管理员 |
||||
class GroupRoleLevel { |
||||
static const member = 1; |
||||
static const owner = 2; |
||||
static const admin = 3; |
||||
} |
@ -0,0 +1,27 @@ |
||||
import 'dart:convert'; |
||||
|
||||
class Utils { |
||||
static List<T> toList<T>(String? value, T f(Map<String, dynamic> map)) { |
||||
var list = _formatJson(value); |
||||
if (null == list) return <T>[]; |
||||
return (list as List).map((e) => f(e)).toList(); |
||||
} |
||||
|
||||
static T toObj<T>(String value, T f(Map<String, dynamic> map)) => |
||||
f(_formatJson(value)); |
||||
|
||||
static List<dynamic> toListMap(String? value) => _formatJson(value) ?? []; |
||||
|
||||
static dynamic _formatJson(String? value) { |
||||
if (null == value) return null; |
||||
return jsonDecode(_printValue(value)); |
||||
} |
||||
|
||||
static String _printValue(value) { |
||||
return value; |
||||
} |
||||
|
||||
static String checkOperationID(String? obj) { |
||||
return obj ?? DateTime.now().millisecondsSinceEpoch.toString(); |
||||
} |
||||
} |
@ -1,41 +1,5 @@ |
||||
import 'package:flutter_test/flutter_test.dart'; |
||||
|
||||
void main() { |
||||
/* const MethodChannel channel = MethodChannel('flutter_openim_sdk'); |
||||
|
||||
TestWidgetsFlutterBinding.ensureInitialized(); |
||||
|
||||
setUp(() { |
||||
channel.setMockMethodCallHandler((MethodCall methodCall) async { |
||||
return '42'; |
||||
}); |
||||
}); |
||||
|
||||
tearDown(() { |
||||
channel.setMockMethodCallHandler(null); |
||||
}); |
||||
|
||||
test('getPlatformVersion', () async {});*/ |
||||
|
||||
// Message m1 = new Message(clientMsgID: '1', content: 'c1'); |
||||
// Message m2 = new Message(clientMsgID: '2', content: 'c2'); |
||||
// Message m3 = new Message(clientMsgID: '3', content: 'c3'); |
||||
// Message m4 = new Message(clientMsgID: '3', content: 'c4'); |
||||
// List list = List.of([m1, m2, m3]); |
||||
// |
||||
// print(list.contains(m4)); |
||||
// print(m1 == m4); |
||||
// print(m2 == m4); |
||||
// print(m3 == m4); |
||||
// var input = "1234 @abc @bbc @hha 开什么玩笑"; |
||||
// RegExp exp = new RegExp(r"(@\w+) "); |
||||
// final ms = exp.allMatches(input); |
||||
// for (Match m in ms) { |
||||
// String match = m.group(0)??''; |
||||
// print('====$match ${m.start} ${m.end}'); |
||||
// } |
||||
|
||||
// DateTime now = DateTime.now(); |
||||
// print('${now.millisecond}'); |
||||
// print('${now.microsecondsSinceEpoch}'); |
||||
// print('${now.millisecondsSinceEpoch}'); |
||||
} |
||||
|
Loading…
Reference in new issue