aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/EmailService.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-03-10 22:51:04 +0300
committerGravatar Vitaly Takmazov2020-03-10 22:51:04 +0300
commit301275c432501d9709168e69bb685c073fb621de (patch)
tree249d7e42f61f0917e1f426ab281fa5310c531ee1 /src/main/java/com/juick/service/EmailService.java
parentc28afe791bd1be6ba2999d688f4ea2b00925ad37 (diff)
Mail unsubscribe API
Diffstat (limited to 'src/main/java/com/juick/service/EmailService.java')
-rw-r--r--src/main/java/com/juick/service/EmailService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/EmailService.java b/src/main/java/com/juick/service/EmailService.java
index b957d5ed..82c2fe5f 100644
--- a/src/main/java/com/juick/service/EmailService.java
+++ b/src/main/java/com/juick/service/EmailService.java
@@ -17,6 +17,8 @@
package com.juick.service;
+import com.juick.model.User;
+
import java.util.List;
/**
@@ -27,6 +29,7 @@ public interface EmailService {
boolean addVerificationCode(Integer userId, String account, String code);
boolean addEmail(Integer userId, String email);
boolean deleteEmail(Integer userId, String account);
+ boolean disableEmail(User user, String account);
String getNotificationsEmail(Integer userId);
boolean setNotificationsEmail(Integer userId, String account);
List<String> getEmails(Integer userId, boolean active);