blob: 9e9a95375d8f31ba8a7cc9b5802cc8c9c2f3337b [file] [log] [blame]
Constantin Ziesche857c7ab2020-02-25 11:24:51 +01001/*******************************************************************************
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 Ziesche08215502020-09-21 19:08:32 +020011
12using BaSyx.Models.Core.AssetAdministrationShell;
Constantin Ziesche857c7ab2020-02-25 11:24:51 +010013using BaSyx.Models.Core.Common;
14using Newtonsoft.Json;
15using System.Xml.Serialization;
16
17namespace 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}