# TranslateItem

public class TranslateItem

翻译结果项

#### Author

rongcloud

#### Since

5.24.0

## Constructors

TranslateItem
Link copied to clipboard
public void TranslateItem()

## Types

TranslateResultType
Link copied to clipboard
public enum TranslateResultType
翻译结果类型枚举

## Properties

code
Link copied to clipboard
public IRongCoreEnum.CoreErrorCode code
状态码，当值为 ErrorCode.
CREATOR
Link copied to clipboard
public final static Creator<TranslateItem> CREATOR
from
Link copied to clipboard
public TranslateItem.TranslateResultType from
内容来源类型
identifier
Link copied to clipboard
public String identifier
翻译内容标识：消息的 UId 或内容的 hash
translateInfo
Link copied to clipboard
public TranslateInfo translateInfo
翻译信息

## Functions

describeContents
Link copied to clipboard
public int describeContents()
getCode
Link copied to clipboard
public IRongCoreEnum.CoreErrorCode getCode()
获取状态码
getFrom
Link copied to clipboard
public TranslateItem.TranslateResultType getFrom()
获取内容来源类型
getIdentifier
Link copied to clipboard
public String getIdentifier()
获取翻译内容标识
getTranslateInfo
Link copied to clipboard
public TranslateInfo getTranslateInfo()
获取翻译信息
setCode
Link copied to clipboard
public void setCode(IRongCoreEnum.CoreErrorCode code)
设置状态码
setFrom
Link copied to clipboard
public void setFrom(TranslateItem.TranslateResultType from)
设置内容来源类型
setIdentifier
Link copied to clipboard
public void setIdentifier(String identifier)
设置翻译内容标识
setTranslateInfo
Link copied to clipboard
public void setTranslateInfo(TranslateInfo translateInfo)
设置翻译信息
toString
Link copied to clipboard
public String toString()
writeToParcel
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)