首页>代码>spring boot整合WebSocket实现多人聊天室的实例>/spring-boot-websocket-chat-demo/src/main/java/com/example/websocketdemo/model/ChatMessage.java
package com.example.websocketdemo.model;

/**
 * Created by rajeevkumarsingh on 24/07/17.
 */
public class ChatMessage {
    private MessageType type;
    private String content;
    private String sender;

    public enum MessageType {
        CHAT,
        JOIN,
        LEAVE
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }
}
最近下载更多
JiangYing009  LV8 4月23日
shuangfu  LV24 2023年10月19日
ssh123  LV10 2023年8月29日
西瓜哥哥  LV4 2023年8月9日
yybb7435100  LV2 2023年8月7日
aaaabbbb  LV1 2023年6月2日
dixiu000  LV4 2023年3月1日
笑得很美  LV11 2023年2月8日
312716  LV1 2022年12月19日
nanqindaxia  LV2 2022年12月5日
最近浏览更多
wanglinddad  LV54 3月26日
xiaozhi丶  LV14 3月24日
zolscy  LV12 3月21日
Xiaobaiya11  LV2 3月4日
玖零定制问题修复  LV34 3月3日
dafeiyu  LV10 3月1日
lilong007  LV20 3月1日
阿凡达  LV9 2月29日
heanan 1月18日
暂无贡献等级
axdfer 1月4日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友