aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier/notifier.go
blob: 7ce94b0dca4fb373f65d3acb27abdf84b2e6e01d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package notifier

import (
	"context"

	chModel "donetick.com/core/internal/chore/model"
	nModel "donetick.com/core/internal/notifier/model"
	uModel "donetick.com/core/internal/user/model"
)

type Notifier interface {
	SendChoreReminder(c context.Context, chore *chModel.Chore, users []*uModel.User)
	SendChoreCompletion(c context.Context, chore *chModel.Chore, user *uModel.User)
	SendChoreOverdue(c context.Context, chore *chModel.Chore, users []*uModel.User)
	SendChorePreDue(c context.Context, chore *chModel.Chore, users []*uModel.User)
	SendNotification(c context.Context, notification *nModel.Notification)
}