1 |
- {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CancellationEventArgsBase = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines content of a CancellationEvent.\n * @class CancellationEventArgsBase\n */\nclass CancellationEventArgsBase extends Exports_js_1.RecognitionEventArgs {\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 constructor(reason, errorDetails, errorCode, offset, sessionId) {\n super(offset, sessionId);\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privErrorCode = errorCode;\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 get reason() {\n return this.privReason;\n }\n /**\n * The error code in case of an unsuccessful operation.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\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 get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.CancellationEventArgsBase = CancellationEventArgsBase;","map":{"version":3,"names":["Object","defineProperty","exports","value","CancellationEventArgsBase","Exports_js_1","require","RecognitionEventArgs","constructor","reason","errorDetails","errorCode","offset","sessionId","privReason","privErrorDetails","privErrorCode"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CancellationEventArgsBase = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines content of a CancellationEvent.\n * @class CancellationEventArgsBase\n */\nclass CancellationEventArgsBase extends Exports_js_1.RecognitionEventArgs {\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 constructor(reason, errorDetails, errorCode, offset, sessionId) {\n super(offset, sessionId);\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privErrorCode = errorCode;\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 get reason() {\n return this.privReason;\n }\n /**\n * The error code in case of an unsuccessful operation.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\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 get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.CancellationEventArgsBase = CancellationEventArgsBase;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,yBAAyB,GAAG,KAAK,CAAC;AAC1C,MAAMC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA,MAAMF,yBAAyB,SAASC,YAAY,CAACE,oBAAoB,CAAC;EACtE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,MAAM,EAAEC,YAAY,EAAEC,SAAS,EAAEC,MAAM,EAAEC,SAAS,EAAE;IAC5D,KAAK,CAACD,MAAM,EAAEC,SAAS,CAAC;IACxB,IAAI,CAACC,UAAU,GAAGL,MAAM;IACxB,IAAI,CAACM,gBAAgB,GAAGL,YAAY;IACpC,IAAI,CAACM,aAAa,GAAGL,SAAS;EAClC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIF,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACK,UAAU;EAC1B;EACA;AACJ;AACA;AACA;EACI,IAAIH,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACK,aAAa;EAC7B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIN,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACK,gBAAgB;EAChC;AACJ;AACAb,OAAO,CAACE,yBAAyB,GAAGA,yBAAyB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|