Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 | 10x 81x 81x 81x | /**
* Represents server authentication config.
* @module TwitarrAuthConfig
*/
export class TwitarrAuthConfig {
/** The password to authenticate with. */
public password?: string;
/** The username to connect as. */
public username?: string;
/** The key to pass to requests. */
public key?: string;
/**
* Construct an auth configuration object.
* @constructor
*/
public constructor(username?: string, password?: string, key?: string) {
this.username = username;
this.password = password;
this.key = key;
}
/**
* Create a new config object from this existing one.
*/
public clone() {
return new TwitarrAuthConfig(this.username, this.password, this.key);
}
}
|