Package io.rong.imlib.model

## Class TranslateItem

- All Implemented Interfaces:

      public class TranslateItem

  翻译结果项

  Since:

    5.24.0

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `TranslateItem.TranslateResultType` | 翻译结果类型枚举

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `identifier` |
    `public TranslateItem.TranslateResultType` | `from` |
    `public IRongCoreEnum.CoreErrorCode` | `code` |
    `public TranslateInfo` | `translateInfo` |
    `public final static Creator<TranslateItem>` | `CREATOR` |

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getIdentifier()` | 获取翻译内容标识
    `void` | `setIdentifier(String identifier)` | 设置翻译内容标识
    `TranslateItem.TranslateResultType` | `getFrom()` | 获取内容来源类型
    `void` | `setFrom(TranslateItem.TranslateResultType from)` | 设置内容来源类型
    `IRongCoreEnum.CoreErrorCode` | `getCode()` | 获取状态码
    `void` | `setCode(IRongCoreEnum.CoreErrorCode code)` | 设置状态码
    `TranslateInfo` | `getTranslateInfo()` | 获取翻译信息
    `void` | `setTranslateInfo(TranslateInfo translateInfo)` | 设置翻译信息
    `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

    - #### TranslateItem

          TranslateItem()

  - ### Method Detail

    - #### getIdentifier

           String getIdentifier()

      获取翻译内容标识

      Returns:

        翻译内容标识

    - #### setIdentifier

           void setIdentifier(String identifier)

      设置翻译内容标识

      Parameters:
        `identifier` - 翻译内容标识

    - #### getFrom

           TranslateItem.TranslateResultType getFrom()

      获取内容来源类型

      Returns:

        内容来源类型

    - #### setFrom

           void setFrom(TranslateItem.TranslateResultType from)

      设置内容来源类型

      Parameters:
        `from` - 内容来源类型

    - #### getCode

           IRongCoreEnum.CoreErrorCode getCode()

      获取状态码

      Returns:

        状态码

    - #### setCode

           void setCode(IRongCoreEnum.CoreErrorCode code)

      设置状态码

      Parameters:
        `code` - 状态码

    - #### getTranslateInfo

           TranslateInfo getTranslateInfo()

      获取翻译信息

      Returns:

        翻译信息

    - #### setTranslateInfo

           void setTranslateInfo(TranslateInfo translateInfo)

      设置翻译信息

      Parameters:
        `translateInfo` - 翻译信息

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)

    - #### describeContents

           int describeContents()

    - #### toString

           String toString()