Package io.rong.message

## Class ReferenceMessage

- All Implemented Interfaces:

      public class ReferenceMessage

  引用消息 (支持 文本，图片，文件，图文) Created by JL on 2018/3/28.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### 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)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### 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)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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` - 用户 id
        `referMsg` - 被引用消息体
      Returns:

        ReferenceMessage 引用消息

    - #### obtainMessage

           static ReferenceMessage obtainMessage(String userId, MessageContent referMsg, String referMsgUid)

      构造引用消息

      Parameters:
        `userId` - 被引用消息的发送者id
        `referMsg` - 被引用消息体
        `referMsgUid` - 被引用消息的Uid
      Returns:

        ReferenceMessage 引用消息

    - #### encode

           Array<byte> encode()

    - #### 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)