Assets/Watson/Scripts/Services/LanguageTranslation/LanguageTranslation.cs
/// <summary>
/// This function returns a list to the callback of all identifiable languages.
/// </summary>
/// <param name="callback">The callback to invoke with a Language array, null on error.</param>
/// <returns>Returns true if the request was submitted.</returns>
This function returns a list to the callback of all identifiable languages.
This function returns a list to the callback of all identifiable languages .
public bool GetLanguages(GetLanguagesCallback callback)
        {
            if (callback == null)
                throw new ArgumentNullException("callback");
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, "/v2/identifiable_languages");
            if (connector == null)
                return false;
            GetLanguagesReq req = new GetLanguagesReq();
            req.Callback = callback;
            req.OnResponse = GetLanguagesResponse;
            return connector.Send(req);
        }
public bool GetLanguages ( GetLanguagesCallback callback ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , " " ) ; if ( connector == null ) return false ; GetLanguagesReq req = new GetLanguagesReq ( ) ; req . Callback = callback ; req . OnResponse = GetLanguagesResponse ; return connector . Send ( req ) ; }
This function returns a list to the callback of all identifiable languages.
This function returns a list to the callback of all identifiable languages .
Returns true if the request was submitted.
Returns true if the request was submitted .
callback
GetLanguagesCallback
The callback to invoke with a Language array, null on error.
The callback to invoke with a Language array null on error .