Package io.rong.message
Class ReferenceMessage
-
- All Implemented Interfaces:
public class ReferenceMessage
引用消息 (支持 文本,图片,文件,图文) Created by JL on 2018/3/28.
-
-
Field Summary
Fields Modifier and Type Field Description public String
referMsgUid
public final static Creator<ReferenceMessage>
CREATOR
-
Constructor Summary
Constructors Constructor Description ReferenceMessage(Array<byte> data)
将数据解码 ReferenceMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description String
getReferMsgUid()
void
setReferMsgUid(String referMsgUid)
static ReferenceMessage
obtainMessage(String userId, MessageContent referMsg)
构造引用消息 static ReferenceMessage
obtainMessage(String userId, MessageContent referMsg, String referMsgUid)
构造引用消息 Array<byte>
encode()
void
writeToParcel(Parcel dest, int flags)
int
describeContents()
List<String>
getSearchableWord()
搜索引用消息 MessageContent
getReferenceContent()
void
setContent(MessageContent referMsg)
Uri
getLocalPath()
Uri
getMediaUrl()
void
setMediaUrl(Uri mMediaUrl)
void
setLocalPath(Uri mLocalPath)
String
getName()
void
setName(String name)
String
getEditSendText()
void
setEditSendText(String referenceContent)
ReferenceMessage
buildSendText(String content)
String
getUserId()
void
setUserId(String userId)
-
-
Constructor Detail
-
ReferenceMessage
ReferenceMessage(Array<byte> data)
将数据解码- Parameters:
data
- byte 数组
-
ReferenceMessage
ReferenceMessage(Parcel in)
-
-
Method Detail
-
getReferMsgUid
String getReferMsgUid()
-
setReferMsgUid
void setReferMsgUid(String referMsgUid)
-
obtainMessage
static ReferenceMessage obtainMessage(String userId, MessageContent referMsg)
构造引用消息
- Parameters:
userId
- 用户 idreferMsg
- 被引用消息体- Returns:
ReferenceMessage 引用消息
-
obtainMessage
static ReferenceMessage obtainMessage(String userId, MessageContent referMsg, String referMsgUid)
构造引用消息
- Parameters:
userId
- 被引用消息的发送者idreferMsg
- 被引用消息体referMsgUid
- 被引用消息的Uid- Returns:
ReferenceMessage 引用消息
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
getSearchableWord
List<String> getSearchableWord()
搜索引用消息
- Returns:
搜索记录列表
-
getReferenceContent
MessageContent getReferenceContent()
-
setContent
void setContent(MessageContent referMsg)
-
getLocalPath
Uri getLocalPath()
-
getMediaUrl
Uri getMediaUrl()
-
setMediaUrl
void setMediaUrl(Uri mMediaUrl)
-
setLocalPath
void setLocalPath(Uri mLocalPath)
-
getName
String getName()
-
setName
void setName(String name)
-
getEditSendText
String getEditSendText()
-
setEditSendText
void setEditSendText(String referenceContent)
-
buildSendText
ReferenceMessage buildSendText(String content)
-
getUserId
String getUserId()
-
setUserId
void setUserId(String userId)
-
-
-
-