mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-17 19:24:45 +00:00
[AB-331] showing separate notifications for the decision on a suggestion
This commit is contained in:
@@ -28,7 +28,8 @@ public class SuggestionButtonVoteClickedListener implements ButtonClickedListene
|
||||
private InteractionService interactionService;
|
||||
|
||||
public static final String VOTE_REMOVED_TEMPLATE_KEY = "suggestion_vote_removed_notification";
|
||||
public static final String VOTE_CAST_TEMPLATE_KEY = "suggestion_vote_cast_notification";
|
||||
public static final String VOTE_AGREEMENT_TEMPLATE_KEY = "suggestion_vote_agreement_notification";
|
||||
public static final String VOTE_DISAGREEMENT_TEMPLATE_KEY = "suggestion_vote_disagreement_notification";
|
||||
|
||||
@Override
|
||||
public ButtonClickedListenerResult execute(ButtonClickedListenerModel model) {
|
||||
@@ -39,8 +40,10 @@ public class SuggestionButtonVoteClickedListener implements ButtonClickedListene
|
||||
String templateToUse;
|
||||
switch (payload.getDecision()) {
|
||||
case AGREE:
|
||||
templateToUse = VOTE_AGREEMENT_TEMPLATE_KEY;
|
||||
break;
|
||||
case DISAGREE:
|
||||
templateToUse = VOTE_CAST_TEMPLATE_KEY;
|
||||
templateToUse = VOTE_DISAGREEMENT_TEMPLATE_KEY;
|
||||
break;
|
||||
default:
|
||||
case REMOVE_VOTE:
|
||||
|
||||
Reference in New Issue
Block a user