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