首页>代码>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; } }

痴笑只自知 LV1
2月13日
zolscy LV24
2024年11月27日
JiangYing009 LV8
2024年4月23日
shuangfu LV25
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日

PLVAE_514 LV2
3月10日
痴笑只自知 LV1
2月13日
kkkllll LV2
1月9日
haomc052829 LV4
2024年12月7日
yimaoermao LV1
2024年11月28日
ypking
2024年11月24日
暂无贡献等级
XIAXIAXIA0724 LV1
2024年10月8日
zmjjkk
2024年10月8日
暂无贡献等级
半夏bx LV14
2024年10月4日
gnnhka LV10
2024年7月6日