{"version":3,"sources":["src/sdk/IntentRecognitionCanceledEventArgs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAE3H;;;GAGG;AACH,qBAAa,kCAAmC,SAAQ,0BAA0B;IAC9E,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,aAAa,CAAwB;IAE7C;;;;;;OAMG;gBAEC,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,qBAAqB,EAChC,MAAM,CAAC,EAAE,uBAAuB,EAChC,MAAM,CAAC,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM;IAQtB;;;;;;OAMG;aACQ,MAAM,EAAI,kBAAkB;IAIvC;;;;OAIG;aACQ,SAAS,EAAI,qBAAqB;IAI7C;;;;;;OAMG;aACQ,YAAY,EAAI,MAAM;CAGpC","file":"IntentRecognitionCanceledEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { CancellationErrorCode, CancellationReason, IntentRecognitionEventArgs, IntentRecognitionResult } from \"./Exports\";\n\n/**\n * Define payload of intent recognition canceled result events.\n * @class IntentRecognitionCanceledEventArgs\n */\nexport class IntentRecognitionCanceledEventArgs extends IntentRecognitionEventArgs {\n    private privReason: CancellationReason;\n    private privErrorDetails: string;\n    private privErrorCode: CancellationErrorCode;\n\n    /**\n     * Creates and initializes an instance of this class.\n     * @constructor\n     * @param {CancellationReason} result - The result of the intent recognition.\n     * @param {string} offset - The offset.\n     * @param {IntentRecognitionResult} sessionId - The session id.\n     */\n    public constructor(\n        reason: CancellationReason,\n        errorDetails: string,\n        errorCode: CancellationErrorCode,\n        result?: IntentRecognitionResult,\n        offset?: number,\n        sessionId?: string) {\n        super(result, offset, sessionId);\n\n        this.privReason = reason;\n        this.privErrorDetails = errorDetails;\n        this.privErrorCode = errorCode;\n    }\n\n    /**\n     * The reason the recognition was canceled.\n     * @member IntentRecognitionCanceledEventArgs.prototype.reason\n     * @function\n     * @public\n     * @returns {CancellationReason} Specifies the reason canceled.\n     */\n    public get reason(): CancellationReason {\n        return this.privReason;\n    }\n\n    /**\n     * The error code in case of an unsuccessful recognition.\n     * Added in version 1.1.0.\n     * @return An error code that represents the error reason.\n     */\n    public get errorCode(): CancellationErrorCode {\n        return this.privErrorCode;\n    }\n\n    /**\n     * In case of an unsuccessful recognition, provides details of the occurred error.\n     * @member IntentRecognitionCanceledEventArgs.prototype.errorDetails\n     * @function\n     * @public\n     * @returns {string} A String that represents the error details.\n     */\n    public get errorDetails(): string {\n        return this.privErrorDetails;\n    }\n}\n"]}