| /******************************************************************************** |
| * Copyright (c) 2020 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| export class GridFailure { |
| public id: string = null; |
| public branch: string = null; |
| public branchColorCode: string = null; |
| public branchId: string = null; |
| public city: string = null; |
| public district: string = null; |
| public failureBegin: string = null; //"2020-02-26T20:34:57.033Z", |
| public failureClassification: string = null; |
| public failureClassificationId: string = null; |
| public failureEndPlanned: string = null; //2020-02-26T20:34:57.033Z", |
| public failureEndResupplied: string = null; //"2020-02-26T20:34:57.033Z", |
| public failureType: string = null; |
| public failureTypeId: string = null; |
| public housenumber: string = null; |
| public internExtern: string = null; |
| public internalRemark: string = null; |
| public postcode: string = null; |
| public pressureLevel: string = null; |
| public probableReason: string = null; |
| public radius: string = null; |
| public responsibility: string = null; |
| public stationCoords: string = null; |
| public stationDescription: string = null; |
| public statusExtern: string = null; |
| public statusExternId: string = null; |
| public statusIntern: string = null; |
| public statusInternId: string = null; |
| public street: string = null; |
| public voltageLevel: string = null; |
| |
| public constructor(data: any = null) { |
| Object.keys(data || {}) |
| .filter(property => this.hasOwnProperty(property)) |
| .forEach(property => (this[property] = data[property])); |
| } |
| } |