-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add notification actions support 🎉
- Loading branch information
1 parent
0740f13
commit 9f9476e
Showing
3 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
app/src/main/java/com/edricchan/studybuddy/interfaces/NotificationAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
package com.edricchan.studybuddy.interfaces; | ||
|
||
public class NotificationAction { | ||
private String mAction; | ||
private String mActionType; | ||
private String mActionIcon; | ||
public String action; | ||
public String actionType; | ||
public String actionIcon; | ||
|
||
public NotificationAction() { | ||
|
||
} | ||
public NotificationAction(NotificationAction notificationAction) { | ||
this.mAction = notificationAction.getAction(); | ||
this.mActionType = notificationAction.getActionType(); | ||
this.mActionIcon = notificationAction.getActionIcon(); | ||
this.action = notificationAction.getAction(); | ||
this.actionType = notificationAction.getActionType(); | ||
this.actionIcon = notificationAction.getActionIcon(); | ||
} | ||
public NotificationAction(String action, String actionType, String actionIcon) { | ||
this.mAction = action; | ||
this.mActionType = actionType; | ||
this.mActionIcon = actionIcon; | ||
this.action = action; | ||
this.actionType = actionType; | ||
this.actionIcon = actionIcon; | ||
} | ||
|
||
public String getAction() { | ||
return this.mAction; | ||
return this.action; | ||
} | ||
|
||
public String getActionIcon() { | ||
return this.mActionIcon; | ||
return this.actionIcon; | ||
} | ||
|
||
public String getActionType() { | ||
return this.mActionType; | ||
return this.actionType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters