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

me.hao0.wechat.model.message.receive.event.RecvSubscribeEvent Maven / Gradle / Ivy

There is a newer version: 1.9.4
Show newest version
package me.hao0.wechat.model.message.receive.event;

/**
 * 关注事件
 * Author: haolin
 * Email: [email protected]
 * Date: 9/11/15
 */
public class RecvSubscribeEvent extends RecvEvent {

    /**
     * 事件KEY值,是一个32位无符号整数,即创建二维码时的二维码scene_id
     */
    private String eventKey;

    /**
     * 二维码的ticket,可用来换取二维码图片
     */
    private String ticket;

    public RecvSubscribeEvent(RecvEvent e){
        super(e);
        this.eventType = e.eventType;
    }

    @Override
    public String getEventType() {
        return RecvEventType.SUBSCRIBE.value();
    }

    public String getEventKey() {
        return eventKey;
    }

    public void setEventKey(String eventKey) {
        this.eventKey = eventKey;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    @Override
    public String toString() {
        return "RecvSubcribeEvent{" +
                "eventKey='" + eventKey + '\'' +
                ", ticket='" + ticket + '\'' +
                "} " + super.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy