/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { IBomChangeNotification, BomChangeNotification } from './bom-change-notification.model'; import { BomWebSocketEventType } from './enums'; export interface IBomSocketChangeNotification { data?: IBomChangeNotification; webSocketEventType?: BomWebSocketEventType; } export class BomSocketChangeNotification extends BaseModel implements IBomSocketChangeNotification { static DATA_FIELD_NAME = 'data'; static WEB_SOCKET_EVENT_TYPE_FIELD_NAME = 'webSocketEventType'; data: BomChangeNotification; webSocketEventType: BomWebSocketEventType; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.data = new BomChangeNotification(); if (values) { this.setValues(values); } } /** * set the values. * @param values Can be used to set a webapi response to this newly constructed model */ setValues(values: Partial): void { if (values) { const rawValues = values this.data.setValues(rawValues.data); this.webSocketEventType = this.getValue(rawValues, BomSocketChangeNotification.WEB_SOCKET_EVENT_TYPE_FIELD_NAME); } } }