2021-09-13 21:36:36 +02:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
|
|
|
|
package notifymentions
|
|
|
|
|
2022-04-14 00:09:55 +02:00
|
|
|
import (
|
|
|
|
"github.com/mattermost/focalboard/server/services/notify"
|
|
|
|
|
|
|
|
mm_model "github.com/mattermost/mattermost-server/v6/model"
|
|
|
|
)
|
2021-09-13 21:36:36 +02:00
|
|
|
|
2021-12-10 17:46:37 +02:00
|
|
|
// MentionDelivery provides an interface for delivering @mention notifications to other systems, such as
|
|
|
|
// channels server via plugin API.
|
|
|
|
// On success the user id of the user mentioned is returned.
|
|
|
|
type MentionDelivery interface {
|
2022-04-14 00:09:55 +02:00
|
|
|
MentionDeliver(mentionedUser *mm_model.User, extract string, evt notify.BlockChangeEvent) (string, error)
|
|
|
|
UserByUsername(mentionUsername string) (*mm_model.User, error)
|
2021-09-13 21:36:36 +02:00
|
|
|
}
|