{"version":3,"sources":["src/sdk/VoiceProfilePhraseResult.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,YAAY,EACZ,kBAAkB,EACrB,MAAM,WAAW,CAAC;AAEnB;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,OAAO,CAAC,WAAW,CAAgB;gBAEhB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;IAUtE,IAAW,OAAO,IAAI,MAAM,EAAE,CAE7B;CACJ","file":"VoiceProfilePhraseResult.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT license.\r\n\r\nimport { Contracts } from \"./Contracts\";\r\nimport {\r\n    ResultReason,\r\n    VoiceProfileResult\r\n} from \"./Exports\";\r\n\r\n/**\r\n * Output format\r\n * @class VoiceProfilePhraseResult\r\n */\r\nexport class VoiceProfilePhraseResult extends VoiceProfileResult {\r\n    private privPhrases: string[] = [];\r\n\r\n    public constructor(reason: ResultReason, statusText: string, json: any) {\r\n        super(reason, statusText);\r\n        Contracts.throwIfNullOrUndefined(json, \"phrase result JSON\");\r\n        if (!!json.value && !!json.value[0]) {\r\n            for (const item of json.value) {\r\n                this.privPhrases.push(item.passPhrase || item.activationPhrase);\r\n            }\r\n        }\r\n    }\r\n\r\n    public get phrases(): string[] {\r\n        return this.privPhrases;\r\n    }\r\n}\r\n"]}