com.haoxuer.discover.plug.api.PushPlugin Maven / Gradle / Ivy
package com.haoxuer.discover.plug.api;
import com.haoxuer.discover.plug.data.vo.PushBack;
import java.util.Map;
import org.apache.commons.lang3.builder.EqualsBuilder;
public abstract class PushPlugin extends IPlugin {
/**
* 给所有人推送消息.
*
* @param msg 消息
* @return
*/
public abstract PushBack pushAll(String msg, Map keys);
public abstract PushBack pushToSingleDevice(String chanel, String msg, Map keys);
public abstract PushBack pushToTag(String tag, String msg, Map keys);
public abstract PushBack pushToChannels(String[] chanels, String msg, Map keys);
@Override
public String getBaseUrl() {
return "admin/plugin_push/";
}
@Override
public String getAuthor() {
return "ada.young";
}
@Override
public String getSiteUrl() {
return "http://www.haoxuer.com";
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
if (this == obj) {
return true;
}
StoragePlugin other = (StoragePlugin) obj;
return new EqualsBuilder().append(getId(), other.getId()).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy