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 DetectionApi
detectionApi()
DetectionApi
detects the language of the specified text.LanguageApi
languageApi()
LanguageApi
allows to get information about available languages.TranslationApi
translationApi()
TranslationApi
allows 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()
LanguageApi
allows to get information about available languages.- Specified by:
languageApi
in interfaceYTranslateApi
- Returns:
- language API service
-
detectionApi
@Nonnull public DetectionApi detectionApi()
DetectionApi
detects the language of the specified text.- Specified by:
detectionApi
in interfaceYTranslateApi
- Returns:
- detection API service
-
translationApi
@Nonnull public TranslationApi translationApi()
TranslationApi
allows to translate text from one language to another.- Specified by:
translationApi
in interfaceYTranslateApi
- Returns:
- translation API service
-
-