UNPKG

axis-core

Version:

A Node.js library written in TypeScript containing shared behavior for the other packages, e.g. code handling communication and authentication with Axis Communication cameras.

60 lines 1.39 kB
import { Protocol } from './Protocol'; /** * Class describing a connection to a device. */ export declare class Connection { /** * Gets the protocol to use when creating the connection. */ readonly protocol: Protocol; /** * Gets the address or hostname of the device. */ readonly address: string; /** * Gets the port of the device. */ readonly port: number; /** * Gets the username. */ readonly username: string; /** * Gets the password. */ readonly password: string; /** * Initializes a new instance of the class. * @param protocol The protocol to use when creating the connection. * @param address The address or hostname of the device. * @param port The port of the device. * @param username The username. * @param password The password. */ constructor( /** * Gets the protocol to use when creating the connection. */ protocol: Protocol, /** * Gets the address or hostname of the device. */ address: string, /** * Gets the port of the device. */ port: number, /** * Gets the username. */ username: string, /** * Gets the password. */ password: string); /** * Gets the url. */ get url(): string; } //# sourceMappingURL=Connection.d.ts.map