1####################################################################
2# TranslatorInterface.awk                                          #
3####################################################################
4
5# Abstract method foobarInit(): ()
6function _Init(    vm) {
7    vm = engineMethod("Init")
8    return @vm()
9}
10
11# Abstract method foobarRequestUrl(text, sl, tl, hl: string): string
12function _RequestUrl(text, sl, tl, hl,    vm) {
13    vm = engineMethod("RequestUrl")
14    return @vm(text, sl, tl, hl)
15}
16
17# Abstract method foobarPostRequestUrl(text, sl, tl, hl, type: string): string
18function _PostRequestUrl(text, sl, tl, hl, type,    vm) {
19    vm = engineMethod("PostRequestUrl")
20    return @vm(text, sl, tl, hl, type)
21}
22
23# Abstract method foobarPostRequestContentType(text, sl, tl, hl, type: string): string
24function _PostRequestContentType(text, sl, tl, hl, type,    vm) {
25    vm = engineMethod("PostRequestContentType")
26    return @vm(text, sl, tl, hl, type)
27}
28
29# Abstract method foobarPostRequestUserAgent(text, sl, tl, hl, type: string): string
30function _PostRequestUserAgent(text, sl, tl, hl, type,    vm) {
31    vm = engineMethod("PostRequestUserAgent")
32    return @vm(text, sl, tl, hl, type)
33}
34
35# Abstract method foobarPostRequestBody(text, sl, tl, hl, type: string): string
36function _PostRequestBody(text, sl, tl, hl, type,    vm) {
37    vm = engineMethod("PostRequestBody")
38    return @vm(text, sl, tl, hl, type)
39}
40
41# Abstract method foobarTTSUrl(text, tl: string): string
42function _TTSUrl(text, tl,    vm) {
43    vm = engineMethod("TTSUrl")
44    return @vm(text, tl)
45}
46
47# Abstract method foobarWebTranslateUrl(uri, sl, tl, hl: string): string
48function _WebTranslateUrl(uri, sl, tl, hl,    vm) {
49    vm = engineMethod("WebTranslateUrl")
50    return @vm(uri, sl, tl, hl)
51}
52
53# Abstract method foobarTranslate(text, sl, tl, hl: string,
54#                                 isVerbose, toSpeech: boolean,
55#                                 returnPlaylist, returnIl: array): string
56function _Translate(text, sl, tl, hl,
57                    isVerbose, toSpeech, returnPlaylist, returnIl,
58                    ####
59                    vm) {
60    vm = engineMethod("Translate")
61    return @vm(text, sl, tl, hl,
62               isVerbose, toSpeech, returnPlaylist, returnIl)
63}
64