public class Message extends Object
| 构造器和说明 |
|---|
Message(MessageType messageType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
MessageType |
getMessageType()
Gets message type.
|
void |
setMessageType(MessageType messageType)
Sets message type.
|
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
String |
toString() |
public Message(MessageType messageType)
public MessageType getMessageType()
public void setMessageType(MessageType messageType)
messageType - the message typepublic byte[] toRlp()
public void fromRlp(RlpList list)
list - the rlp bytespublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
jsonObject - the json objectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
jsonObject - the json objectCopyright © 2022. All rights reserved.