conversation_msg

package
v0.0.0-...-13b6049 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const TimeOffset = 5

Variables

View Source
var SearchContentType = []int{constant.Text, constant.AtText, constant.File}

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	*ws.Ws

	ConversationListener open_im_sdk_callback.OnConversationListener

	DataDir string

	common2.ObjectStorage

	IsExternalExtensions bool
	// contains filtered or unexported fields
}

func NewConversation

func NewConversation(ws *ws.Ws, db db_interface.DataBase, p *ws.PostApi,
	ch chan common.Cmd2Value, loginUserID string, platformID int32, dataDir, encryptionKey string,
	friend *friend.Friend, group *group.Group, user *user.User,
	objectStorage common2.ObjectStorage, conversationListener open_im_sdk_callback.OnConversationListener,
	msgListener open_im_sdk_callback.OnAdvancedMsgListener, organization *organization.Organization, signaling *signaling.LiveSignaling,
	workMoments *workMoments.WorkMoments, business *business.Business, cache *cache.Cache, full *full.Full, id2MinSeq map[string]uint32, isExternalExtensions bool) *Conversation

func (*Conversation) AddMessageReactionExtensions

func (c *Conversation) AddMessageReactionExtensions(callback open_im_sdk_callback.Base, message, reactionExtensionList, operationID string)

func (*Conversation) ClearC2CHistoryMessage

func (c *Conversation) ClearC2CHistoryMessage(callback open_im_sdk_callback.Base, userID string, operationID string)

func (*Conversation) ClearC2CHistoryMessageFromLocalAndSvr

func (c *Conversation) ClearC2CHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, userID string, operationID string)

func (*Conversation) ClearGroupHistoryMessage

func (c *Conversation) ClearGroupHistoryMessage(callback open_im_sdk_callback.Base, groupID string, operationID string)

func (*Conversation) ClearGroupHistoryMessageFromLocalAndSvr

func (c *Conversation) ClearGroupHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, groupID string, operationID string)

fixme

func (*Conversation) CreateAdvancedQuoteMessage

func (c *Conversation) CreateAdvancedQuoteMessage(text string, message, messageEntityList, operationID string) string

func (*Conversation) CreateAdvancedTextMessage

func (c *Conversation) CreateAdvancedTextMessage(text, messageEntityList, operationID string) string

func (*Conversation) CreateCardMessage

func (c *Conversation) CreateCardMessage(cardInfo, operationID string) string

func (*Conversation) CreateCustomMessage

func (c *Conversation) CreateCustomMessage(data, extension string, description, operationID string) string

func (*Conversation) CreateFaceMessage

func (c *Conversation) CreateFaceMessage(index int, data, operationID string) string

func (*Conversation) CreateFileMessage

func (c *Conversation) CreateFileMessage(filePath string, fileName, operationID string) string

func (*Conversation) CreateFileMessageByURL

func (c *Conversation) CreateFileMessageByURL(fileBaseInfo, operationID string) string

func (*Conversation) CreateFileMessageFromFullPath

func (c *Conversation) CreateFileMessageFromFullPath(fileFullPath string, fileName, operationID string) string

func (*Conversation) CreateForwardMessage

func (c *Conversation) CreateForwardMessage(m, operationID string) string

func (*Conversation) CreateImageMessage

func (c *Conversation) CreateImageMessage(imagePath, operationID string) string

func (*Conversation) CreateImageMessageByURL

func (c *Conversation) CreateImageMessageByURL(sourcePicture, bigPicture, snapshotPicture, operationID string) string

func (*Conversation) CreateImageMessageFromFullPath

func (c *Conversation) CreateImageMessageFromFullPath(imageFullPath, operationID string) string

func (*Conversation) CreateLocationMessage

func (c *Conversation) CreateLocationMessage(description string, longitude, latitude float64, operationID string) string

func (*Conversation) CreateMergerMessage

func (c *Conversation) CreateMergerMessage(messageList, title, summaryList, operationID string) string

func (*Conversation) CreateQuoteMessage

func (c *Conversation) CreateQuoteMessage(text string, message, operationID string) string

func (*Conversation) CreateSoundMessage

func (c *Conversation) CreateSoundMessage(soundPath string, duration int64, operationID string) string

func (*Conversation) CreateSoundMessageByURL

func (c *Conversation) CreateSoundMessageByURL(soundBaseInfo, operationID string) string

func (*Conversation) CreateSoundMessageFromFullPath

func (c *Conversation) CreateSoundMessageFromFullPath(soundPath string, duration int64, operationID string) string

func (*Conversation) CreateTextAtMessage

func (c *Conversation) CreateTextAtMessage(text, atUserList, atUsersInfo, message, operationID string) string

func (*Conversation) CreateTextMessage

func (c *Conversation) CreateTextMessage(text, operationID string) string

func (*Conversation) CreateVideoMessage

func (c *Conversation) CreateVideoMessage(videoPath string, videoType string, duration int64, snapshotPath, operationID string) string

func (*Conversation) CreateVideoMessageByURL

func (c *Conversation) CreateVideoMessageByURL(videoBaseInfo, operationID string) string

func (*Conversation) CreateVideoMessageFromFullPath

func (c *Conversation) CreateVideoMessageFromFullPath(videoFullPath string, videoType string, duration int64, snapshotFullPath, operationID string) string

func (*Conversation) DeleteAllConversationFromLocal

func (c *Conversation) DeleteAllConversationFromLocal(callback open_im_sdk_callback.Base, operationID string)

func (*Conversation) DeleteAllMsgFromLocal

func (c *Conversation) DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)

func (*Conversation) DeleteAllMsgFromLocalAndSvr

func (c *Conversation) DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)

func (*Conversation) DeleteConversation

func (c *Conversation) DeleteConversation(callback open_im_sdk_callback.Base, conversationID string, operationID string)

func (*Conversation) DeleteConversationFromLocalAndSvr

func (c *Conversation) DeleteConversationFromLocalAndSvr(callback open_im_sdk_callback.Base, conversationID string, operationID string)

func (*Conversation) DeleteMessageFromLocalAndSvr

func (c *Conversation) DeleteMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, message string, operationID string)

func (*Conversation) DeleteMessageFromLocalStorage

func (c *Conversation) DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, message string, operationID string)

func (*Conversation) DeleteMessageReactionExtensions

func (c *Conversation) DeleteMessageReactionExtensions(callback open_im_sdk_callback.Base, message, reactionExtensionKeyList, operationID string)

func (*Conversation) DoGroupMsgReadState

func (c *Conversation) DoGroupMsgReadState(groupMsgReadList []*sdk_struct.MsgStruct)

func (*Conversation) DoMsgReaction

func (c *Conversation) DoMsgReaction(msgReactionList []*sdk_struct.MsgStruct)

func (*Conversation) DoNotification

func (c *Conversation) DoNotification(msg *server_api_params.MsgData)

func (*Conversation) FindMessageList

func (c *Conversation) FindMessageList(callback open_im_sdk_callback.Base, findMessageOptions, operationID string)

func (*Conversation) FixVersionData

func (c *Conversation) FixVersionData()

func (*Conversation) GetAdvancedHistoryMessageList

func (c *Conversation) GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)

func (*Conversation) GetAdvancedHistoryMessageListReverse

func (c *Conversation) GetAdvancedHistoryMessageListReverse(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)

func (*Conversation) GetAllConversationList

func (c *Conversation) GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)

func (*Conversation) GetAllTypeKeyInfo

func (c *Conversation) GetAllTypeKeyInfo(callback open_im_sdk_callback.Base, message, operationID string)

func (*Conversation) GetCh

func (c *Conversation) GetCh() chan common.Cmd2Value

func (*Conversation) GetConversationListSplit

func (c *Conversation) GetConversationListSplit(callback open_im_sdk_callback.Base, offset, count int, operationID string)

func (*Conversation) GetConversationRecvMessageOpt

func (c *Conversation) GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList, operationID string)

deprecated

func (*Conversation) GetConversationsByUserID

func (c *Conversation) GetConversationsByUserID(callback open_im_sdk_callback.Base, operationID string, UserID string)

func (*Conversation) GetHistoryMessageList

func (c *Conversation) GetHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)

func (*Conversation) GetHistoryMessageListReverse

func (c *Conversation) GetHistoryMessageListReverse(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)

func (*Conversation) GetMessageListReactionExtensions

func (c *Conversation) GetMessageListReactionExtensions(callback open_im_sdk_callback.Base, messageList, operationID string)

func (*Conversation) GetMessageListSomeReactionExtensions

func (c *Conversation) GetMessageListSomeReactionExtensions(callback open_im_sdk_callback.Base, messageList, reactionExtensionKeyList, operationID string)

* **Get some reaction extensions in reactionExtensionKeyList of message list

func (*Conversation) GetMultipleConversation

func (c *Conversation) GetMultipleConversation(callback open_im_sdk_callback.Base, conversationIDList string, operationID string)

func (*Conversation) GetOneConversation

func (c *Conversation) GetOneConversation(callback open_im_sdk_callback.Base, sessionType int32, sourceID, operationID string)

func (*Conversation) GetTotalUnreadMsgCount

func (c *Conversation) GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)

func (*Conversation) GetTypeKeyListInfo

func (c *Conversation) GetTypeKeyListInfo(callback open_im_sdk_callback.Base, message, typeKeyList, operationID string)

func (*Conversation) HideConversation

func (c *Conversation) HideConversation(callback open_im_sdk_callback.Base, conversationID string, operationID string)

func (*Conversation) InsertGroupMessageToLocalStorage

func (c *Conversation) InsertGroupMessageToLocalStorage(callback open_im_sdk_callback.Base, message, groupID, sendID, operationID string)

func (*Conversation) InsertSingleMessageToLocalStorage

func (c *Conversation) InsertSingleMessageToLocalStorage(callback open_im_sdk_callback.Base, message, recvID, sendID, operationID string)

func (*Conversation) InternalSendMessage

func (c *Conversation) InternalSendMessage(callback open_im_sdk_callback.Base, s *sdk_struct.MsgStruct, recvID, groupID, operationID string, p *server_api_params.OfflinePushInfo, onlineUserOnly bool, options map[string]bool) (*server_api_params.UserSendMsgResp, error)

func (*Conversation) MarkAllConversationHasRead

func (c *Conversation) MarkAllConversationHasRead(callback open_im_sdk_callback.Base, operationID string)

fixme

func (*Conversation) MarkC2CMessageAsRead

func (c *Conversation) MarkC2CMessageAsRead(callback open_im_sdk_callback.Base, userID string, msgIDList, operationID string)

func (*Conversation) MarkGroupMessageAsRead

func (c *Conversation) MarkGroupMessageAsRead(callback open_im_sdk_callback.Base, groupID string, msgIDList, operationID string)

func (*Conversation) MarkGroupMessageHasRead

func (c *Conversation) MarkGroupMessageHasRead(callback open_im_sdk_callback.Base, groupID string, operationID string)

deprecated

func (*Conversation) MarkMessageAsReadByConID

func (c *Conversation) MarkMessageAsReadByConID(callback open_im_sdk_callback.Base, conversationID, msgIDList, operationID string)

func (*Conversation) MsgListener

func (*Conversation) NewRevokeMessage

func (c *Conversation) NewRevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)

func (*Conversation) PinConversation

func (c *Conversation) PinConversation(callback open_im_sdk_callback.Base, conversationID string, isPinned bool, operationID string)

func (*Conversation) QuoteMsgRevokeHandle

func (c *Conversation) QuoteMsgRevokeHandle(v *model_struct.LocalChatLog, revokeMsgIDList []*sdk_struct.MessageRevoked)

func (*Conversation) ResetConversationGroupAtType

func (c *Conversation) ResetConversationGroupAtType(callback open_im_sdk_callback.Base, conversationID, operationID string)

func (*Conversation) RevokeMessage

func (c *Conversation) RevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)

func (*Conversation) SearchLocalMessages

func (c *Conversation) SearchLocalMessages(callback open_im_sdk_callback.Base, searchParam, operationID string)

func (*Conversation) SendMessage

func (c *Conversation) SendMessage(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, offlinePushInfo string, operationID string)

func (*Conversation) SendMessageByBuffer

func (c *Conversation) SendMessageByBuffer(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, offlinePushInfo string, operationID string, buffer1, buffer2 *bytes.Buffer)

func (*Conversation) SendMessageNotOss

func (c *Conversation) SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, offlinePushInfo string, operationID string)

func (*Conversation) SetBatchMsgListener

func (c *Conversation) SetBatchMsgListener(batchMsgListener open_im_sdk_callback.OnBatchMsgListener)

func (*Conversation) SetConversationDraft

func (c *Conversation) SetConversationDraft(callback open_im_sdk_callback.Base, conversationID, draftText string, operationID string)

func (*Conversation) SetConversationListener

func (c *Conversation) SetConversationListener(listener open_im_sdk_callback.OnConversationListener)

func (*Conversation) SetConversationRecvMessageOpt

func (c *Conversation) SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList string, opt int, operationID string)

func (*Conversation) SetConversationStatus

func (c *Conversation) SetConversationStatus(callback open_im_sdk_callback.Base, operationID string, userID string, status int)

func (*Conversation) SetGlobalRecvMessageOpt

func (c *Conversation) SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, opt int, operationID string)

func (*Conversation) SetListenerForService

func (c *Conversation) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)

func (*Conversation) SetMessageReactionExtensions

func (c *Conversation) SetMessageReactionExtensions(callback open_im_sdk_callback.Base, message, reactionExtensionList, operationID string)

func (*Conversation) SetMsgKvListener

func (c *Conversation) SetMsgKvListener(msgKvListener open_im_sdk_callback.OnMessageKvInfoListener)

func (*Conversation) SetMsgListener

func (c *Conversation) SetMsgListener(msgListener open_im_sdk_callback.OnAdvancedMsgListener)

func (*Conversation) SetOneConversationBurnDuration

func (c *Conversation) SetOneConversationBurnDuration(callback open_im_sdk_callback.Base, conversationID string, burnDuration int32, operationID string)

func (*Conversation) SetOneConversationPrivateChat

func (c *Conversation) SetOneConversationPrivateChat(callback open_im_sdk_callback.Base, conversationID string, isPrivate bool, operationID string)

func (*Conversation) SetOneConversationRecvMessageOpt

func (c *Conversation) SetOneConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationID string, opt int, operationID string)

func (*Conversation) SetSignaling

func (c *Conversation) SetSignaling(signaling *signaling.LiveSignaling)

func (*Conversation) SetTypeKeyInfo

func (c *Conversation) SetTypeKeyInfo(callback open_im_sdk_callback.Base, message, typeKey, ex string, isCanRepeat bool, operationID string)

func (*Conversation) SyncConversationUnreadCount

func (c *Conversation) SyncConversationUnreadCount(operationID string)

func (*Conversation) SyncConversations

func (c *Conversation) SyncConversations(operationID string, timeout time.Duration)

func (*Conversation) SyncOneConversation

func (c *Conversation) SyncOneConversation(conversationID, operationID string)

func (*Conversation) TypingStatusUpdate

func (c *Conversation) TypingStatusUpdate(callback open_im_sdk_callback.Base, recvID, msgTip, operationID string)

func (*Conversation) Work

func (c *Conversation) Work(c2v common.Cmd2Value)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL