Public Member Functions | |
V2TIMElem | getNextElem () |
void | appendElem (V2TIMElem v2TIMElem) |
|
inline |
|
inline |
Add the next element
To configure multiple elements, you can add the next element via the element of a Message object after creating the Message object.
The following is the sample code for creating V2TIMTextElem and V2TIMCustomElem elements:
V2TIMMessage message = V2TIMManager.getMessageManager().createTextMessage("test");
V2TIMCustomElem customElem = new V2TIMCustomElem();
customElem.setData("Custom message".getBytes());
message.getTextElem().appendElem(customElem);