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C5B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,cAAc,CAAU;IAChC,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,cAAc,CAAqB;gBAExB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAYrK,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,iBAAiB,IAAI,MAAM,CAErC;IAED,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,UAAU,IAAI,kBAAkB,CAE1C;WAEa,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY;CAGhF","file":"IParticipant.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n// Multi-device Conversation is a Preview feature.\n\n/* eslint-disable max-classes-per-file */\nimport { PropertyCollection } from \"../Exports.js\";\n\n/**\n * Represents a user in a conversation.\n * Added in version 1.4.0\n */\nexport interface IUser {\n    /** Gets the user's ID */\n    readonly userId: string;\n}\n\nexport class User implements IUser {\n    private privUserId: string;\n\n    public constructor(userId: string) {\n        this.privUserId = userId;\n    }\n\n    public get userId(): string {\n        return this.privUserId;\n    }\n}\n\nexport interface VoiceSignature {\n    Version: number;\n    Tag: string;\n    Data: string;\n}\n\nexport interface TranscriptionParticipant {\n    /** The unique identifier for the participant. */\n    readonly id: string;\n    /** The participant's preferred spoken language. */\n    readonly preferredLanguage: string;\n    /** The participant's voice signature */\n    readonly voice: string;\n}\n\n/**\n * Represents a participant in a conversation.\n * Added in version 1.4.0\n */\nexport interface IParticipant extends TranscriptionParticipant {\n    /** Gets the colour of the user's avatar as an HTML hex string (e.g. FF0000 for red). */\n    readonly avatar: string;\n    /**\n     * The participant's display name. Please note that there may be more than one participant\n     * with the same name. You can use <see cref=\"Id\"/> property to tell them apart.\n     */\n    readonly displayName: string;\n    /** Gets whether or not this participant is the host. */\n    readonly isHost: boolean;\n    /** Gets whether or not this participant is muted. */\n    readonly isMuted: boolean;\n    /** Gets whether or not the participant is using Text To Speech (TTS). */\n    readonly isUsingTts: boolean;\n    /** Contains properties of the participant. */\n    readonly properties: PropertyCollection;\n}\n\nexport class Participant implements IParticipant {\n    private privAvatar: string;\n    private privDisplayName: string;\n    private privId: string;\n    private privIsHost: boolean;\n    private privIsMuted: boolean;\n    private privIsUsingTts: boolean;\n    private privPreferredLanguage: string;\n    private privVoice: string;\n    private privProperties: PropertyCollection;\n\n    public constructor(id: string, avatar: string, displayName: string, isHost: boolean, isMuted: boolean, isUsingTts: boolean, preferredLanguage: string, voice?: string) {\n        this.privId = id;\n        this.privAvatar = avatar;\n        this.privDisplayName = displayName;\n        this.privIsHost = isHost;\n        this.privIsMuted = isMuted;\n        this.privIsUsingTts = isUsingTts;\n        this.privPreferredLanguage = preferredLanguage;\n        this.privVoice = voice;\n        this.privProperties = new PropertyCollection();\n    }\n\n    public get avatar(): string {\n        return this.privAvatar;\n    }\n\n    public get displayName(): string {\n        return this.privDisplayName;\n    }\n\n    public get id(): string {\n        return this.privId;\n    }\n\n    public get preferredLanguage(): string {\n        return this.privPreferredLanguage;\n    }\n\n    public get isHost(): boolean {\n        return this.privIsHost;\n    }\n\n    public get isMuted(): boolean {\n        return this.privIsMuted;\n    }\n\n    public get isUsingTts(): boolean {\n        return this.privIsUsingTts;\n    }\n\n    public get voice(): string {\n        return this.privVoice;\n    }\n\n    public get properties(): PropertyCollection {\n        return this.privProperties;\n    }\n\n    public static From(id: string, language: string, voice: string): IParticipant {\n        return new Participant(id, \"\", id, false, false, false, language, voice);\n    }\n}\n"]}