BlockMessage

public class BlockMessage

拦截消息

命令消息类,此消息不存储不计入未读消息数

发送消息中因含有敏感词,server下发的命令消息

Created by yanke on 2021/7/12

Constructors

Link copied to clipboard
public void BlockMessage(Array<byte> data)
public void BlockMessage(Parcel source)

Properties

Link copied to clipboard
public String blockMsgUId
被拦截的消息 Id
Link copied to clipboard
public final static Creator<BlockMessage> CREATOR
Link copied to clipboard
public String sourceContent
源内容。sourceType = 1/2 时返回;1 消息内容,2 扩展内容 目前只支持超级群*
Link copied to clipboard
public int sourceType
消息源触发类型。0 默认,原始消息;1 消息修改;2 消息扩展 目前只支持超级群*

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public Array<byte> encode()
Link copied to clipboard
public String getBlockMsgUId()
Link copied to clipboard
public MessageBlockType getInterceptType()
Link copied to clipboard
public String getSourceContent()
Link copied to clipboard
public int getSourceType()
Link copied to clipboard
public void setBlockMsgUId(String blockMsgUId)
Link copied to clipboard
public void setInterceptType(MessageBlockType type)
Link copied to clipboard
public void setSourceContent(String sourceContent)
Link copied to clipboard
public void setSourceType(int sourceType)
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)