| Package | Description |
|---|---|
| com.aliyun.mns.model |
| Modifier and Type | Method and Description |
|---|---|
static Message.MessageBodyType |
Message.MessageBodyType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.MessageBodyType[] |
Message.MessageBodyType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Message.setMessageBody(byte[] messageBody,
Message.MessageBodyType bodyType)
设置消息体,二进制类型
MessageBodyType 为 RAW_STRING时,原String仅支持UTF-8编码
|
void |
Message.setMessageBody(String messageBody,
Message.MessageBodyType bodyType)
设置消息体,指定消息体的类型
MessageBodyType 为 RawString 时,使用UTF-8编码
|
Copyright © 2024. All Rights Reserved.