Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2020 Robert Bosch GmbH |
| 3 | * Author: Constantin Ziesche (constantin.ziesche@bosch.com) |
| 4 | * |
| 5 | * This program and the accompanying materials are made available under the |
| 6 | * terms of the Eclipse Public License 2.0 which is available at |
| 7 | * http://www.eclipse.org/legal/epl-2.0 |
| 8 | * |
| 9 | * SPDX-License-Identifier: EPL-2.0 |
| 10 | *******************************************************************************/ |
Constantin Ziesche | 0821550 | 2020-09-21 19:08:32 +0200 | [diff] [blame^] | 11 | |
| 12 | using BaSyx.Models.Core.AssetAdministrationShell; |
Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 13 | using BaSyx.Models.Core.Common; |
| 14 | using Newtonsoft.Json; |
| 15 | using System.Xml.Serialization; |
| 16 | |
| 17 | namespace BaSyx.Models.Export |
| 18 | { |
| 19 | public class EnvironmentAsset_V2_0 : EnvironmentIdentifiable_V2_0, IModelType |
| 20 | { |
| 21 | [JsonProperty("kind")] |
| 22 | [XmlElement("kind")] |
| 23 | public AssetKind Kind { get; set; } |
| 24 | |
| 25 | [JsonProperty("assetIdentificationModel")] |
| 26 | [XmlElement("assetIdentificationModelRef")] |
| 27 | public EnvironmentReference_V2_0 AssetIdentificationModelReference { get; set; } |
| 28 | |
| 29 | [JsonProperty("billOfMaterial")] |
| 30 | [XmlElement("billOfMaterialRef")] |
| 31 | public EnvironmentReference_V2_0 BillOfMaterial { get; set; } |
| 32 | |
| 33 | [JsonProperty("modelType")] |
| 34 | [XmlIgnore] |
| 35 | public ModelType ModelType => ModelType.Asset; |
| 36 | } |
| 37 | } |