Skip to content

Commit

Permalink
fix: nullable types, ProtoInclude
Browse files Browse the repository at this point in the history
  • Loading branch information
levtoji committed Apr 10, 2024
1 parent bb37f49 commit 33093ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions BO4E/BO/BusinessObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ namespace BO4E.BO
[ProtoInclude(31, typeof(TechnischeRessource))]
[ProtoInclude(32, typeof(MabisZaehlpunkt))]
[ProtoInclude(33, typeof(Summenzeitreihe))]
[ProtoInclude(34, typeof(Lokationszuordnung))]
public abstract class BusinessObject : IUserProperties, IOptionalGuid
{
/// <summary>
Expand Down
18 changes: 10 additions & 8 deletions BO4E/BO/Lokationszuordnung.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace BO4E.BO
/// <summary>
///
/// </summary>
[ProtoContract]

public class Lokationszuordnung : BusinessObject
{

Expand All @@ -20,7 +22,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("marktlokationen")]
[JsonPropertyOrder(11)]
[ProtoMember(11)]
public string[] Marktlokationen { get; set; }
public string[]? Marktlokationen { get; set; }

/// <summary>
///
Expand All @@ -29,7 +31,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("messlokationen")]
[JsonPropertyOrder(12)]
[ProtoMember(12)]
public string[] Messlokationen { get; set; }
public string[]? Messlokationen { get; set; }

/// <summary>
///
Expand All @@ -38,7 +40,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("netzlokationen")]
[JsonPropertyOrder(13)]
[ProtoMember(13)]
public string[] Netzlokationen { get; set; }
public string[]? Netzlokationen { get; set; }

/// <summary>
///
Expand All @@ -47,7 +49,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("technischeRessourcen")]
[JsonPropertyOrder(14)]
[ProtoMember(14)]
public string[] TechnischeRessourcen { get; set; }
public string[]? TechnischeRessourcen { get; set; }

/// <summary>
///
Expand All @@ -56,7 +58,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("steuerbareRessourcen")]
[JsonPropertyOrder(15)]
[ProtoMember(15)]
public string[] SteuerebareRessourcen { get; set; }
public string[]? SteuerebareRessourcen { get; set; }

/// <summary>
///
Expand All @@ -66,7 +68,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyOrder(16)]
[ProtoMember(16)]
// Instead of COM.Zeitspanne (bo4e-python)
public Zeitraum[] Gueltigkeit { get; set; }
public Zeitraum[]? Gueltigkeit { get; set; }

/// <summary>
///
Expand All @@ -75,7 +77,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyName("arithmetik")]
[JsonPropertyOrder(17)]
[ProtoMember(17)]
public ArithmetischeOperation[] Arithmetik { get; set; }
public ArithmetischeOperation[]? Arithmetik { get; set; }

/// <summary>
///
Expand All @@ -85,7 +87,7 @@ public class Lokationszuordnung : BusinessObject
[JsonPropertyOrder(18)]
[ProtoMember(18)]
[BoKey]
public string Zuordnungstyp { get; set; }
public string? Zuordnungstyp { get; set; }

}
}

0 comments on commit 33093ed

Please sign in to comment.