summaryrefslogtreecommitdiff
path: root/desktop/node_modules/@xhayper/discord-rpc/dist/structures/CertifiedDevice.js
blob: 71248c2cd4185dc7843942390dd80f6c355ee728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CertifiedDevice = exports.DeviceType = void 0;
const Base_1 = require("./Base");
var DeviceType;
(function (DeviceType) {
    DeviceType["AUDIO_INPUT"] = "audioinput";
    DeviceType["AUDIO_OUTPUT"] = "audiooutput";
    DeviceType["VIDEO_INPUT"] = "videoinput";
})(DeviceType || (exports.DeviceType = DeviceType = {}));
class CertifiedDevice extends Base_1.Base {
    /**
     * the type of device
     */
    type;
    /**
     * the device's Windows UUID
     */
    id;
    /**
     * the hardware vendor
     */
    vendor;
    /**
     * the model of the product
     */
    model;
    /**
     * UUIDs of related devices
     */
    related;
    /**
     * if the device's native echo cancellation is enabled
     */
    echo_cancellation;
    /**
     * if the device's native noise suppression is enabled
     */
    noise_suppression;
    /**
     * if the device's native automatic gain control is enabled
     */
    automatic_gain_control;
    /**
     * if the device is hardware muted
     */
    hardware_mute;
    constructor(client, props) {
        super(client);
        Object.assign(this, props);
        this.type = props.type;
        this.id = props.id;
        this.vendor = props.vendor;
        this.model = props.model;
        this.related = props.related;
    }
}
exports.CertifiedDevice = CertifiedDevice;