package com.tuling.tim.client.vo.req;


import com.tuling.tim.common.req.BaseRequest;

import javax.validation.constraints.NotNull;

/**
 * 群发请求
 *
 * @since JDK 1.8
 */
public class GroupReqVO extends BaseRequest {

    @NotNull(message = "userId 不能为空")
    //消息发送者的 userId
    private Long userId;

    @NotNull(message = "msg 不能为空")
    private String msg;

    public GroupReqVO(Long userId, String msg) {
        this.userId = userId;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "GroupReqVO{" +
                "userId=" + userId +
                ", msg='" + msg + '\'' +
                "} " + super.toString();
    }
}
