com.firefly.wechat.service.WechatMessageService Maven / Gradle / Ivy
package com.firefly.wechat.service;
import com.firefly.server.http2.router.RoutingContext;
import com.firefly.utils.function.Action1;
import com.firefly.utils.function.Action2;
import com.firefly.utils.function.Action3;
import com.firefly.wechat.model.EchoRequest;
import com.firefly.wechat.model.message.*;
/**
* @author Pengtao Qiu
*/
public interface WechatMessageService {
boolean verifyEchoString(EchoRequest request);
String encryptMessage(String reply, Long timeStamp, String nonce);
String getWechatToken();
String getAesKey();
String getAppId();
void onRequest(RoutingContext ctx);
void addTextMessageListener(Action3 action);
void addImageMessageListener(Action3 action);
void addVoiceMessageListener(Action3 action);
void addVideoMessageListener(Action3 action);
void addLocationMessageListener(Action3 action);
void addLinkMessageListener(Action3 action);
void addSubscribedMessageListener(Action3 action);
void addUnsubscribedMessageListener(Action3 action);
void addScanMessageListener(Action3 action);
void addClickMessageListener(Action3 action);
void addViewMessageListener(Action3 action);
void addReportLocationMessageListener(Action3 action);
void addEchoStringListener(Action2 action);
void addOtherRequestListener(Action1 action);
}