mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-18 12:57:39 +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;
|
private InteractionService interactionService;
|
||||||
|
|
||||||
public static final String VOTE_REMOVED_TEMPLATE_KEY = "suggestion_vote_removed_notification";
|
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
|
@Override
|
||||||
public ButtonClickedListenerResult execute(ButtonClickedListenerModel model) {
|
public ButtonClickedListenerResult execute(ButtonClickedListenerModel model) {
|
||||||
@@ -39,8 +40,10 @@ public class SuggestionButtonVoteClickedListener implements ButtonClickedListene
|
|||||||
String templateToUse;
|
String templateToUse;
|
||||||
switch (payload.getDecision()) {
|
switch (payload.getDecision()) {
|
||||||
case AGREE:
|
case AGREE:
|
||||||
|
templateToUse = VOTE_AGREEMENT_TEMPLATE_KEY;
|
||||||
|
break;
|
||||||
case DISAGREE:
|
case DISAGREE:
|
||||||
templateToUse = VOTE_CAST_TEMPLATE_KEY;
|
templateToUse = VOTE_DISAGREEMENT_TEMPLATE_KEY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case REMOVE_VOTE:
|
case REMOVE_VOTE:
|
||||||
|
|||||||
Reference in New Issue
Block a user