Documentation ¶
Index ¶
- type DialogModel
- func (m *DialogModel) ClearDraftMessage(userId int32, peerType int32, peerId int32) bool
- func (m *DialogModel) GetDialogsByOffsetId(userId int32, isPinned bool, offsetId int32, limit int32) (dialogs []*mtproto.Dialog)
- func (m *DialogModel) GetPeersDialogs(selfId int32, peers []*base.PeerUtil) (dialogs []*mtproto.Dialog)
- func (m *DialogModel) GetPinnedDialogs(userId int32) (dialogs []*mtproto.Dialog)
- func (m *DialogModel) GetTopMessage(userId int32, peerType int8, peerId int32) int32
- func (m *DialogModel) InsertOrChannelUpdateDialog(userId, peerType, peerId int32)
- func (m *DialogModel) InsertOrUpdateDialog(userId, peerType, peerId, topMessage int32, hasMentioned, isInbox bool)
- func (m *DialogModel) InstallModel()
- func (m *DialogModel) MakeDialogLogic(userId, peerType, peerId int32) *dialogLogic
- func (m *DialogModel) PickAllIDListByDialogs(dialogs []*mtproto.Dialog) (items *dialogItems)
- func (m *DialogModel) RegisterCallback(cb interface{})
- func (m *DialogModel) SaveDraftMessage(userId int32, peerType int32, peerId int32, message *mtproto.DraftMessage)
- func (m *DialogModel) UpdateReadOutboxMaxIdByPeer(userId int32, peerType int8, peerId int32, topMessage int32)
- func (m *DialogModel) UpdateUnreadByPeer(userId int32, peerType int8, peerId int32, readInboxMaxId int32)
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 (*DialogModel) GetPeersDialogs ¶
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)
Click to show internal directories.
Click to hide internal directories.