com.lindar.webpurify.api.admin.AbstractAdminResource Maven / Gradle / Ivy
package com.lindar.webpurify.api.admin;
import com.lindar.webpurify.api.AbstractResource;
import com.lindar.webpurify.util.Messages;
import com.lindar.webpurify.util.configs.WebPurifyConfigs;
import com.lindar.wellrested.vo.Result;
abstract class AbstractAdminResource extends AbstractResource {
AbstractAdminResource(WebPurifyConfigs webPurifyConfigs) {
super(webPurifyConfigs);
}
Result addWord(String method, String word) {
return sendRequest(buildFormParamsMap(method, word), Messages.SUCCESS.WORD_ADDED);
}
Result removeWord(String method, String word) {
return sendRequest(buildFormParamsMap(method, word), Messages.SUCCESS.WORD_REMOVED);
}
Result listWords(String method) {
return sendRequest(buildFormParamsMap(method), Messages.SUCCESS.WORDS_FETCHED);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy