Package com.github.vbauer.yta.service
Class YTranslateApiImpl
- java.lang.Object
-
- com.github.vbauer.yta.service.basic.AbstractApi
-
- com.github.vbauer.yta.service.YTranslateApiImpl
-
- All Implemented Interfaces:
YTranslateApi
@ThreadSafe public class YTranslateApiImpl extends AbstractApi implements YTranslateApi
SeeYTranslateApi.
-
-
Constructor Summary
Constructors Constructor Description YTranslateApiImpl(ApiContext context)YTranslateApiImpl(java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectionApidetectionApi()DetectionApidetects the language of the specified text.LanguageApilanguageApi()LanguageApiallows to get information about available languages.TranslationApitranslationApi()TranslationApiallows to translate text from one language to another.-
Methods inherited from class com.github.vbauer.yta.service.basic.AbstractApi
callMethod, client, converter
-
-
-
-
Constructor Detail
-
YTranslateApiImpl
public YTranslateApiImpl(@Nonnull java.lang.String key)
-
YTranslateApiImpl
public YTranslateApiImpl(@Nonnull ApiContext context)
-
-
Method Detail
-
languageApi
@Nonnull public LanguageApi languageApi()
LanguageApiallows to get information about available languages.- Specified by:
languageApiin interfaceYTranslateApi- Returns:
- language API service
-
detectionApi
@Nonnull public DetectionApi detectionApi()
DetectionApidetects the language of the specified text.- Specified by:
detectionApiin interfaceYTranslateApi- Returns:
- detection API service
-
translationApi
@Nonnull public TranslationApi translationApi()
TranslationApiallows to translate text from one language to another.- Specified by:
translationApiin interfaceYTranslateApi- Returns:
- translation API service
-
-