/*
 * Copyright (c) 2020. Lemon Healthcare
 *
 *
 */

package com.lemonhc.mplus.httpRequest.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

/**
 * 챗봇 request.
 * @author sunghee kang
 * @since 2020.02.03
 */
@Getter
@Setter
@RequiredArgsConstructor
public class ChatBotReq {

    public String version = "v2";
    @NonNull
    public String userId;
    @NonNull
    @SerializedName("bubbles")
    public List<Bubbles> bubbles;
    @NonNull
    public String event = "send";
    @NonNull
    public Long timestamp;

    @RequiredArgsConstructor
    public static class Bubbles {
        @NonNull
        public String type = "text";
        @NonNull
        public Data data;
    }

    @RequiredArgsConstructor
    public static class Data {
        @NonNull
        String description;
    }

}