/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { IReportingDataExchange, ReportingDataExchange } from './reporting-data-exchange.model'; export interface IRdeSummary { nrOfUnreadMessages?: number; reportingDataExchanges?: IReportingDataExchange; } export class RdeSummary extends BaseModel implements IRdeSummary { static NR_OF_UNREAD_MESSAGES_FIELD_NAME = 'nrOfUnreadMessages'; static REPORTING_DATA_EXCHANGES_FIELD_NAME = 'reportingDataExchanges'; nrOfUnreadMessages: number; reportingDataExchanges: ReportingDataExchange; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.reportingDataExchanges = new ReportingDataExchange(); 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.nrOfUnreadMessages = this.getValue(rawValues, RdeSummary.NR_OF_UNREAD_MESSAGES_FIELD_NAME); this.reportingDataExchanges.setValues(rawValues.reportingDataExchanges); } } }