src/lib/myScript/input/generic/abstractRecognitionData.ts
Abstract input recognition data
constructor()
|
getApplicationKey |
getApplicationKey()
|
Get the application key
Returns:
void
|
setApplicationKey |
setApplicationKey(applicationKey: string)
|
Set the application key
Parameters :
Returns:
void
|
getInstanceId |
getInstanceId()
|
Get the instanceId
Returns:
string
|
setInstanceId |
setInstanceId(instanceId: string)
|
Set the instanceId
Parameters :
Returns:
void
|
getHmac |
getHmac()
|
Returns:
string
|
setHmac |
setHmac(hmac: string)
|
Parameters :
Returns:
void
|
getRecognitionInput |
getRecognitionInput()
|
Get recognition input
Returns:
AbstractRecognitionInput
input |
setRecognitionInput |
setRecognitionInput(input: AbstractRecognitionInput)
|
Set text input
Parameters :
Returns:
void
|
applicationKey |
applicationKey: |
hmac |
hmac: |
instanceId |
instanceId: |
import { AbstractRecognitionInput} from './abstractRecognitionInput';
/**
* Abstract input recognition data
*
* @export
* @abstract
* @class AbstractRecognitionData
*/
export abstract class AbstractRecognitionData {
applicationKey: string;
instanceId: string;
hmac: string;
constructor() { }
/**
* Get the application key
*
* @method getApplicationKey
* @returns {String}
*/
getApplicationKey() {
return this.applicationKey;
};
/**
* Set the application key
*
* @method setApplicationKey
* @param {String} applicationKey
*/
setApplicationKey(applicationKey: string) {
this.applicationKey = applicationKey;
};
/**
* Get the instanceId
*
* @method getInstanceId
* @returns {String}
*/
getInstanceId(): string {
return this.instanceId;
};
/**
* Set the instanceId
*
* @method setInstanceId
* @param {String} instanceId
*/
setInstanceId(instanceId: string) {
this.instanceId = instanceId;
};
/**
* @returns {string}
*/
getHmac(): string {
return this.hmac;
};
/**
* @param {string} hmac
*/
setHmac(hmac: string) {
this.hmac = hmac;
};
/**
* Get recognition input
*
* @method getRecognitionInput
* @returns {AbstractRecognitionInput} input
*/
abstract getRecognitionInput(): AbstractRecognitionInput;
/**
* Set text input
*
* @method setRecognitionInput
* @param {AbstractRecognitionInput} input
*/
abstract setRecognitionInput(input: AbstractRecognitionInput);
}