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.TurnStatusReceivedEventArgs = void 0;\nconst TurnStatusPayload_js_1 = require(\"../common.speech/ServiceMessages/TurnStatusPayload.js\");\n/**\n * Defines contents of received message/events.\n * @class TurnStatusReceivedEventArgs\n */\nclass TurnStatusReceivedEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} turnStatus - The JSON-encoded turn status message.\n */\n constructor(turnStatus) {\n this.privTurnStatus = TurnStatusPayload_js_1.TurnStatusResponsePayload.fromJSON(turnStatus);\n }\n /**\n * Gets the interaction identifier associated with this turn status event.\n * @member TurnStatusReceivedEventArgs.prototype.interactionId\n * @function\n * @public\n * @returns {any} the received interaction id.\n */\n get interactionId() {\n return this.privTurnStatus.interactionId;\n }\n /**\n * Gets the conversation identifier associated with this turn status event.\n * @member TurnStatusReceivedEventArgs.prototype.conversationId\n * @function\n * @public\n * @returns {any} the received conversation id.\n */\n get conversationId() {\n return this.privTurnStatus.conversationId;\n }\n /**\n * Gets the received turn status code.\n * @member TurnStatusReceivedEventArgs.prototype.statusCode\n * @function\n * @public\n * @returns {number} the received turn status.\n */\n get statusCode() {\n return this.privTurnStatus.statusCode; // eslint-disable-line @typescript-eslint/no-unsafe-return\n }\n}\nexports.TurnStatusReceivedEventArgs = TurnStatusReceivedEventArgs;","map":{"version":3,"names":["Object","defineProperty","exports","value","TurnStatusReceivedEventArgs","TurnStatusPayload_js_1","require","constructor","turnStatus","privTurnStatus","TurnStatusResponsePayload","fromJSON","interactionId","conversationId","statusCode"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TurnStatusReceivedEventArgs.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.TurnStatusReceivedEventArgs = void 0;\nconst TurnStatusPayload_js_1 = require(\"../common.speech/ServiceMessages/TurnStatusPayload.js\");\n/**\n * Defines contents of received message/events.\n * @class TurnStatusReceivedEventArgs\n */\nclass TurnStatusReceivedEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} turnStatus - The JSON-encoded turn status message.\n */\n constructor(turnStatus) {\n this.privTurnStatus = TurnStatusPayload_js_1.TurnStatusResponsePayload.fromJSON(turnStatus);\n }\n /**\n * Gets the interaction identifier associated with this turn status event.\n * @member TurnStatusReceivedEventArgs.prototype.interactionId\n * @function\n * @public\n * @returns {any} the received interaction id.\n */\n get interactionId() {\n return this.privTurnStatus.interactionId;\n }\n /**\n * Gets the conversation identifier associated with this turn status event.\n * @member TurnStatusReceivedEventArgs.prototype.conversationId\n * @function\n * @public\n * @returns {any} the received conversation id.\n */\n get conversationId() {\n return this.privTurnStatus.conversationId;\n }\n /**\n * Gets the received turn status code.\n * @member TurnStatusReceivedEventArgs.prototype.statusCode\n * @function\n * @public\n * @returns {number} the received turn status.\n */\n get statusCode() {\n return this.privTurnStatus.statusCode; // eslint-disable-line @typescript-eslint/no-unsafe-return\n }\n}\nexports.TurnStatusReceivedEventArgs = TurnStatusReceivedEventArgs;\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,2BAA2B,GAAG,KAAK,CAAC;AAC5C,MAAMC,sBAAsB,GAAGC,OAAO,CAAC,uDAAuD,CAAC;AAC/F;AACA;AACA;AACA;AACA,MAAMF,2BAA2B,CAAC;EAC9B;AACJ;AACA;AACA;AACA;EACIG,WAAWA,CAACC,UAAU,EAAE;IACpB,IAAI,CAACC,cAAc,GAAGJ,sBAAsB,CAACK,yBAAyB,CAACC,QAAQ,CAACH,UAAU,CAAC;EAC/F;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAII,aAAaA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACH,cAAc,CAACG,aAAa;EAC5C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIC,cAAcA,CAAA,EAAG;IACjB,OAAO,IAAI,CAACJ,cAAc,CAACI,cAAc;EAC7C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,cAAc,CAACK,UAAU,CAAC,CAAC;EAC3C;AACJ;AACAZ,OAAO,CAACE,2BAA2B,GAAGA,2BAA2B","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|