Skip to content

Commit

Permalink
annotate Gasqualitaet? properties with STJ+Newtonsoft JsonConverters (
Browse files Browse the repository at this point in the history
#556)

Co-authored-by: Konstantin <[email protected]>
  • Loading branch information
hf-kklein and Konstantin authored Nov 7, 2024
1 parent 16bbdef commit 59455c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BO4E/BO/Marktlokation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using BO4E.EnergyIdentificationCodes;
using BO4E.ENUM;
using BO4E.meta;
using BO4E.meta.LenientConverters;
using Newtonsoft.Json;
using ProtoBuf;

Expand Down Expand Up @@ -146,6 +147,10 @@ public class Marktlokation : BusinessObject
[JsonPropertyOrder(22)]
[JsonPropertyName("gasqualitaet")]
[ProtoMember(16)]
[System.Text.Json.Serialization.JsonConverter(
typeof(SystemTextNullableGasqualitaetStringEnumConverter)
)]
[Newtonsoft.Json.JsonConverter(typeof(NewtonsoftGasqualitaetStringEnumConverter))]
public Gasqualitaet? Gasqualitaet { get; set; }

/// <summary>Link zum Geschäftspartner, dem diese Marktlokation gehört.</summary>
Expand Down
5 changes: 5 additions & 0 deletions BO4E/BO/Messlokation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using BO4E.COM;
using BO4E.ENUM;
using BO4E.meta;
using BO4E.meta.LenientConverters;
using Newtonsoft.Json;
using ProtoBuf;

Expand Down Expand Up @@ -208,6 +209,10 @@ public class Messlokation : BusinessObject
[JsonPropertyOrder(26)]
[ProtoMember(1020)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
[System.Text.Json.Serialization.JsonConverter(
typeof(SystemTextNullableGasqualitaetStringEnumConverter)
)]
[Newtonsoft.Json.JsonConverter(typeof(NewtonsoftGasqualitaetStringEnumConverter))]
public Gasqualitaet? Gasqualitaet { get; set; }

/// <summary>
Expand Down

0 comments on commit 59455c3

Please sign in to comment.