blob: 7aef841e481df1e65b54c37b7c2fedb1c704ee28 [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*******************************************************************************/
11using BaSyx.Models.Core.Common;
12using Newtonsoft.Json;
13using System.Xml.Serialization;
14
15namespace BaSyx.Models.Export
16{
17 public class Property_V1_0 : SubmodelElementType_V1_0
18 {
Constantin Ziesche02817f12020-08-04 21:40:43 +020019 [JsonProperty("valueId")]
20 [XmlElement("valueId")]
21 public EnvironmentReference_V1_0 ValueId { get; set; }
Constantin Ziesche857c7ab2020-02-25 11:24:51 +010022
23 [JsonProperty("value")]
24 [XmlElement("value")]
25 public string Value { get; set; }
26
Constantin Ziesche02817f12020-08-04 21:40:43 +020027 [JsonProperty("valueType")]
28 [XmlElement("valueType")]
29 public string ValueType { get; set; }
Constantin Ziesche857c7ab2020-02-25 11:24:51 +010030
31 [JsonProperty("modelType")]
32 [XmlIgnore]
33 public override ModelType ModelType => ModelType.Property;
34
35 public Property_V1_0() { }
36 public Property_V1_0(SubmodelElementType_V1_0 submodelElementType) : base(submodelElementType) { }
37 }
38}