package com.izouma.dingdong.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.Data;

@Data
public class Send {

    @JSONField(name = "To_Account")
    private String toAccount;

    @JSONField(name = "MsgRandom")
    private Integer msgRandom;

    @JSONField(name = "MsgBody")
    private MsgBody[] msgBody;

    @JSONField(name = "SyncOtherMachine")
    private Integer syncOtherMachine;

    @Builder
    @Data
    public static class MsgBody {
        @JSONField(name = "MsgType")
        private String msgType;

        @JSONField(name = "MsgContent")
        private MsgContent msgContent;

        @Builder
        @Data
        public static class MsgContent {
            @JSONField(name = "Text")
            private String text;
        }
    }
}
