blob: c5d7c41451e20349bc4884b80247b596155e2e81 [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 Newtonsoft.Json;
12using System.Collections.Generic;
13using System.Xml.Serialization;
14
15namespace BaSyx.Models.Export
16{
17
18 public class EnvironmentReference_V1_0
19 {
20 [JsonProperty("keys")]
21 [XmlArray("keys")]
22 [XmlArrayItem("key")]
23 public List<EnvironmentKey_V1_0> Keys { get; set; }
Constantin Ziesche02817f12020-08-04 21:40:43 +020024
25 public bool ShouldSerializeKeys()
26 {
27 if (Keys == null || Keys.Count == 0)
28 return false;
29 else
30 return true;
31 }
Constantin Ziesche857c7ab2020-02-25 11:24:51 +010032 }
33}