aboutsummaryrefslogtreecommitdiff
path: root/service/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/service.go')
-rw-r--r--service/service.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/service/service.go b/service/service.go
index b039849..3a48e77 100644
--- a/service/service.go
+++ b/service/service.go
@@ -52,6 +52,8 @@ type Service interface {
UnMute(ctx context.Context, c *model.Client, id string) (err error)
Block(ctx context.Context, c *model.Client, id string) (err error)
UnBlock(ctx context.Context, c *model.Client, id string) (err error)
+ Subscribe(ctx context.Context, c *model.Client, id string) (err error)
+ UnSubscribe(ctx context.Context, c *model.Client, id string) (err error)
SaveSettings(ctx context.Context, c *model.Client, settings *model.Settings) (err error)
MuteConversation(ctx context.Context, c *model.Client, id string) (err error)
UnMuteConversation(ctx context.Context, c *model.Client, id string) (err error)
@@ -839,6 +841,16 @@ func (svc *service) UnBlock(ctx context.Context, c *model.Client, id string) (er
return
}
+func (svc *service) Subscribe(ctx context.Context, c *model.Client, id string) (err error) {
+ _, err = c.Subscribe(ctx, id)
+ return
+}
+
+func (svc *service) UnSubscribe(ctx context.Context, c *model.Client, id string) (err error) {
+ _, err = c.UnSubscribe(ctx, id)
+ return
+}
+
func (svc *service) SaveSettings(ctx context.Context, c *model.Client,
settings *model.Settings) (err error) {