{"version":3,"sources":["src/sdk/CancellationEventArgsBase.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,oBAAqB,YAAW,qBAAqB;IAChG,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,aAAa,CAAwB;IAE7C;;;;;;;OAOG;gBACgB,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,EAChD,SAAS,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAQxF;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,kBAAkB,CAEtC;IAED;;;OAGG;IACH,IAAW,SAAS,IAAI,qBAAqB,CAE5C;IAED;;;;;;OAMG;IACH,IAAW,YAAY,IAAI,MAAM,CAEhC;CACJ","file":"CancellationEventArgsBase.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport {\n    CancellationErrorCode,\n    CancellationEventArgs,\n    CancellationReason,\n    RecognitionEventArgs\n} from \"./Exports.js\";\n\n/**\n * Defines content of a CancellationEvent.\n * @class CancellationEventArgsBase\n */\nexport class CancellationEventArgsBase extends RecognitionEventArgs implements CancellationEventArgs {\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} reason - The cancellation reason.\n     * @param {string} errorDetails - Error details, if provided.\n     * @param {number} offset - The offset.\n     * @param {string} sessionId - The session id.\n     */\n    public constructor(reason: CancellationReason, errorDetails: string,\n                       errorCode: CancellationErrorCode, offset?: number, sessionId?: string) {\n        super(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 CancellationEventArgsBase.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 operation.\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 operation, provides details of the occurred error.\n     * @member CancellationEventArgsBase.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"]}