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 33 34 | 10x 10x 4x 10x 1x 10x | import { NestableVerb } from '../NestableVerb';
import { Endpoint } from './Endpoint';
export interface ConnectAttributes {
eventCallbackUrl?: string;
}
/**
* @export
* @class Connect
* @extends {NestableVerb}
* Represents a Connect verb
*/
export class Connect extends NestableVerb {
attributes: ConnectAttributes;
/**
* Creates an instance of Connect
* @param {ConnectAttributes} attributes The attributes to add to the element
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to connect to
*/
constructor(attributes?: ConnectAttributes, endpoints?: Endpoint | Endpoint[]) {
super('Connect', undefined, attributes, endpoints);
}
/**
* Add an endpoint or endpoints to the connect
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to add
*/
addEndpoints(endpoints: Endpoint | Endpoint[]): void {
this.nestedVerbs = this.nestedVerbs.concat(endpoints);
}
}
|