1.0
This commit is contained in:
26
旧的java项目/itcast/message/ChatResponseMessage.java
Normal file
26
旧的java项目/itcast/message/ChatResponseMessage.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package cn.itcast.message;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
public class ChatResponseMessage extends AbstractResponseMessage {
|
||||
|
||||
private String from;
|
||||
private String content;
|
||||
|
||||
public ChatResponseMessage(boolean success, String reason) {
|
||||
super(success, reason);
|
||||
}
|
||||
|
||||
public ChatResponseMessage(String from, String content) {
|
||||
this.from = from;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMessageType() {
|
||||
return ChatResponseMessage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user