Added the ResponderContext to the ChatCommand & the GroupCommand
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package de.gnmyt.autoresponder.entities;
|
||||
|
||||
import de.gnmyt.autoresponder.http.contexts.ResponderContext;
|
||||
import de.gnmyt.autoresponder.http.controller.HttpResponseController;
|
||||
|
||||
public class GroupCommand extends Command {
|
||||
@ -11,6 +12,8 @@ public class GroupCommand extends Command {
|
||||
/**
|
||||
* Constructor of the {@link GroupCommand}
|
||||
*
|
||||
* @param controller The response controller
|
||||
* @param context The responder context
|
||||
* @param appPackageName The package name of the responder app
|
||||
* @param messengerPackageName The package name of the messenger
|
||||
* @param ruleId The id of the rule
|
||||
@ -18,8 +21,8 @@ public class GroupCommand extends Command {
|
||||
* @param message The message itself
|
||||
* @param sender The sender that sent the message
|
||||
*/
|
||||
public GroupCommand(HttpResponseController controller, String appPackageName, String messengerPackageName, int ruleId, String group, String message, String sender) {
|
||||
super(controller, appPackageName, messengerPackageName, ruleId);
|
||||
public GroupCommand(HttpResponseController controller, ResponderContext context, String appPackageName, String messengerPackageName, int ruleId, String group, String message, String sender) {
|
||||
super(controller, context, appPackageName, messengerPackageName, ruleId);
|
||||
this.group = group;
|
||||
this.message = message;
|
||||
this.sender = sender;
|
||||
|
Reference in New Issue
Block a user