dialog

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialogModel

type DialogModel struct {
	// contains filtered or unexported fields
}

func (*DialogModel) ClearDraftMessage

func (m *DialogModel) ClearDraftMessage(userId int32, peerType int32, peerId int32) bool

func (*DialogModel) GetDialogsByOffsetId

func (m *DialogModel) GetDialogsByOffsetId(userId int32, isPinned bool, offsetId int32, limit int32) (dialogs []*mtproto.Dialog)

func (*DialogModel) GetPeersDialogs

func (m *DialogModel) GetPeersDialogs(selfId int32, peers []*base.PeerUtil) (dialogs []*mtproto.Dialog)

func (*DialogModel) GetPinnedDialogs

func (m *DialogModel) GetPinnedDialogs(userId int32) (dialogs []*mtproto.Dialog)

func (*DialogModel) GetTopMessage

func (m *DialogModel) GetTopMessage(userId int32, peerType int8, peerId int32) int32

func (*DialogModel) InsertOrChannelUpdateDialog

func (m *DialogModel) InsertOrChannelUpdateDialog(userId, peerType, peerId int32)

func (*DialogModel) InsertOrUpdateDialog

func (m *DialogModel) InsertOrUpdateDialog(userId, peerType, peerId, topMessage int32, hasMentioned, isInbox bool)

func (*DialogModel) InstallModel

func (m *DialogModel) InstallModel()

func (*DialogModel) MakeDialogLogic

func (m *DialogModel) MakeDialogLogic(userId, peerType, peerId int32) *dialogLogic

func (*DialogModel) PickAllIDListByDialogs

func (m *DialogModel) PickAllIDListByDialogs(dialogs []*mtproto.Dialog) (items *dialogItems)

func (*DialogModel) RegisterCallback

func (m *DialogModel) RegisterCallback(cb interface{})

func (*DialogModel) SaveDraftMessage

func (m *DialogModel) SaveDraftMessage(userId int32, peerType int32, peerId int32, message *mtproto.DraftMessage)

func (*DialogModel) UpdateReadOutboxMaxIdByPeer

func (m *DialogModel) UpdateReadOutboxMaxIdByPeer(userId int32, peerType int8, peerId int32, topMessage int32)

func (*DialogModel) UpdateUnreadByPeer

func (m *DialogModel) UpdateUnreadByPeer(userId int32, peerType int8, peerId int32, readInboxMaxId int32)

Jump to

Keyboard shortcuts

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