Package io.rong.imlib.model

## Class TranslateTextParam

- All Implemented Interfaces:

      public class TranslateTextParam

  翻译文本参数

  Since:

    5.24.0

  Author:

    rongcloud

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `text` |
    `public String` | `sourceLanguage` |
    `public String` | `targetLanguage` |
    `public final static Creator<TranslateTextParam>` | `CREATOR` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TranslateTextParam()` |
    `TranslateTextParam(String text)` |
    `TranslateTextParam(String text, String sourceLanguage, String targetLanguage)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getText()` | 获取待翻译内容
    `void` | `setText(String text)` | 设置待翻译内容
    `String` | `getSourceLanguage()` | 获取源语言
    `void` | `setSourceLanguage(String sourceLanguage)` | 设置源语言
    `String` | `getTargetLanguage()` | 获取目标语言
    `void` | `setTargetLanguage(String targetLanguage)` | 设置目标语言
    `void` | `writeToParcel(Parcel dest, int flags)` |
    `int` | `describeContents()` |
    `final String` | `getIdentifier()` | 获取标识符，用于匹配翻译结果（计算text的hash值）
    `String` | `toString()` |

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

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

- - ### Constructor Detail

    - #### TranslateTextParam

          TranslateTextParam()

    - #### TranslateTextParam

          TranslateTextParam(String text)

    - #### TranslateTextParam

          TranslateTextParam(String text, String sourceLanguage, String targetLanguage)

  - ### Method Detail

    - #### getText

           String getText()

      获取待翻译内容

      Returns:

        待翻译内容

    - #### setText

           void setText(String text)

      设置待翻译内容

      Parameters:
        `text` - 待翻译内容

    - #### getSourceLanguage

           String getSourceLanguage()

      获取源语言

      Returns:

        源语言

    - #### setSourceLanguage

           void setSourceLanguage(String sourceLanguage)

      设置源语言

      Parameters:
        `sourceLanguage` - 源语言

    - #### getTargetLanguage

           String getTargetLanguage()

      获取目标语言

      Returns:

        目标语言

    - #### setTargetLanguage

           void setTargetLanguage(String targetLanguage)

      设置目标语言

      Parameters:
        `targetLanguage` - 目标语言

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)

    - #### describeContents

           int describeContents()

    - #### getIdentifier

           final String getIdentifier()

      获取标识符，用于匹配翻译结果（计算text的hash值）

      Returns:

        标识符

    - #### toString

           String toString()