/// <summary> /// This class allows connection to the Microsoft Translation API /// </summary> /// <param name="_options"></param> internal ApiConnecter(MtEnhancedTradosPlugin.MtTranslationOptions _options) { this.options = _options; this.cid = options.ClientID; this.cst = options.ClientSecret; if (authToken == null) authToken = getAuthToken(); //if the class variable has not been set if (supportedLangs == null) supportedLangs = getSupportedLangs(); //if the class variable has not been set }
/// <summary> /// This class allows connection to the Microsoft Translation API /// </summary> /// <param name="_options"></param> internal ApiConnecter(MtEnhancedTradosPlugin.MtTranslationOptions _options) { this.options = _options; this.cid = options.ClientID; this.cst = options.ClientSecret; if (authToken == null) { authToken = getAuthToken(); //if the class variable has not been set } if (supportedLangs == null) { supportedLangs = getSupportedLangs(); //if the class variable has not been set } }