@Deprecated public class TestGroupMsg extends Object implements GroupMsg
Constructor and Description |
---|
TestGroupMsg()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getFont()
Deprecated.
获取消息的字体
|
String |
getGroup()
Deprecated.
获取群消息的群号
|
String |
getId()
Deprecated.
获取ID, 一般用于消息类型判断
|
String |
getMsg()
Deprecated.
一般来讲,监听到的消息大部分都会有个“消息内容”。定义此方法获取消息内容。
如果不存在,则为null。(旧版本推荐为空字符串,现在不了。我变卦了)
|
String |
getOriginalData()
Deprecated.
获取原本的数据 originalData
|
PowerType |
getPowerType()
Deprecated.
获取此人在群里的权限
|
String |
getQQ()
Deprecated.
获取群消息发送人的qq号
|
String |
getThisCode()
Deprecated.
此消息获取的时候,代表的是哪个账号获取到的消息。
|
Long |
getTime()
Deprecated.
获取到的时间, 代表某一时间的秒值。一般情况下是秒值。如果类型不对请自行转化
|
GroupMsgType |
getType()
Deprecated.
获取消息类型
|
void |
setFont(String font)
Deprecated.
|
void |
setGroup(String group)
Deprecated.
|
void |
setId(String id)
Deprecated.
|
void |
setMsg(String msg)
Deprecated.
重新设置消息
|
void |
setOriginalData(String originalData)
Deprecated.
|
void |
setPowerType(PowerType powerType)
Deprecated.
重新定义此人的权限
|
void |
setQQ(String QQ)
Deprecated.
|
void |
setThisCode(String code)
Deprecated.
允许重新定义Code以实现在存在多个机器人的时候切换处理。
|
void |
setTime(Long time)
Deprecated.
|
void |
setType(GroupMsgType type)
Deprecated.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFlag, getGroupCode, getQQCode
getTimeToLocalDateTime, setMsg
getOtherParam, getOtherParam
getCode, getCodeNumber, getQQCodeNumber
getGroupCodeNumber
public void setQQ(String QQ)
public void setGroup(String group)
public GroupMsgType getType()
GroupMsg
public void setType(GroupMsgType type)
public String getThisCode()
getThisCode
in interface ThisCodeAble
public void setThisCode(String code)
setThisCode
in interface ThisCodeAble
code
- codepublic void setId(String id)
public String getMsg()
MsgGet
public void setFont(String font)
public Long getTime()
MsgGet
public void setTime(Long time)
public String getOriginalData()
OriginalAble
getOriginalData
in interface OriginalAble
public void setOriginalData(String originalData)
public PowerType getPowerType()
getPowerType
in interface PowerAble
public void setPowerType(PowerType powerType)
setPowerType
in interface PowerAble
powerType
- 权限Copyright © 2020. All rights reserved.