62 lines
1.2 KiB
Java
62 lines
1.2 KiB
Java
package plugin.config;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* @author SLHAF
|
|
*/
|
|
public class Config {
|
|
private Long owner;
|
|
private ArrayList<Long> blacklistGroupIds = new ArrayList<>();
|
|
|
|
public Config() {
|
|
}
|
|
|
|
public Config(Long owner, ArrayList<Long> blacklistGroupIds) {
|
|
this.owner = owner;
|
|
this.blacklistGroupIds = blacklistGroupIds;
|
|
}
|
|
|
|
/**
|
|
* 获取
|
|
*
|
|
* @return owner
|
|
*/
|
|
public Long getOwner() {
|
|
return owner;
|
|
}
|
|
|
|
/**
|
|
* 设置
|
|
*
|
|
* @param owner
|
|
*/
|
|
public void setOwner(Long owner) {
|
|
this.owner = owner;
|
|
}
|
|
|
|
/**
|
|
* 获取
|
|
*
|
|
* @return blacklistGroupIds
|
|
*/
|
|
public ArrayList<Long> getBlacklistGroupIds() {
|
|
return blacklistGroupIds;
|
|
}
|
|
|
|
/**
|
|
* 设置
|
|
*
|
|
* @param blacklistGroupIds
|
|
*/
|
|
public void setBlacklistGroupIds(ArrayList<Long> blacklistGroupIds) {
|
|
this.blacklistGroupIds = blacklistGroupIds;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "owner: " + owner + ", blacklistGroups: " + Arrays.toString(blacklistGroupIds.toArray());
|
|
}
|
|
}
|