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

net.mossol.bot.model.LineRequest Maven / Gradle / Ivy

There is a newer version: 0.0.3.8
Show newest version
package net.mossol.bot.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Created by Amos.Doan.Mac on 2017. 12. 3..
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class LineRequest {
    private List events = new ArrayList<>();
    private String destination;

    @Data
    public static class Event {
        private String replyToken;
        private String type;
        private String timestamp;
        private Source source;
        private Message message;
    }

    @Data
    public static class Source {
        private String type;
        private String userId;
        private String groupId;
        private String roomId;
    }

    @Data
    public static class Message {
        private String id;
        private String type;
        private String text;
        private String packageId;
        private String stickerId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy