All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.uouo.wechat.api.annotation.Bind Maven / Gradle / Ivy

The newest version!
package io.uouo.wechat.api.annotation;

import io.uouo.wechat.api.enums.AccountType;
import io.uouo.wechat.api.enums.MsgType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 绑定消息监听注解
 * 

* 用于在机器人实现类中实现某类消息的回调 * * @author biezhi * @since 2018/1/19 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Bind { /** * 接受聊天的消息类型 * * */ MsgType[] msgType() default {MsgType.TEXT}; /** * 接受聊天的账户类型 * * */ AccountType[] accountType() default {AccountType.TYPE_FRIEND, AccountType.TYPE_GROUP}; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy