|
@@ -1,43 +1,57 @@
|
|
|
package com.ym.pojo;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import io.rong.messages.BaseMessage;
|
|
|
|
|
|
public class CustomMessage extends BaseMessage {
|
|
|
- private String content = "";
|
|
|
- private String extra = "";
|
|
|
- private String TYPE = "";
|
|
|
+ private Boolean enable;
|
|
|
+ private int customType;
|
|
|
+ private int rate;
|
|
|
+ private int userId;
|
|
|
|
|
|
- public CustomMessage(String content, String extra) {
|
|
|
- this.content = content;
|
|
|
- this.extra = extra;
|
|
|
+ public Boolean getEnable() {
|
|
|
+ return enable;
|
|
|
}
|
|
|
|
|
|
- public void setTYPE(String TYPE) {
|
|
|
- this.TYPE = TYPE;
|
|
|
+ public void setEnable(Boolean enable) {
|
|
|
+ this.enable = enable;
|
|
|
}
|
|
|
|
|
|
- public String getType() {
|
|
|
- return TYPE;
|
|
|
+ public int getCustomType() {
|
|
|
+ return customType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomType(int customType) {
|
|
|
+ this.customType = customType;
|
|
|
}
|
|
|
|
|
|
- public String getContent() {
|
|
|
- return this.content;
|
|
|
+ public int getRate() {
|
|
|
+ return rate;
|
|
|
}
|
|
|
|
|
|
- public void setContent(String content) {
|
|
|
- this.content = content;
|
|
|
+ public void setRate(int rate) {
|
|
|
+ this.rate = rate;
|
|
|
}
|
|
|
|
|
|
- public String getExtra() {
|
|
|
- return this.extra;
|
|
|
+ public int getUserId() {
|
|
|
+ return userId;
|
|
|
}
|
|
|
|
|
|
- public void setExtra(String extra) {
|
|
|
- this.extra = extra;
|
|
|
+ public void setUserId(int userId) {
|
|
|
+ this.userId = userId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getType() {
|
|
|
+ return "DY:PlayMidiMessage";
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public String toString() {
|
|
|
- return JSONObject.toJSONString(this);
|
|
|
+ return "CustomMessage{" +
|
|
|
+ "enable=" + enable +
|
|
|
+ ", customType=" + customType +
|
|
|
+ ", rate=" + rate +
|
|
|
+ ", userId=" + userId +
|
|
|
+ '}';
|
|
|
}
|
|
|
}
|