Package io.rong.imlib.model

## Class TranslateInfo

- All Implemented Interfaces:

      public class TranslateInfo

  翻译信息

  Since:

    5.24.0

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `TranslateInfo.TranslateStatus` | 翻译状态枚举

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `targetLanguage` |
    `public String` | `translatedText` |
    `public TranslateInfo.TranslateStatus` | `status` |
    `public final static Creator<TranslateInfo>` | `CREATOR` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TranslateInfo()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getTargetLanguage()` | 获取翻译语言
    `void` | `setTargetLanguage(String targetLanguage)` | 设置翻译语言
    `String` | `getTranslatedText()` | 获取已翻译内容
    `void` | `setTranslatedText(String translatedText)` | 设置已翻译内容
    `TranslateInfo.TranslateStatus` | `getStatus()` | 获取翻译状态
    `void` | `setStatus(TranslateInfo.TranslateStatus status)` | 设置翻译状态
    `void` | `writeToParcel(Parcel dest, int flags)` |
    `int` | `describeContents()` |
    `String` | `toString()` |

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

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

- - ### Constructor Detail

    - #### TranslateInfo

          TranslateInfo()

  - ### Method Detail

    - #### getTargetLanguage

           String getTargetLanguage()

      获取翻译语言

      Returns:

        翻译语言

    - #### setTargetLanguage

           void setTargetLanguage(String targetLanguage)

      设置翻译语言

      Parameters:
        `targetLanguage` - 翻译语言

    - #### getTranslatedText

           String getTranslatedText()

      获取已翻译内容

      Returns:

        已翻译内容

    - #### setTranslatedText

           void setTranslatedText(String translatedText)

      设置已翻译内容

      Parameters:
        `translatedText` - 已翻译内容

    - #### getStatus

           TranslateInfo.TranslateStatus getStatus()

      获取翻译状态

      Returns:

        翻译状态

    - #### setStatus

           void setStatus(TranslateInfo.TranslateStatus status)

      设置翻译状态

      Parameters:
        `status` - 翻译状态

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)

    - #### describeContents

           int describeContents()

    - #### toString

           String toString()