Created the CommandData entity
This commit is contained in:
parent
6085e29b75
commit
bb818d057f
@ -0,0 +1,49 @@
|
||||
package de.gnmyt.autoresponder.entities;
|
||||
|
||||
public class CommandData {
|
||||
|
||||
private final String appPackageName;
|
||||
private final String messengerPackageName;
|
||||
|
||||
private final int ruleId;
|
||||
|
||||
/**
|
||||
* Constructor of the {@link CommandData}
|
||||
*
|
||||
* @param appPackageName The package name of the responder app
|
||||
* @param messengerPackageName The package name of the messenger
|
||||
* @param ruleId The id of the rule
|
||||
*/
|
||||
public CommandData(String appPackageName, String messengerPackageName, int ruleId) {
|
||||
this.appPackageName = appPackageName;
|
||||
this.messengerPackageName = messengerPackageName;
|
||||
this.ruleId = ruleId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the app package name
|
||||
*
|
||||
* @return the app package name
|
||||
*/
|
||||
public String getAppPackageName() {
|
||||
return appPackageName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the messenger package name
|
||||
*
|
||||
* @return the messenger package name
|
||||
*/
|
||||
public String getMessengerPackageName() {
|
||||
return messengerPackageName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the rule id
|
||||
*
|
||||
* @return the rule id
|
||||
*/
|
||||
public int getRuleId() {
|
||||
return ruleId;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user