File

src/lib/myScript/input/generic/abstractRecognitionData.ts

Description

Abstract input recognition data

Constructor

constructor()

Methods

getApplicationKey
getApplicationKey()

Get the application key

Returns: void
setApplicationKey
setApplicationKey(applicationKey: string)

Set the application key

Parameters :
  • applicationKey : String
Returns: void
getInstanceId
getInstanceId()

Get the instanceId

Returns: string
setInstanceId
setInstanceId(instanceId: string)

Set the instanceId

Parameters :
  • instanceId : String
Returns: void
getHmac
getHmac()
Returns: string
setHmac
setHmac(hmac: string)
Parameters :
  • hmac
Returns: void
getRecognitionInput
getRecognitionInput()

Get recognition input

input

setRecognitionInput
setRecognitionInput(input: AbstractRecognitionInput)

Set text input

Parameters :
Returns: void

Properties

applicationKey
applicationKey: string
hmac
hmac: string
instanceId
instanceId: string
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);

}

results matching ""

    No results matching ""