Assets/Watson/Scripts/Services/LanguageTranslation/LanguageTranslation.cs
/// <summary>
/// Get a specific model by it's ID.
/// </summary>
/// <param name="model_id"></param>
/// <param name="callback"></param>
/// <returns></returns>
Get a specific model by it's ID.
Get a specific model by it ' s ID .
public bool GetModel(string model_id, GetModelCallback callback)
        {
            if (string.IsNullOrEmpty(model_id))
                throw new ArgumentNullException("model_id");
            if (callback == null)
                throw new ArgumentNullException("callback");
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, "/v2/models/");
            if (connector == null)
                return false;
            GetModelReq req = new GetModelReq();
            req.Callback = callback;
            req.Function = WWW.EscapeURL(model_id);
            req.OnResponse = GetModelResponse;
            return connector.Send(req);
        }
public bool GetModel ( string model_id , GetModelCallback callback ) { if ( string . IsNullOrEmpty ( model_id ) ) throw new ArgumentNullException ( " " ) ; if ( callback == null ) throw new ArgumentNullException ( " " ) ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , " " ) ; if ( connector == null ) return false ; GetModelReq req = new GetModelReq ( ) ; req . Callback = callback ; req . Function = WWW . EscapeURL ( model_id ) ; req . OnResponse = GetModelResponse ; return connector . Send ( req ) ; }
Get a specific model by it's ID.
Get a specific model by it ' s ID .
None
model_id
string
None
callback
GetModelCallback
None