/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { ISoftReference, SoftReference } from './soft-reference.model'; export interface IMessageContext { data?: string; refId: ISoftReference; } export class MessageContext extends BaseModel implements IMessageContext { static DATA_FIELD_NAME = 'data'; static REF_ID_FIELD_NAME = 'refId'; data: string; refId: SoftReference; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.refId = new SoftReference(); 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 = this.getValue(rawValues, MessageContext.DATA_FIELD_NAME); this.refId.setValues(rawValues.refId); } } }