package thyyxxk.webserver.http.websocket.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArchiveSocketParam {

    /**
     * 房间的id 一般是患者的住院次数加住院号
     */
    private String roomCode;

    /**
     * 发送的消息
     */
    private String msg;

    public static ArchiveSocketParam of(String roomCode, String msg) {
        return new ArchiveSocketParam(roomCode, msg);
    }
}
