UNPKG

2.16 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * Class describing a device on the network.
5 */
6class Device {
7 /**
8 * Initializes a new instance of the class.
9 * @param address The address.
10 * @param port The port.
11 * @param macAddress The MAC address. In most situations this is identical
12 * to the serial number. The exceptions are the Axis products which bundle
13 * multiple physical devices into a single casing with a shared network
14 * interface. Because of the shared network interface they also share the
15 * same MAC address.
16 * @param friendlyName The short description for the end user.
17 * @param modelName The model name.
18 * @param modelDescription The long model description for the end user.
19 * @param modelNumber The model number.
20 * @param presentationURL The URL to the web page of the device.
21 */
22 constructor(
23 /**
24 * Gets the address.
25 */
26 address,
27 /**
28 * Gets the port.
29 */
30 port,
31 /**
32 * Gets the MAC address. In most situations this is identical to the
33 * serial number. The exceptions are the Axis products which bundle
34 * multiple physical devices into a single casing with a shared network
35 * interface. Because of the shared network interface they also share
36 * the same MAC address.
37 */
38 macAddress,
39 /**
40 * Gets the short description for the end user.
41 */
42 friendlyName,
43 /**
44 * Gets the model name.
45 */
46 modelName,
47 /**
48 * Gets the long model description for the end user.
49 */
50 modelDescription,
51 /**
52 * Gets the model number.
53 */
54 modelNumber,
55 /**
56 * Gets the URL to the web page of the device.
57 */
58 presentationURL) {
59 this.address = address;
60 this.port = port;
61 this.macAddress = macAddress;
62 this.friendlyName = friendlyName;
63 this.modelName = modelName;
64 this.modelDescription = modelDescription;
65 this.modelNumber = modelNumber;
66 this.presentationURL = presentationURL;
67 }
68}
69exports.Device = Device;
70//# sourceMappingURL=Device.js.map
\No newline at end of file